feat(): updated examples, readme

This commit is contained in:
Jerko J
2024-10-16 18:13:45 +02:00
parent 47177fefc5
commit 5eba290130
253 changed files with 504 additions and 504 deletions

View File

@@ -19,7 +19,6 @@
[1]: https://www.npmjs.com/package/bitget-api [1]: https://www.npmjs.com/package/bitget-api
Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and WebSockets: Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and WebSockets:
- Complete integration with all Bitget APIs. - Complete integration with all Bitget APIs.
@@ -37,6 +36,7 @@ Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and We
- Issues? Check the [issues tab](https://github.com/tiagosiebler/bitget-api/issues). - Issues? Check the [issues tab](https://github.com/tiagosiebler/bitget-api/issues).
- Discuss & collaborate with other node devs? Join our [Node.js Algo Traders](https://t.me/nodetraders) engineering community on telegram. - Discuss & collaborate with other node devs? Join our [Node.js Algo Traders](https://t.me/nodetraders) engineering community on telegram.
- Follow our announcement channel for real-time updates on [X/Twitter](https://x.com/QuantSDKs)
<!-- template_related_projects --> <!-- template_related_projects -->

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.batchCreateVirtualSubaccountAndAPIKey(params) client.batchCreateVirtualSubaccountAndAPIKey(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.borrowLoan(params) client.borrowLoan(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.cancelSpotFollowerOrder(params) client.cancelSpotFollowerOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.closeFuturesFollowerPositions(params) client.closeFuturesFollowerPositions(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.closeFuturesTraderOrder(params) client.closeFuturesTraderOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.convert(params) client.convert(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.convertBGB(params) client.convertBGB(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.createSubaccount(params) client.createSubaccount(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.createSubaccountApiKey(params) client.createSubaccountApiKey(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.createSubaccountDepositAddress(params) client.createSubaccountDepositAddress(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.createVirtualSubaccount(params) client.createVirtualSubaccount(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.createVirtualSubaccountAPIKey(params) client.createVirtualSubaccountAPIKey(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.earnSubscribeSavings(params) client.earnSubscribeSavings(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresBatchCancelOrders(params) client.futuresBatchCancelOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresBatchSubmitOrders(params) client.futuresBatchSubmitOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresCancelAllOrders(params) client.futuresCancelAllOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresCancelOrder(params) client.futuresCancelOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresCancelPlanOrder(params) client.futuresCancelPlanOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresFlashClosePositions(params) client.futuresFlashClosePositions(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresModifyOrder(params) client.futuresModifyOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresModifyPlanOrder(params) client.futuresModifyPlanOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresModifyTPSLPOrder(params) client.futuresModifyTPSLPOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresSubmitOrder(params) client.futuresSubmitOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresSubmitPlanOrder(params) client.futuresSubmitPlanOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresSubmitPlanSubOrder(params) client.futuresSubmitPlanSubOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresSubmitReversal(params) client.futuresSubmitReversal(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.futuresSubmitTPSLOrder(params) client.futuresSubmitTPSLOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getAnnouncements(params) client.getAnnouncements(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getBalances(params) client.getBalances(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getBotAccount(params) client.getBotAccount(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getBrokerInfo(params) client.getBrokerInfo(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getBrokerTraders(params) client.getBrokerTraders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getBrokerTradersHistoricalOrders(params) client.getBrokerTradersHistoricalOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getBrokerTradersPendingOrders(params) client.getBrokerTradersPendingOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getConvertBGBCoins(params) client.getConvertBGBCoins(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getConvertBGBHistory(params) client.getConvertBGBHistory(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getConvertCoins(params) client.getConvertCoins(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getConvertHistory(params) client.getConvertHistory(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getConvertQuotedPrice(params) client.getConvertQuotedPrice(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnAccount(params) client.getEarnAccount(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnSavingsAccount(params) client.getEarnSavingsAccount(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnSavingsAssets(params) client.getEarnSavingsAssets(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnSavingsProducts(params) client.getEarnSavingsProducts(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnSavingsRecords(params) client.getEarnSavingsRecords(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnSavingsRedemptionResult(params) client.getEarnSavingsRedemptionResult(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnSavingsSubscription(params) client.getEarnSavingsSubscription(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getEarnSavingsSubscriptionResult(params) client.getEarnSavingsSubscriptionResult(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFundingAssets(params) client.getFundingAssets(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesAccountAsset(params) client.getFuturesAccountAsset(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesAccountAssets(params) client.getFuturesAccountAssets(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesAccountBills(params) client.getFuturesAccountBills(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesActiveBuySellVolumeData(params) client.getFuturesActiveBuySellVolumeData(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesActiveLongShortAccountData(params) client.getFuturesActiveLongShortAccountData(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesActiveLongShortPositionData(params) client.getFuturesActiveLongShortPositionData(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesActiveTakerBuySellVolumeData(params) client.getFuturesActiveTakerBuySellVolumeData(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesAllTickers(params) client.getFuturesAllTickers(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesCandles(params) client.getFuturesCandles(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesContractConfig(params) client.getFuturesContractConfig(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesCurrentFundingRate(params) client.getFuturesCurrentFundingRate(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesFills(params) client.getFuturesFills(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesFollowerCurrentOrders(params) client.getFuturesFollowerCurrentOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesFollowerFollowLimit(params) client.getFuturesFollowerFollowLimit(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesFollowerHistoryOrders(params) client.getFuturesFollowerHistoryOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesFollowerSettings(params) client.getFuturesFollowerSettings(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesFollowerTraders(params) client.getFuturesFollowerTraders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricCandles(params) client.getFuturesHistoricCandles(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricFundingRates(params) client.getFuturesHistoricFundingRates(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricIndexPriceCandles(params) client.getFuturesHistoricIndexPriceCandles(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricMarkPriceCandles(params) client.getFuturesHistoricMarkPriceCandles(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricOrderFills(params) client.getFuturesHistoricOrderFills(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricOrders(params) client.getFuturesHistoricOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricPlanOrders(params) client.getFuturesHistoricPlanOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricPositions(params) client.getFuturesHistoricPositions(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesHistoricTrades(params) client.getFuturesHistoricTrades(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesLongShortRatio(params) client.getFuturesLongShortRatio(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesMergeDepth(params) client.getFuturesMergeDepth(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesNextFundingTime(params) client.getFuturesNextFundingTime(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesOpenCount(params) client.getFuturesOpenCount(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesOpenInterest(params) client.getFuturesOpenInterest(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesOpenOrders(params) client.getFuturesOpenOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesOrder(params) client.getFuturesOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesPlanOrders(params) client.getFuturesPlanOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesPosition(params) client.getFuturesPosition(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesPositionTier(params) client.getFuturesPositionTier(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesPositions(params) client.getFuturesPositions(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesRecentTrades(params) client.getFuturesRecentTrades(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesSubAccountAssets(params) client.getFuturesSubAccountAssets(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesSymbolPrice(params) client.getFuturesSymbolPrice(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTicker(params) client.getFuturesTicker(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderCurrentOrder(params) client.getFuturesTraderCurrentOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderFollowers(params) client.getFuturesTraderFollowers(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderHistoryOrders(params) client.getFuturesTraderHistoryOrders(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderOrder(params) client.getFuturesTraderOrder(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderProfitHistory(params) client.getFuturesTraderProfitHistory(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderProfitShare(params) client.getFuturesTraderProfitShare(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderProfitShareGroup(params) client.getFuturesTraderProfitShareGroup(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderProfitShareHistory(params) client.getFuturesTraderProfitShareHistory(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTraderSymbolSettings(params) client.getFuturesTraderSymbolSettings(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

View File

@@ -11,9 +11,9 @@ const client = new RestClientV2({
}); });
client.getFuturesTransactionRecords(params) client.getFuturesTransactionRecords(params)
.then(response => { .then((response) => {
console.log(response); console.log(response);
}) })
.catch(error => { .catch((error) => {
console.error(error); console.error(error);
}); });

Some files were not shown because too many files have changed in this diff Show More