diff --git a/.gitignore b/.gitignore index 33326b4..21cbed0 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,5 @@ node_modules/ .cache lib bundleReport.html -.history/ \ No newline at end of file +.history/ +tiagoSpot.ts \ No newline at end of file diff --git a/src/rest-client-v2.ts b/src/rest-client-v2.ts index 9a83899..f0cfd9d 100644 --- a/src/rest-client-v2.ts +++ b/src/rest-client-v2.ts @@ -167,6 +167,24 @@ export class RestClientV2 extends BaseRestClient { return this.getPrivate(`/api/v2/convert/convert-record`, params); } + /** + * + * * Common | BGB Convert + * + */ + + getBGBConvertCoins(): Promise> { + return this.getPrivate(`/api/v2/convert/bgb-convert-coin-list`); + } + + convertBGB(params: object): Promise> { + return this.postPrivate(`/api/v2/convert/bgb-convert`, params); + } + + getBGBConvertHistory(params: object): Promise> { + return this.getPrivate(`/api/v2/convert/bgb-convert-records`, params); + } + /** * * @@ -347,15 +365,19 @@ export class RestClientV2 extends BaseRestClient { } getSpotMainSubTransferRecord(params: object): Promise> { - 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> { - return this.getPrivate(`/api/v2/spot/wallet/subaccount-deposit-records`,params); + return this.getPrivate( + `/api/v2/spot/wallet/subaccount-deposit-records`, + params, + ); } - - /** * *