Merge pull request #37 from thesushilsharma/master

Missing Common Assets Endpoint
This commit is contained in:
Tiago
2024-08-20 14:52:49 +01:00
committed by GitHub
3 changed files with 21 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,24 @@ 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);
}
/** Get assets overview */
getBalances(): Promise<APIResponse<any>> {
return this.getPrivate(`/api/v2/account/all-account-balance`);
}
/**
*
* * Common | Convert
*
*/