feat(): added BGB convert

This commit is contained in:
Jerko J
2024-05-30 12:55:37 +02:00
parent ee9caeaa5f
commit cd958970aa
2 changed files with 28 additions and 5 deletions

3
.gitignore vendored
View File

@@ -21,4 +21,5 @@ node_modules/
.cache .cache
lib lib
bundleReport.html bundleReport.html
.history/ .history/
tiagoSpot.ts

View File

@@ -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
*
*/
getBGBConvertCoins(): 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);
}
getBGBConvertHistory(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,
);
} }
/** /**
* *
* *