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..e3def28 100644 --- a/src/rest-client-v2.ts +++ b/src/rest-client-v2.ts @@ -145,6 +145,24 @@ 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); + } + + /** Get assets overview */ + getBalances(): Promise> { + return this.getPrivate(`/api/v2/account/all-account-balance`); + } + /** * * * Common | Convert