From 4cd1067d610f15503e6ea7da4e3f84afed3ae96d Mon Sep 17 00:00:00 2001 From: Sushil Sharma <58214222+thesushilsharma@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:53:21 +0400 Subject: [PATCH] adding common assets --- package-lock.json | 4 ++-- package.json | 2 +- src/rest-client-v2.ts | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e2a2f82..f846fb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitget-api", - "version": "2.0.5", + "version": "2.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bitget-api", - "version": "2.0.5", + "version": "2.0.7", "license": "MIT", "dependencies": { "axios": "^1.6.1", diff --git a/package.json b/package.json index 8ed61b1..115ca40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitget-api", - "version": "2.0.6", + "version": "2.0.7", "description": "Node.js & JavaScript SDK for Bitget REST APIs & WebSockets, with TypeScript & end-to-end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/rest-client-v2.ts b/src/rest-client-v2.ts index 59ed470..5d523eb 100644 --- a/src/rest-client-v2.ts +++ b/src/rest-client-v2.ts @@ -145,6 +145,23 @@ export class RestClientV2 extends BaseRestClient { ); } + /** +* +* * Common | Assets +* +*/ + getFundingAssets(params?: object): Promise> { + return this.getPrivate(`/api/v2/account/funding-assets`, params); + } + + getBotAccount(params?: object): Promise> { + return this.getPrivate(`/api/v2/account/bot-assets`, params); + } + + getAssetsOverview(): Promise> { + return this.getPrivate(`/api/v2/account/all-account-balance`); + } + /** * * * Common | Convert