adding common assets

This commit is contained in:
Sushil Sharma
2024-08-20 16:53:21 +04:00
committed by GitHub
parent 7394efa76b
commit 4cd1067d61
3 changed files with 20 additions and 3 deletions

4
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -147,6 +147,23 @@ export class RestClientV2 extends BaseRestClient {
/**
*
* * Common | Assets
*
*/
getFundingAssets(params?: object): Promise<APIResponse<any>> {
return this.getPrivate(`/api/v2/account/funding-assets`, params);
}
getBotAccount(params?: object): Promise<APIResponse<any>> {
return this.getPrivate(`/api/v2/account/bot-assets`, params);
}
getAssetsOverview(): Promise<APIResponse<any>> {
return this.getPrivate(`/api/v2/account/all-account-balance`);
}
/**
*
* * Common | Convert
*
*/