Merge pull request #37 from thesushilsharma/master
Missing Common Assets Endpoint
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bitget-api",
|
"name": "bitget-api",
|
||||||
"version": "2.0.5",
|
"version": "2.0.7",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bitget-api",
|
"name": "bitget-api",
|
||||||
"version": "2.0.5",
|
"version": "2.0.7",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.6.1",
|
"axios": "^1.6.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bitget-api",
|
"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.",
|
"description": "Node.js & JavaScript SDK for Bitget REST APIs & WebSockets, with TypeScript & end-to-end tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|||||||
@@ -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
|
* * Common | Convert
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user