1
.gitignore
vendored
1
.gitignore
vendored
@@ -22,3 +22,4 @@ node_modules/
|
|||||||
lib
|
lib
|
||||||
bundleReport.html
|
bundleReport.html
|
||||||
.history/
|
.history/
|
||||||
|
tiagoSpot.ts
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bitget-api",
|
"name": "bitget-api",
|
||||||
"version": "2.0.5",
|
"version": "2.0.6",
|
||||||
"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",
|
||||||
|
|||||||
@@ -167,6 +167,24 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
return this.getPrivate(`/api/v2/convert/convert-record`, params);
|
return this.getPrivate(`/api/v2/convert/convert-record`, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* * Common | BGB Convert
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
getConvertBGBCoins(): Promise<APIResponse<any>> {
|
||||||
|
return this.getPrivate(`/api/v2/convert/bgb-convert-coin-list`);
|
||||||
|
}
|
||||||
|
|
||||||
|
convertBGB(params: object): Promise<APIResponse<any>> {
|
||||||
|
return this.postPrivate(`/api/v2/convert/bgb-convert`, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
getConvertBGBHistory(params: object): Promise<APIResponse<any>> {
|
||||||
|
return this.getPrivate(`/api/v2/convert/bgb-convert-records`, params);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
@@ -347,15 +365,19 @@ export class RestClientV2 extends BaseRestClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSpotMainSubTransferRecord(params: object): Promise<APIResponse<any>> {
|
getSpotMainSubTransferRecord(params: object): Promise<APIResponse<any>> {
|
||||||
return this.getPrivate(`/api/v2/spot/account/sub-main-trans-record`,params);
|
return this.getPrivate(
|
||||||
|
`/api/v2/spot/account/sub-main-trans-record`,
|
||||||
|
params,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getSubAccountDepositRecords(params: object): Promise<APIResponse<any>> {
|
getSubAccountDepositRecords(params: object): Promise<APIResponse<any>> {
|
||||||
return this.getPrivate(`/api/v2/spot/wallet/subaccount-deposit-records`,params);
|
return this.getPrivate(
|
||||||
|
`/api/v2/spot/wallet/subaccount-deposit-records`,
|
||||||
|
params,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user