diff --git a/README.md b/README.md index 4326fd6..f345910 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ [1]: https://www.npmjs.com/package/bitget-api - Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and WebSockets: - 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). - 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) diff --git a/examples/apidoc/RestClientV2/batchCreateVirtualSubaccountAndAPIKey.js b/examples/apidoc/RestClientV2/batchCreateVirtualSubaccountAndAPIKey.js index 0e9b582..5643d0a 100644 --- a/examples/apidoc/RestClientV2/batchCreateVirtualSubaccountAndAPIKey.js +++ b/examples/apidoc/RestClientV2/batchCreateVirtualSubaccountAndAPIKey.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/user/batch-create-subaccount-and-apikey // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.batchCreateVirtualSubaccountAndAPIKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/borrowLoan.js b/examples/apidoc/RestClientV2/borrowLoan.js index c3efde5..5af3f3f 100644 --- a/examples/apidoc/RestClientV2/borrowLoan.js +++ b/examples/apidoc/RestClientV2/borrowLoan.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/borrow // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.borrowLoan(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/cancelSpotFollowerOrder.js b/examples/apidoc/RestClientV2/cancelSpotFollowerOrder.js index 11c4262..5042384 100644 --- a/examples/apidoc/RestClientV2/cancelSpotFollowerOrder.js +++ b/examples/apidoc/RestClientV2/cancelSpotFollowerOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/stop-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.cancelSpotFollowerOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/closeFuturesFollowerPositions.js b/examples/apidoc/RestClientV2/closeFuturesFollowerPositions.js index 1bda7ce..6984610 100644 --- a/examples/apidoc/RestClientV2/closeFuturesFollowerPositions.js +++ b/examples/apidoc/RestClientV2/closeFuturesFollowerPositions.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/close-positions // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.closeFuturesFollowerPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/closeFuturesTraderOrder.js b/examples/apidoc/RestClientV2/closeFuturesTraderOrder.js index fb1bc97..3575616 100644 --- a/examples/apidoc/RestClientV2/closeFuturesTraderOrder.js +++ b/examples/apidoc/RestClientV2/closeFuturesTraderOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/order-close-positions // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.closeFuturesTraderOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/convert.js b/examples/apidoc/RestClientV2/convert.js index d6d51e6..ef93cc6 100644 --- a/examples/apidoc/RestClientV2/convert.js +++ b/examples/apidoc/RestClientV2/convert.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/convert/trade // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.convert(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/convertBGB.js b/examples/apidoc/RestClientV2/convertBGB.js index b44534d..5937ee5 100644 --- a/examples/apidoc/RestClientV2/convertBGB.js +++ b/examples/apidoc/RestClientV2/convertBGB.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/convert/bgb-convert // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.convertBGB(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/createSubaccount.js b/examples/apidoc/RestClientV2/createSubaccount.js index b7e759b..b60f993 100644 --- a/examples/apidoc/RestClientV2/createSubaccount.js +++ b/examples/apidoc/RestClientV2/createSubaccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/create-subaccount // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.createSubaccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/createSubaccountApiKey.js b/examples/apidoc/RestClientV2/createSubaccountApiKey.js index 320870d..364d531 100644 --- a/examples/apidoc/RestClientV2/createSubaccountApiKey.js +++ b/examples/apidoc/RestClientV2/createSubaccountApiKey.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/manage/create-subaccount-apikey // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.createSubaccountApiKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/createSubaccountDepositAddress.js b/examples/apidoc/RestClientV2/createSubaccountDepositAddress.js index 3b0f73e..306a752 100644 --- a/examples/apidoc/RestClientV2/createSubaccountDepositAddress.js +++ b/examples/apidoc/RestClientV2/createSubaccountDepositAddress.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/subaccount-address // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.createSubaccountDepositAddress(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/createVirtualSubaccount.js b/examples/apidoc/RestClientV2/createVirtualSubaccount.js index 4749c44..4fb7f61 100644 --- a/examples/apidoc/RestClientV2/createVirtualSubaccount.js +++ b/examples/apidoc/RestClientV2/createVirtualSubaccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/user/create-virtual-subaccount // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.createVirtualSubaccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/createVirtualSubaccountAPIKey.js b/examples/apidoc/RestClientV2/createVirtualSubaccountAPIKey.js index 45d33fa..d00c049 100644 --- a/examples/apidoc/RestClientV2/createVirtualSubaccountAPIKey.js +++ b/examples/apidoc/RestClientV2/createVirtualSubaccountAPIKey.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/user/create-virtual-subaccount-apikey // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.createVirtualSubaccountAPIKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/earnSubscribeSavings.js b/examples/apidoc/RestClientV2/earnSubscribeSavings.js index 1536d0e..8dfd10b 100644 --- a/examples/apidoc/RestClientV2/earnSubscribeSavings.js +++ b/examples/apidoc/RestClientV2/earnSubscribeSavings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/subscribe // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.earnSubscribeSavings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresBatchCancelOrders.js b/examples/apidoc/RestClientV2/futuresBatchCancelOrders.js index ef7d747..1953527 100644 --- a/examples/apidoc/RestClientV2/futuresBatchCancelOrders.js +++ b/examples/apidoc/RestClientV2/futuresBatchCancelOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/batch-cancel-orders // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresBatchCancelOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresBatchSubmitOrders.js b/examples/apidoc/RestClientV2/futuresBatchSubmitOrders.js index 2472e00..0fb75fa 100644 --- a/examples/apidoc/RestClientV2/futuresBatchSubmitOrders.js +++ b/examples/apidoc/RestClientV2/futuresBatchSubmitOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/batch-place-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresBatchSubmitOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresCancelAllOrders.js b/examples/apidoc/RestClientV2/futuresCancelAllOrders.js index e5e5d31..ac7e579 100644 --- a/examples/apidoc/RestClientV2/futuresCancelAllOrders.js +++ b/examples/apidoc/RestClientV2/futuresCancelAllOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/cancel-all-orders // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresCancelAllOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresCancelOrder.js b/examples/apidoc/RestClientV2/futuresCancelOrder.js index 5764846..fe253a5 100644 --- a/examples/apidoc/RestClientV2/futuresCancelOrder.js +++ b/examples/apidoc/RestClientV2/futuresCancelOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/cancel-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresCancelOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresCancelPlanOrder.js b/examples/apidoc/RestClientV2/futuresCancelPlanOrder.js index ac7d4f4..a378c54 100644 --- a/examples/apidoc/RestClientV2/futuresCancelPlanOrder.js +++ b/examples/apidoc/RestClientV2/futuresCancelPlanOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/cancel-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresCancelPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresFlashClosePositions.js b/examples/apidoc/RestClientV2/futuresFlashClosePositions.js index 69a174f..fc97f2a 100644 --- a/examples/apidoc/RestClientV2/futuresFlashClosePositions.js +++ b/examples/apidoc/RestClientV2/futuresFlashClosePositions.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/close-positions // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresFlashClosePositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresModifyOrder.js b/examples/apidoc/RestClientV2/futuresModifyOrder.js index d91e88c..50b6f7b 100644 --- a/examples/apidoc/RestClientV2/futuresModifyOrder.js +++ b/examples/apidoc/RestClientV2/futuresModifyOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/modify-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresModifyOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresModifyPlanOrder.js b/examples/apidoc/RestClientV2/futuresModifyPlanOrder.js index b15d8af..392e416 100644 --- a/examples/apidoc/RestClientV2/futuresModifyPlanOrder.js +++ b/examples/apidoc/RestClientV2/futuresModifyPlanOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/modify-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresModifyPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresModifyTPSLPOrder.js b/examples/apidoc/RestClientV2/futuresModifyTPSLPOrder.js index d29e1cc..f7f4311 100644 --- a/examples/apidoc/RestClientV2/futuresModifyTPSLPOrder.js +++ b/examples/apidoc/RestClientV2/futuresModifyTPSLPOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/modify-tpsl-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresModifyTPSLPOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresSubmitOrder.js b/examples/apidoc/RestClientV2/futuresSubmitOrder.js index 4d8f57c..23c9180 100644 --- a/examples/apidoc/RestClientV2/futuresSubmitOrder.js +++ b/examples/apidoc/RestClientV2/futuresSubmitOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/place-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresSubmitOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresSubmitPlanOrder.js b/examples/apidoc/RestClientV2/futuresSubmitPlanOrder.js index 85275e2..06bff22 100644 --- a/examples/apidoc/RestClientV2/futuresSubmitPlanOrder.js +++ b/examples/apidoc/RestClientV2/futuresSubmitPlanOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/place-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresSubmitPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresSubmitPlanSubOrder.js b/examples/apidoc/RestClientV2/futuresSubmitPlanSubOrder.js index 761f39c..80be8de 100644 --- a/examples/apidoc/RestClientV2/futuresSubmitPlanSubOrder.js +++ b/examples/apidoc/RestClientV2/futuresSubmitPlanSubOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/plan-sub-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresSubmitPlanSubOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresSubmitReversal.js b/examples/apidoc/RestClientV2/futuresSubmitReversal.js index d08fb42..3706138 100644 --- a/examples/apidoc/RestClientV2/futuresSubmitReversal.js +++ b/examples/apidoc/RestClientV2/futuresSubmitReversal.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/click-backhand // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresSubmitReversal(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/futuresSubmitTPSLOrder.js b/examples/apidoc/RestClientV2/futuresSubmitTPSLOrder.js index 3387442..6ab1f16 100644 --- a/examples/apidoc/RestClientV2/futuresSubmitTPSLOrder.js +++ b/examples/apidoc/RestClientV2/futuresSubmitTPSLOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/place-tpsl-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.futuresSubmitTPSLOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getAnnouncements.js b/examples/apidoc/RestClientV2/getAnnouncements.js index 3535048..1ef2469 100644 --- a/examples/apidoc/RestClientV2/getAnnouncements.js +++ b/examples/apidoc/RestClientV2/getAnnouncements.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/public/annoucements // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getAnnouncements(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getBalances.js b/examples/apidoc/RestClientV2/getBalances.js index 0c3595f..714cccc 100644 --- a/examples/apidoc/RestClientV2/getBalances.js +++ b/examples/apidoc/RestClientV2/getBalances.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/account/all-account-balance // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getBalances(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getBotAccount.js b/examples/apidoc/RestClientV2/getBotAccount.js index 0853e79..42662be 100644 --- a/examples/apidoc/RestClientV2/getBotAccount.js +++ b/examples/apidoc/RestClientV2/getBotAccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/account/bot-assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getBotAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getBrokerInfo.js b/examples/apidoc/RestClientV2/getBrokerInfo.js index 97bf59d..451ea9c 100644 --- a/examples/apidoc/RestClientV2/getBrokerInfo.js +++ b/examples/apidoc/RestClientV2/getBrokerInfo.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/info // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getBrokerInfo(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getBrokerTraders.js b/examples/apidoc/RestClientV2/getBrokerTraders.js index 12e6f3c..2fb9f1e 100644 --- a/examples/apidoc/RestClientV2/getBrokerTraders.js +++ b/examples/apidoc/RestClientV2/getBrokerTraders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-broker/query-traders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getBrokerTraders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getBrokerTradersHistoricalOrders.js b/examples/apidoc/RestClientV2/getBrokerTradersHistoricalOrders.js index 58b9c78..de46815 100644 --- a/examples/apidoc/RestClientV2/getBrokerTradersHistoricalOrders.js +++ b/examples/apidoc/RestClientV2/getBrokerTradersHistoricalOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-broker/query-history-traces // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getBrokerTradersHistoricalOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getBrokerTradersPendingOrders.js b/examples/apidoc/RestClientV2/getBrokerTradersPendingOrders.js index 50e7d1e..d82597e 100644 --- a/examples/apidoc/RestClientV2/getBrokerTradersPendingOrders.js +++ b/examples/apidoc/RestClientV2/getBrokerTradersPendingOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-broker/query-current-traces // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getBrokerTradersPendingOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getConvertBGBCoins.js b/examples/apidoc/RestClientV2/getConvertBGBCoins.js index 810c39c..62e8ae1 100644 --- a/examples/apidoc/RestClientV2/getConvertBGBCoins.js +++ b/examples/apidoc/RestClientV2/getConvertBGBCoins.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/convert/bgb-convert-coin-list // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getConvertBGBCoins(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getConvertBGBHistory.js b/examples/apidoc/RestClientV2/getConvertBGBHistory.js index 1e8d6f6..4370d2d 100644 --- a/examples/apidoc/RestClientV2/getConvertBGBHistory.js +++ b/examples/apidoc/RestClientV2/getConvertBGBHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/convert/bgb-convert-records // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getConvertBGBHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getConvertCoins.js b/examples/apidoc/RestClientV2/getConvertCoins.js index af0bde4..b8960cc 100644 --- a/examples/apidoc/RestClientV2/getConvertCoins.js +++ b/examples/apidoc/RestClientV2/getConvertCoins.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/convert/currencies // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getConvertCoins(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getConvertHistory.js b/examples/apidoc/RestClientV2/getConvertHistory.js index 93405e5..c358052 100644 --- a/examples/apidoc/RestClientV2/getConvertHistory.js +++ b/examples/apidoc/RestClientV2/getConvertHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/convert/convert-record // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getConvertHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getConvertQuotedPrice.js b/examples/apidoc/RestClientV2/getConvertQuotedPrice.js index bbe0b91..acf8181 100644 --- a/examples/apidoc/RestClientV2/getConvertQuotedPrice.js +++ b/examples/apidoc/RestClientV2/getConvertQuotedPrice.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/convert/quoted-price // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getConvertQuotedPrice(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnAccount.js b/examples/apidoc/RestClientV2/getEarnAccount.js index 151daf9..5254d4d 100644 --- a/examples/apidoc/RestClientV2/getEarnAccount.js +++ b/examples/apidoc/RestClientV2/getEarnAccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/account/assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnSavingsAccount.js b/examples/apidoc/RestClientV2/getEarnSavingsAccount.js index d689e23..30cd8d7 100644 --- a/examples/apidoc/RestClientV2/getEarnSavingsAccount.js +++ b/examples/apidoc/RestClientV2/getEarnSavingsAccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/account // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnSavingsAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnSavingsAssets.js b/examples/apidoc/RestClientV2/getEarnSavingsAssets.js index c46957a..32228c6 100644 --- a/examples/apidoc/RestClientV2/getEarnSavingsAssets.js +++ b/examples/apidoc/RestClientV2/getEarnSavingsAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnSavingsAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnSavingsProducts.js b/examples/apidoc/RestClientV2/getEarnSavingsProducts.js index a65f229..03623ec 100644 --- a/examples/apidoc/RestClientV2/getEarnSavingsProducts.js +++ b/examples/apidoc/RestClientV2/getEarnSavingsProducts.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/product // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnSavingsProducts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnSavingsRecords.js b/examples/apidoc/RestClientV2/getEarnSavingsRecords.js index 936eb78..43bcab0 100644 --- a/examples/apidoc/RestClientV2/getEarnSavingsRecords.js +++ b/examples/apidoc/RestClientV2/getEarnSavingsRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/records // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnSavingsRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnSavingsRedemptionResult.js b/examples/apidoc/RestClientV2/getEarnSavingsRedemptionResult.js index d6e3680..c2a7940 100644 --- a/examples/apidoc/RestClientV2/getEarnSavingsRedemptionResult.js +++ b/examples/apidoc/RestClientV2/getEarnSavingsRedemptionResult.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/redeem-result // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnSavingsRedemptionResult(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnSavingsSubscription.js b/examples/apidoc/RestClientV2/getEarnSavingsSubscription.js index 4f492b4..a3cabc0 100644 --- a/examples/apidoc/RestClientV2/getEarnSavingsSubscription.js +++ b/examples/apidoc/RestClientV2/getEarnSavingsSubscription.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/subscribe-info // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnSavingsSubscription(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getEarnSavingsSubscriptionResult.js b/examples/apidoc/RestClientV2/getEarnSavingsSubscriptionResult.js index f611024..e30dce1 100644 --- a/examples/apidoc/RestClientV2/getEarnSavingsSubscriptionResult.js +++ b/examples/apidoc/RestClientV2/getEarnSavingsSubscriptionResult.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/savings/subscribe-result // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getEarnSavingsSubscriptionResult(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFundingAssets.js b/examples/apidoc/RestClientV2/getFundingAssets.js index bb42198..72a897f 100644 --- a/examples/apidoc/RestClientV2/getFundingAssets.js +++ b/examples/apidoc/RestClientV2/getFundingAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/account/funding-assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFundingAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesAccountAsset.js b/examples/apidoc/RestClientV2/getFuturesAccountAsset.js index 9de377b..e86beb4 100644 --- a/examples/apidoc/RestClientV2/getFuturesAccountAsset.js +++ b/examples/apidoc/RestClientV2/getFuturesAccountAsset.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/account // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesAccountAsset(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesAccountAssets.js b/examples/apidoc/RestClientV2/getFuturesAccountAssets.js index b1a6bb8..863808e 100644 --- a/examples/apidoc/RestClientV2/getFuturesAccountAssets.js +++ b/examples/apidoc/RestClientV2/getFuturesAccountAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/accounts // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesAccountAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesAccountBills.js b/examples/apidoc/RestClientV2/getFuturesAccountBills.js index 71ca462..f11fe6f 100644 --- a/examples/apidoc/RestClientV2/getFuturesAccountBills.js +++ b/examples/apidoc/RestClientV2/getFuturesAccountBills.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/bill // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesAccountBills(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesActiveBuySellVolumeData.js b/examples/apidoc/RestClientV2/getFuturesActiveBuySellVolumeData.js index c7fab2c..7547e77 100644 --- a/examples/apidoc/RestClientV2/getFuturesActiveBuySellVolumeData.js +++ b/examples/apidoc/RestClientV2/getFuturesActiveBuySellVolumeData.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/long-short // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesActiveBuySellVolumeData(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesActiveLongShortAccountData.js b/examples/apidoc/RestClientV2/getFuturesActiveLongShortAccountData.js index d73538e..bd76804 100644 --- a/examples/apidoc/RestClientV2/getFuturesActiveLongShortAccountData.js +++ b/examples/apidoc/RestClientV2/getFuturesActiveLongShortAccountData.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/account-long-short // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesActiveLongShortAccountData(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesActiveLongShortPositionData.js b/examples/apidoc/RestClientV2/getFuturesActiveLongShortPositionData.js index 1bb14d3..71260f0 100644 --- a/examples/apidoc/RestClientV2/getFuturesActiveLongShortPositionData.js +++ b/examples/apidoc/RestClientV2/getFuturesActiveLongShortPositionData.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/position-long-short // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesActiveLongShortPositionData(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesActiveTakerBuySellVolumeData.js b/examples/apidoc/RestClientV2/getFuturesActiveTakerBuySellVolumeData.js index 52f50e9..e51b922 100644 --- a/examples/apidoc/RestClientV2/getFuturesActiveTakerBuySellVolumeData.js +++ b/examples/apidoc/RestClientV2/getFuturesActiveTakerBuySellVolumeData.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/taker-buy-sell // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesActiveTakerBuySellVolumeData(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesAllTickers.js b/examples/apidoc/RestClientV2/getFuturesAllTickers.js index 26aa9dc..c138e08 100644 --- a/examples/apidoc/RestClientV2/getFuturesAllTickers.js +++ b/examples/apidoc/RestClientV2/getFuturesAllTickers.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/tickers // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesAllTickers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesCandles.js b/examples/apidoc/RestClientV2/getFuturesCandles.js index 2fac5f9..eb69893 100644 --- a/examples/apidoc/RestClientV2/getFuturesCandles.js +++ b/examples/apidoc/RestClientV2/getFuturesCandles.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/candles // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesContractConfig.js b/examples/apidoc/RestClientV2/getFuturesContractConfig.js index 452dac0..c70521e 100644 --- a/examples/apidoc/RestClientV2/getFuturesContractConfig.js +++ b/examples/apidoc/RestClientV2/getFuturesContractConfig.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/contracts // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesContractConfig(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesCurrentFundingRate.js b/examples/apidoc/RestClientV2/getFuturesCurrentFundingRate.js index 102e6d4..9586955 100644 --- a/examples/apidoc/RestClientV2/getFuturesCurrentFundingRate.js +++ b/examples/apidoc/RestClientV2/getFuturesCurrentFundingRate.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/current-fund-rate // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesCurrentFundingRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesFills.js b/examples/apidoc/RestClientV2/getFuturesFills.js index 6479a6f..dcde35a 100644 --- a/examples/apidoc/RestClientV2/getFuturesFills.js +++ b/examples/apidoc/RestClientV2/getFuturesFills.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/fills // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesFills(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesFollowerCurrentOrders.js b/examples/apidoc/RestClientV2/getFuturesFollowerCurrentOrders.js index 9b36c49..12ec3a5 100644 --- a/examples/apidoc/RestClientV2/getFuturesFollowerCurrentOrders.js +++ b/examples/apidoc/RestClientV2/getFuturesFollowerCurrentOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/query-current-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesFollowerCurrentOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesFollowerFollowLimit.js b/examples/apidoc/RestClientV2/getFuturesFollowerFollowLimit.js index fe6db8d..ad4959d 100644 --- a/examples/apidoc/RestClientV2/getFuturesFollowerFollowLimit.js +++ b/examples/apidoc/RestClientV2/getFuturesFollowerFollowLimit.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/query-quantity-limit // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesFollowerFollowLimit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesFollowerHistoryOrders.js b/examples/apidoc/RestClientV2/getFuturesFollowerHistoryOrders.js index eeec509..87eaf8b 100644 --- a/examples/apidoc/RestClientV2/getFuturesFollowerHistoryOrders.js +++ b/examples/apidoc/RestClientV2/getFuturesFollowerHistoryOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/query-history-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesFollowerHistoryOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesFollowerSettings.js b/examples/apidoc/RestClientV2/getFuturesFollowerSettings.js index 3c83377..0c9f9b7 100644 --- a/examples/apidoc/RestClientV2/getFuturesFollowerSettings.js +++ b/examples/apidoc/RestClientV2/getFuturesFollowerSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/query-settings // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesFollowerSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesFollowerTraders.js b/examples/apidoc/RestClientV2/getFuturesFollowerTraders.js index 9c678fd..de48f96 100644 --- a/examples/apidoc/RestClientV2/getFuturesFollowerTraders.js +++ b/examples/apidoc/RestClientV2/getFuturesFollowerTraders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/query-traders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesFollowerTraders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricCandles.js b/examples/apidoc/RestClientV2/getFuturesHistoricCandles.js index abd36e2..e4345f0 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricCandles.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricCandles.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/history-candles // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricFundingRates.js b/examples/apidoc/RestClientV2/getFuturesHistoricFundingRates.js index c6881f2..22ad72e 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricFundingRates.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricFundingRates.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/history-fund-rate // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricFundingRates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricIndexPriceCandles.js b/examples/apidoc/RestClientV2/getFuturesHistoricIndexPriceCandles.js index 82b4ee0..8b65262 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricIndexPriceCandles.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricIndexPriceCandles.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/history-index-candles // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricIndexPriceCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricMarkPriceCandles.js b/examples/apidoc/RestClientV2/getFuturesHistoricMarkPriceCandles.js index 190371c..eb50d77 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricMarkPriceCandles.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricMarkPriceCandles.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/history-mark-candles // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricMarkPriceCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricOrderFills.js b/examples/apidoc/RestClientV2/getFuturesHistoricOrderFills.js index 75d653c..7809a5e 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricOrderFills.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricOrderFills.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/fill-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricOrderFills(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricOrders.js b/examples/apidoc/RestClientV2/getFuturesHistoricOrders.js index e38b07c..a2ca29b 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricOrders.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/orders-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricPlanOrders.js b/examples/apidoc/RestClientV2/getFuturesHistoricPlanOrders.js index 8379ab4..8cff2b4 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricPlanOrders.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricPlanOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/orders-plan-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricPlanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricPositions.js b/examples/apidoc/RestClientV2/getFuturesHistoricPositions.js index fc342b3..557ace9 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricPositions.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricPositions.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/position/history-position // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesHistoricTrades.js b/examples/apidoc/RestClientV2/getFuturesHistoricTrades.js index 8523a83..32558bf 100644 --- a/examples/apidoc/RestClientV2/getFuturesHistoricTrades.js +++ b/examples/apidoc/RestClientV2/getFuturesHistoricTrades.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/fills-history // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesHistoricTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesLongShortRatio.js b/examples/apidoc/RestClientV2/getFuturesLongShortRatio.js index b24f791..df53be9 100644 --- a/examples/apidoc/RestClientV2/getFuturesLongShortRatio.js +++ b/examples/apidoc/RestClientV2/getFuturesLongShortRatio.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/long-short-ratio // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesLongShortRatio(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesMergeDepth.js b/examples/apidoc/RestClientV2/getFuturesMergeDepth.js index 667bfb1..ec2f96c 100644 --- a/examples/apidoc/RestClientV2/getFuturesMergeDepth.js +++ b/examples/apidoc/RestClientV2/getFuturesMergeDepth.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/merge-depth // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesMergeDepth(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesNextFundingTime.js b/examples/apidoc/RestClientV2/getFuturesNextFundingTime.js index 3787017..d75eeb6 100644 --- a/examples/apidoc/RestClientV2/getFuturesNextFundingTime.js +++ b/examples/apidoc/RestClientV2/getFuturesNextFundingTime.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/funding-time // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesNextFundingTime(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesOpenCount.js b/examples/apidoc/RestClientV2/getFuturesOpenCount.js index 2ecbe99..72325fd 100644 --- a/examples/apidoc/RestClientV2/getFuturesOpenCount.js +++ b/examples/apidoc/RestClientV2/getFuturesOpenCount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/open-count // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesOpenCount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesOpenInterest.js b/examples/apidoc/RestClientV2/getFuturesOpenInterest.js index f48707e..f18047a 100644 --- a/examples/apidoc/RestClientV2/getFuturesOpenInterest.js +++ b/examples/apidoc/RestClientV2/getFuturesOpenInterest.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/open-interest // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesOpenInterest(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesOpenOrders.js b/examples/apidoc/RestClientV2/getFuturesOpenOrders.js index e8f3d55..481c5a9 100644 --- a/examples/apidoc/RestClientV2/getFuturesOpenOrders.js +++ b/examples/apidoc/RestClientV2/getFuturesOpenOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/orders-pending // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesOrder.js b/examples/apidoc/RestClientV2/getFuturesOrder.js index 5f51130..712b621 100644 --- a/examples/apidoc/RestClientV2/getFuturesOrder.js +++ b/examples/apidoc/RestClientV2/getFuturesOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/detail // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesPlanOrders.js b/examples/apidoc/RestClientV2/getFuturesPlanOrders.js index 32c7cba..881db35 100644 --- a/examples/apidoc/RestClientV2/getFuturesPlanOrders.js +++ b/examples/apidoc/RestClientV2/getFuturesPlanOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/order/orders-plan-pending // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesPlanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesPosition.js b/examples/apidoc/RestClientV2/getFuturesPosition.js index bdf0a79..12ec05b 100644 --- a/examples/apidoc/RestClientV2/getFuturesPosition.js +++ b/examples/apidoc/RestClientV2/getFuturesPosition.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/position/single-position // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesPosition(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesPositionTier.js b/examples/apidoc/RestClientV2/getFuturesPositionTier.js index 568e45d..b64f038 100644 --- a/examples/apidoc/RestClientV2/getFuturesPositionTier.js +++ b/examples/apidoc/RestClientV2/getFuturesPositionTier.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/query-position-lever // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesPositionTier(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesPositions.js b/examples/apidoc/RestClientV2/getFuturesPositions.js index 170250a..dfa5fa8 100644 --- a/examples/apidoc/RestClientV2/getFuturesPositions.js +++ b/examples/apidoc/RestClientV2/getFuturesPositions.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/position/all-position // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesRecentTrades.js b/examples/apidoc/RestClientV2/getFuturesRecentTrades.js index 620f9ec..6eb6bf8 100644 --- a/examples/apidoc/RestClientV2/getFuturesRecentTrades.js +++ b/examples/apidoc/RestClientV2/getFuturesRecentTrades.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/fills // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesRecentTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesSubAccountAssets.js b/examples/apidoc/RestClientV2/getFuturesSubAccountAssets.js index d1c98e0..9e8947a 100644 --- a/examples/apidoc/RestClientV2/getFuturesSubAccountAssets.js +++ b/examples/apidoc/RestClientV2/getFuturesSubAccountAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/sub-account-assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesSubAccountAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesSymbolPrice.js b/examples/apidoc/RestClientV2/getFuturesSymbolPrice.js index 588a397..e03cd7f 100644 --- a/examples/apidoc/RestClientV2/getFuturesSymbolPrice.js +++ b/examples/apidoc/RestClientV2/getFuturesSymbolPrice.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/symbol-price // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesSymbolPrice(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTicker.js b/examples/apidoc/RestClientV2/getFuturesTicker.js index 76a72d0..8e7c3e9 100644 --- a/examples/apidoc/RestClientV2/getFuturesTicker.js +++ b/examples/apidoc/RestClientV2/getFuturesTicker.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/ticker // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTicker(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderCurrentOrder.js b/examples/apidoc/RestClientV2/getFuturesTraderCurrentOrder.js index a9cc41f..ea70232 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderCurrentOrder.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderCurrentOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/order-current-track // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderCurrentOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderFollowers.js b/examples/apidoc/RestClientV2/getFuturesTraderFollowers.js index bdcc8e1..9fecc1e 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderFollowers.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderFollowers.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/config-query-followers // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderFollowers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderHistoryOrders.js b/examples/apidoc/RestClientV2/getFuturesTraderHistoryOrders.js index 86bf2f5..50887a0 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderHistoryOrders.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderHistoryOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/order-history-track // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderHistoryOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderOrder.js b/examples/apidoc/RestClientV2/getFuturesTraderOrder.js index 1085fcd..2306e6f 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderOrder.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/order-total-detail // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderProfitHistory.js b/examples/apidoc/RestClientV2/getFuturesTraderProfitHistory.js index d5382e6..fec612b 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderProfitHistory.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderProfitHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/profit-history-summarys // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderProfitHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderProfitShare.js b/examples/apidoc/RestClientV2/getFuturesTraderProfitShare.js index b1d3ff2..eec703b 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderProfitShare.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderProfitShare.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/profit-details // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderProfitShare(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderProfitShareGroup.js b/examples/apidoc/RestClientV2/getFuturesTraderProfitShareGroup.js index 18e2bf5..9e3ffe7 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderProfitShareGroup.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderProfitShareGroup.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/profits-group-coin-date // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderProfitShareGroup(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderProfitShareHistory.js b/examples/apidoc/RestClientV2/getFuturesTraderProfitShareHistory.js index 1fdbe6c..671bba7 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderProfitShareHistory.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderProfitShareHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/profit-history-details // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderProfitShareHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTraderSymbolSettings.js b/examples/apidoc/RestClientV2/getFuturesTraderSymbolSettings.js index 9606c70..3ba78e2 100644 --- a/examples/apidoc/RestClientV2/getFuturesTraderSymbolSettings.js +++ b/examples/apidoc/RestClientV2/getFuturesTraderSymbolSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/config-query-symbols // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTraderSymbolSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesTransactionRecords.js b/examples/apidoc/RestClientV2/getFuturesTransactionRecords.js index ad2fd5d..48344c9 100644 --- a/examples/apidoc/RestClientV2/getFuturesTransactionRecords.js +++ b/examples/apidoc/RestClientV2/getFuturesTransactionRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/tax/future-record // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesTransactionRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getFuturesVIPFeeRate.js b/examples/apidoc/RestClientV2/getFuturesVIPFeeRate.js index 7b01da2..397f979 100644 --- a/examples/apidoc/RestClientV2/getFuturesVIPFeeRate.js +++ b/examples/apidoc/RestClientV2/getFuturesVIPFeeRate.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/vip-fee-rate // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getFuturesVIPFeeRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getIsolatedMarginBorrowingRatio.js b/examples/apidoc/RestClientV2/getIsolatedMarginBorrowingRatio.js index 4eadabb..8ab850f 100644 --- a/examples/apidoc/RestClientV2/getIsolatedMarginBorrowingRatio.js +++ b/examples/apidoc/RestClientV2/getIsolatedMarginBorrowingRatio.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/isolated-borrow-rate // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getIsolatedMarginBorrowingRatio(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getLoanCurrencies.js b/examples/apidoc/RestClientV2/getLoanCurrencies.js index c7b3952..6b8e0d4 100644 --- a/examples/apidoc/RestClientV2/getLoanCurrencies.js +++ b/examples/apidoc/RestClientV2/getLoanCurrencies.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/public/coinInfos // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getLoanCurrencies(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getLoanDebts.js b/examples/apidoc/RestClientV2/getLoanDebts.js index 231d68c..77a518d 100644 --- a/examples/apidoc/RestClientV2/getLoanDebts.js +++ b/examples/apidoc/RestClientV2/getLoanDebts.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/debts // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getLoanDebts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getLoanEstInterestAndBorrowable.js b/examples/apidoc/RestClientV2/getLoanEstInterestAndBorrowable.js index 132ace0..529dcfe 100644 --- a/examples/apidoc/RestClientV2/getLoanEstInterestAndBorrowable.js +++ b/examples/apidoc/RestClientV2/getLoanEstInterestAndBorrowable.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/public/hour-interest // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getLoanEstInterestAndBorrowable(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getLoanHistory.js b/examples/apidoc/RestClientV2/getLoanHistory.js index 3d154fd..acaf5bb 100644 --- a/examples/apidoc/RestClientV2/getLoanHistory.js +++ b/examples/apidoc/RestClientV2/getLoanHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/borrow-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getLoanHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getLoanLiquidationRecords.js b/examples/apidoc/RestClientV2/getLoanLiquidationRecords.js index bd987fd..d255866 100644 --- a/examples/apidoc/RestClientV2/getLoanLiquidationRecords.js +++ b/examples/apidoc/RestClientV2/getLoanLiquidationRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/reduces // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getLoanLiquidationRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getLoanPledgeRateHistory.js b/examples/apidoc/RestClientV2/getLoanPledgeRateHistory.js index ef55ca1..e8f4017 100644 --- a/examples/apidoc/RestClientV2/getLoanPledgeRateHistory.js +++ b/examples/apidoc/RestClientV2/getLoanPledgeRateHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/revise-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getLoanPledgeRateHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginAccountAssets.js b/examples/apidoc/RestClientV2/getMarginAccountAssets.js index 4f55c70..eb14493 100644 --- a/examples/apidoc/RestClientV2/getMarginAccountAssets.js +++ b/examples/apidoc/RestClientV2/getMarginAccountAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginAccountAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginBorrowHistory.js b/examples/apidoc/RestClientV2/getMarginBorrowHistory.js index 1c15941..123fa94 100644 --- a/examples/apidoc/RestClientV2/getMarginBorrowHistory.js +++ b/examples/apidoc/RestClientV2/getMarginBorrowHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/borrow-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginBorrowHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginCurrencies.js b/examples/apidoc/RestClientV2/getMarginCurrencies.js index 3b5d5fd..52260ec 100644 --- a/examples/apidoc/RestClientV2/getMarginCurrencies.js +++ b/examples/apidoc/RestClientV2/getMarginCurrencies.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/currencies // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginCurrencies(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginFinancialHistory.js b/examples/apidoc/RestClientV2/getMarginFinancialHistory.js index 7769846..4f4dd1d 100644 --- a/examples/apidoc/RestClientV2/getMarginFinancialHistory.js +++ b/examples/apidoc/RestClientV2/getMarginFinancialHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/financial-records // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginFinancialHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginFlashRepayResult.js b/examples/apidoc/RestClientV2/getMarginFlashRepayResult.js index b642cbb..e8c37c6 100644 --- a/examples/apidoc/RestClientV2/getMarginFlashRepayResult.js +++ b/examples/apidoc/RestClientV2/getMarginFlashRepayResult.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/query-flash-repay-status // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginFlashRepayResult(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginHistoricOrderFills.js b/examples/apidoc/RestClientV2/getMarginHistoricOrderFills.js index 14a5b02..d6eaf01 100644 --- a/examples/apidoc/RestClientV2/getMarginHistoricOrderFills.js +++ b/examples/apidoc/RestClientV2/getMarginHistoricOrderFills.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/fills // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginHistoricOrderFills(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginHistoricOrders.js b/examples/apidoc/RestClientV2/getMarginHistoricOrders.js index 45ae8cf..e8c1ee0 100644 --- a/examples/apidoc/RestClientV2/getMarginHistoricOrders.js +++ b/examples/apidoc/RestClientV2/getMarginHistoricOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/history-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginHistoricOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginInterestHistory.js b/examples/apidoc/RestClientV2/getMarginInterestHistory.js index 2cd54ad..4e2ad93 100644 --- a/examples/apidoc/RestClientV2/getMarginInterestHistory.js +++ b/examples/apidoc/RestClientV2/getMarginInterestHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/interest-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginInterestHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginInterestRateAndMaxBorrowable.js b/examples/apidoc/RestClientV2/getMarginInterestRateAndMaxBorrowable.js index 94431a0..c15ebb6 100644 --- a/examples/apidoc/RestClientV2/getMarginInterestRateAndMaxBorrowable.js +++ b/examples/apidoc/RestClientV2/getMarginInterestRateAndMaxBorrowable.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/interest-rate-and-limit // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginInterestRateAndMaxBorrowable(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginLiquidationHistory.js b/examples/apidoc/RestClientV2/getMarginLiquidationHistory.js index 89df9d2..daeea52 100644 --- a/examples/apidoc/RestClientV2/getMarginLiquidationHistory.js +++ b/examples/apidoc/RestClientV2/getMarginLiquidationHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/liquidation-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginLiquidationHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginLiquidationOrders.js b/examples/apidoc/RestClientV2/getMarginLiquidationOrders.js index baf7016..5df4ad6 100644 --- a/examples/apidoc/RestClientV2/getMarginLiquidationOrders.js +++ b/examples/apidoc/RestClientV2/getMarginLiquidationOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/liquidation-order // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginLiquidationOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginLoanGrowthRate.js b/examples/apidoc/RestClientV2/getMarginLoanGrowthRate.js index 5c209dd..bfe6b5a 100644 --- a/examples/apidoc/RestClientV2/getMarginLoanGrowthRate.js +++ b/examples/apidoc/RestClientV2/getMarginLoanGrowthRate.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/market/loan-growth // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginLoanGrowthRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginMaxBorrowable.js b/examples/apidoc/RestClientV2/getMarginMaxBorrowable.js index b55ce9f..7265b88 100644 --- a/examples/apidoc/RestClientV2/getMarginMaxBorrowable.js +++ b/examples/apidoc/RestClientV2/getMarginMaxBorrowable.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/max-borrowable-amount // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginMaxBorrowable(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginMaxTransferable.js b/examples/apidoc/RestClientV2/getMarginMaxTransferable.js index 7bb353f..2d1244a 100644 --- a/examples/apidoc/RestClientV2/getMarginMaxTransferable.js +++ b/examples/apidoc/RestClientV2/getMarginMaxTransferable.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/max-transfer-out-amount // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginMaxTransferable(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginOpenOrders.js b/examples/apidoc/RestClientV2/getMarginOpenOrders.js index 70de093..7a8175d 100644 --- a/examples/apidoc/RestClientV2/getMarginOpenOrders.js +++ b/examples/apidoc/RestClientV2/getMarginOpenOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/open-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginRepayHistory.js b/examples/apidoc/RestClientV2/getMarginRepayHistory.js index feb22c6..13d2444 100644 --- a/examples/apidoc/RestClientV2/getMarginRepayHistory.js +++ b/examples/apidoc/RestClientV2/getMarginRepayHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/repay-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginRepayHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginRiskRate.js b/examples/apidoc/RestClientV2/getMarginRiskRate.js index 42c8b16..85b8733 100644 --- a/examples/apidoc/RestClientV2/getMarginRiskRate.js +++ b/examples/apidoc/RestClientV2/getMarginRiskRate.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/risk-rate // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginRiskRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginTierConfiguration.js b/examples/apidoc/RestClientV2/getMarginTierConfiguration.js index 9e68bc7..f4449fa 100644 --- a/examples/apidoc/RestClientV2/getMarginTierConfiguration.js +++ b/examples/apidoc/RestClientV2/getMarginTierConfiguration.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/tier-data // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginTierConfiguration(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getMarginTransactionRecords.js b/examples/apidoc/RestClientV2/getMarginTransactionRecords.js index 8d9c1d3..feec570 100644 --- a/examples/apidoc/RestClientV2/getMarginTransactionRecords.js +++ b/examples/apidoc/RestClientV2/getMarginTransactionRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/tax/margin-record // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getMarginTransactionRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getOngoingLoanOrders.js b/examples/apidoc/RestClientV2/getOngoingLoanOrders.js index 67f4166..8e0a519 100644 --- a/examples/apidoc/RestClientV2/getOngoingLoanOrders.js +++ b/examples/apidoc/RestClientV2/getOngoingLoanOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/ongoing-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getOngoingLoanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getP2PMerchantAdvertisementList.js b/examples/apidoc/RestClientV2/getP2PMerchantAdvertisementList.js index 6126578..8f78857 100644 --- a/examples/apidoc/RestClientV2/getP2PMerchantAdvertisementList.js +++ b/examples/apidoc/RestClientV2/getP2PMerchantAdvertisementList.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/p2p/advList // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getP2PMerchantAdvertisementList(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getP2PMerchantInfo.js b/examples/apidoc/RestClientV2/getP2PMerchantInfo.js index cd82525..a0b24a4 100644 --- a/examples/apidoc/RestClientV2/getP2PMerchantInfo.js +++ b/examples/apidoc/RestClientV2/getP2PMerchantInfo.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/p2p/merchantInfo // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getP2PMerchantInfo(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getP2PMerchantList.js b/examples/apidoc/RestClientV2/getP2PMerchantList.js index 60e8a70..30e919f 100644 --- a/examples/apidoc/RestClientV2/getP2PMerchantList.js +++ b/examples/apidoc/RestClientV2/getP2PMerchantList.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/p2p/merchantList // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getP2PMerchantList(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getP2PMerchantOrders.js b/examples/apidoc/RestClientV2/getP2PMerchantOrders.js index 49fa17f..ae2a2d8 100644 --- a/examples/apidoc/RestClientV2/getP2PMerchantOrders.js +++ b/examples/apidoc/RestClientV2/getP2PMerchantOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/p2p/orderList // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getP2PMerchantOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getP2PTransactionRecords.js b/examples/apidoc/RestClientV2/getP2PTransactionRecords.js index 6520ee9..06cb42b 100644 --- a/examples/apidoc/RestClientV2/getP2PTransactionRecords.js +++ b/examples/apidoc/RestClientV2/getP2PTransactionRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/tax/p2p-record // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getP2PTransactionRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getRepayHistory.js b/examples/apidoc/RestClientV2/getRepayHistory.js index e981221..adc532d 100644 --- a/examples/apidoc/RestClientV2/getRepayHistory.js +++ b/examples/apidoc/RestClientV2/getRepayHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/repay-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getRepayHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getServerTime.js b/examples/apidoc/RestClientV2/getServerTime.js index 945551b..fe58672 100644 --- a/examples/apidoc/RestClientV2/getServerTime.js +++ b/examples/apidoc/RestClientV2/getServerTime.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/public/time // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getServerTime(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSharkfinAccount.js b/examples/apidoc/RestClientV2/getSharkfinAccount.js index e88e677..b009b0c 100644 --- a/examples/apidoc/RestClientV2/getSharkfinAccount.js +++ b/examples/apidoc/RestClientV2/getSharkfinAccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/sharkfin/account // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSharkfinAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSharkfinAssets.js b/examples/apidoc/RestClientV2/getSharkfinAssets.js index 1508b29..beb05fb 100644 --- a/examples/apidoc/RestClientV2/getSharkfinAssets.js +++ b/examples/apidoc/RestClientV2/getSharkfinAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/sharkfin/assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSharkfinAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSharkfinProducts.js b/examples/apidoc/RestClientV2/getSharkfinProducts.js index eb3a26c..97d0584 100644 --- a/examples/apidoc/RestClientV2/getSharkfinProducts.js +++ b/examples/apidoc/RestClientV2/getSharkfinProducts.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/sharkfin/product // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSharkfinProducts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSharkfinRecords.js b/examples/apidoc/RestClientV2/getSharkfinRecords.js index 0432a68..fb6d3ed 100644 --- a/examples/apidoc/RestClientV2/getSharkfinRecords.js +++ b/examples/apidoc/RestClientV2/getSharkfinRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/sharkfin/records // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSharkfinRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSharkfinSubscription.js b/examples/apidoc/RestClientV2/getSharkfinSubscription.js index 8380123..8c46da9 100644 --- a/examples/apidoc/RestClientV2/getSharkfinSubscription.js +++ b/examples/apidoc/RestClientV2/getSharkfinSubscription.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/sharkfin/subscribe-info // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSharkfinSubscription(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSharkfinSubscriptionResult.js b/examples/apidoc/RestClientV2/getSharkfinSubscriptionResult.js index 1c63a43..2e5ef03 100644 --- a/examples/apidoc/RestClientV2/getSharkfinSubscriptionResult.js +++ b/examples/apidoc/RestClientV2/getSharkfinSubscriptionResult.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/sharkfin/subscribe-result // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSharkfinSubscriptionResult(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotAccount.js b/examples/apidoc/RestClientV2/getSpotAccount.js index 0a81904..06d4e0a 100644 --- a/examples/apidoc/RestClientV2/getSpotAccount.js +++ b/examples/apidoc/RestClientV2/getSpotAccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/info // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotAccountAssets.js b/examples/apidoc/RestClientV2/getSpotAccountAssets.js index cb9241e..c181905 100644 --- a/examples/apidoc/RestClientV2/getSpotAccountAssets.js +++ b/examples/apidoc/RestClientV2/getSpotAccountAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotAccountAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotAccountBills.js b/examples/apidoc/RestClientV2/getSpotAccountBills.js index fd43a28..0f1428d 100644 --- a/examples/apidoc/RestClientV2/getSpotAccountBills.js +++ b/examples/apidoc/RestClientV2/getSpotAccountBills.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/bills // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotAccountBills(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotBGBDeductInfo.js b/examples/apidoc/RestClientV2/getSpotBGBDeductInfo.js index 620f0e4..0d55044 100644 --- a/examples/apidoc/RestClientV2/getSpotBGBDeductInfo.js +++ b/examples/apidoc/RestClientV2/getSpotBGBDeductInfo.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/deduct-info // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotBGBDeductInfo(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotCandles.js b/examples/apidoc/RestClientV2/getSpotCandles.js index 10748a2..1ebc5ca 100644 --- a/examples/apidoc/RestClientV2/getSpotCandles.js +++ b/examples/apidoc/RestClientV2/getSpotCandles.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/candles // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotCoinInfo.js b/examples/apidoc/RestClientV2/getSpotCoinInfo.js index 52e9adb..87e7003 100644 --- a/examples/apidoc/RestClientV2/getSpotCoinInfo.js +++ b/examples/apidoc/RestClientV2/getSpotCoinInfo.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/public/coins // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotCoinInfo(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotCurrentPlanOrders.js b/examples/apidoc/RestClientV2/getSpotCurrentPlanOrders.js index c8ddec5..2cdfd9a 100644 --- a/examples/apidoc/RestClientV2/getSpotCurrentPlanOrders.js +++ b/examples/apidoc/RestClientV2/getSpotCurrentPlanOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/current-plan-order // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotCurrentPlanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotDepositAddress.js b/examples/apidoc/RestClientV2/getSpotDepositAddress.js index a2f8f08..e88e69a 100644 --- a/examples/apidoc/RestClientV2/getSpotDepositAddress.js +++ b/examples/apidoc/RestClientV2/getSpotDepositAddress.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/deposit-address // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotDepositAddress(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotDepositHistory.js b/examples/apidoc/RestClientV2/getSpotDepositHistory.js index 0d1ff2b..3fdf17f 100644 --- a/examples/apidoc/RestClientV2/getSpotDepositHistory.js +++ b/examples/apidoc/RestClientV2/getSpotDepositHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/deposit-records // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotDepositHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFills.js b/examples/apidoc/RestClientV2/getSpotFills.js index 0ed8d91..dc44273 100644 --- a/examples/apidoc/RestClientV2/getSpotFills.js +++ b/examples/apidoc/RestClientV2/getSpotFills.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/fills // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFills(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFollowerCurrentTraderSymbols.js b/examples/apidoc/RestClientV2/getSpotFollowerCurrentTraderSymbols.js index 47bc570..4be436e 100644 --- a/examples/apidoc/RestClientV2/getSpotFollowerCurrentTraderSymbols.js +++ b/examples/apidoc/RestClientV2/getSpotFollowerCurrentTraderSymbols.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/query-trader-symbols // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFollowerCurrentTraderSymbols(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFollowerHistoryOrders.js b/examples/apidoc/RestClientV2/getSpotFollowerHistoryOrders.js index fb18f53..4ce1b16 100644 --- a/examples/apidoc/RestClientV2/getSpotFollowerHistoryOrders.js +++ b/examples/apidoc/RestClientV2/getSpotFollowerHistoryOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/query-history-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFollowerHistoryOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFollowerOpenOrders.js b/examples/apidoc/RestClientV2/getSpotFollowerOpenOrders.js index b84414a..720ec9e 100644 --- a/examples/apidoc/RestClientV2/getSpotFollowerOpenOrders.js +++ b/examples/apidoc/RestClientV2/getSpotFollowerOpenOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/query-current-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFollowerOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFollowerSettings.js b/examples/apidoc/RestClientV2/getSpotFollowerSettings.js index eef36da..7bfe357 100644 --- a/examples/apidoc/RestClientV2/getSpotFollowerSettings.js +++ b/examples/apidoc/RestClientV2/getSpotFollowerSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/query-settings // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFollowerSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFollowerTraders.js b/examples/apidoc/RestClientV2/getSpotFollowerTraders.js index 8a31f48..efa0b74 100644 --- a/examples/apidoc/RestClientV2/getSpotFollowerTraders.js +++ b/examples/apidoc/RestClientV2/getSpotFollowerTraders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/query-traders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFollowerTraders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFundFlow.js b/examples/apidoc/RestClientV2/getSpotFundFlow.js index a034dbf..f29a95b 100644 --- a/examples/apidoc/RestClientV2/getSpotFundFlow.js +++ b/examples/apidoc/RestClientV2/getSpotFundFlow.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/fund-flow // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFundFlow(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotFundNetFlowData.js b/examples/apidoc/RestClientV2/getSpotFundNetFlowData.js index 1432f6a..0ba2acd 100644 --- a/examples/apidoc/RestClientV2/getSpotFundNetFlowData.js +++ b/examples/apidoc/RestClientV2/getSpotFundNetFlowData.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/fund-net-flow // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotFundNetFlowData(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotHistoricCandles.js b/examples/apidoc/RestClientV2/getSpotHistoricCandles.js index e9ef8ff..bf5eeb9 100644 --- a/examples/apidoc/RestClientV2/getSpotHistoricCandles.js +++ b/examples/apidoc/RestClientV2/getSpotHistoricCandles.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/history-candles // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotHistoricCandles(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotHistoricOrders.js b/examples/apidoc/RestClientV2/getSpotHistoricOrders.js index 8cfbaa0..09fe8dd 100644 --- a/examples/apidoc/RestClientV2/getSpotHistoricOrders.js +++ b/examples/apidoc/RestClientV2/getSpotHistoricOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/history-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotHistoricOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotHistoricPlanOrders.js b/examples/apidoc/RestClientV2/getSpotHistoricPlanOrders.js index bffe500..d57fe71 100644 --- a/examples/apidoc/RestClientV2/getSpotHistoricPlanOrders.js +++ b/examples/apidoc/RestClientV2/getSpotHistoricPlanOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/history-plan-order // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotHistoricPlanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotHistoricTrades.js b/examples/apidoc/RestClientV2/getSpotHistoricTrades.js index 19ca2fe..405c19d 100644 --- a/examples/apidoc/RestClientV2/getSpotHistoricTrades.js +++ b/examples/apidoc/RestClientV2/getSpotHistoricTrades.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/fills-history // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotHistoricTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotMainSubTransferRecord.js b/examples/apidoc/RestClientV2/getSpotMainSubTransferRecord.js index c66b179..f7a3239 100644 --- a/examples/apidoc/RestClientV2/getSpotMainSubTransferRecord.js +++ b/examples/apidoc/RestClientV2/getSpotMainSubTransferRecord.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/sub-main-trans-record // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotMainSubTransferRecord(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotMergeDepth.js b/examples/apidoc/RestClientV2/getSpotMergeDepth.js index 3ddaf71..090f8f7 100644 --- a/examples/apidoc/RestClientV2/getSpotMergeDepth.js +++ b/examples/apidoc/RestClientV2/getSpotMergeDepth.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/merge-depth // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotMergeDepth(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotOpenOrders.js b/examples/apidoc/RestClientV2/getSpotOpenOrders.js index 5ff14ea..479c631 100644 --- a/examples/apidoc/RestClientV2/getSpotOpenOrders.js +++ b/examples/apidoc/RestClientV2/getSpotOpenOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/unfilled-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotOrder.js b/examples/apidoc/RestClientV2/getSpotOrder.js index 7c8cb9e..94c0ea6 100644 --- a/examples/apidoc/RestClientV2/getSpotOrder.js +++ b/examples/apidoc/RestClientV2/getSpotOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/orderInfo // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotOrderBookDepth.js b/examples/apidoc/RestClientV2/getSpotOrderBookDepth.js index cc2c05c..d09a2ea 100644 --- a/examples/apidoc/RestClientV2/getSpotOrderBookDepth.js +++ b/examples/apidoc/RestClientV2/getSpotOrderBookDepth.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/orderbook // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotOrderBookDepth(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotPlanSubOrder.js b/examples/apidoc/RestClientV2/getSpotPlanSubOrder.js index 7197c40..0a083ba 100644 --- a/examples/apidoc/RestClientV2/getSpotPlanSubOrder.js +++ b/examples/apidoc/RestClientV2/getSpotPlanSubOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/plan-sub-order // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotPlanSubOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotRecentTrades.js b/examples/apidoc/RestClientV2/getSpotRecentTrades.js index 6ca8570..aca85d1 100644 --- a/examples/apidoc/RestClientV2/getSpotRecentTrades.js +++ b/examples/apidoc/RestClientV2/getSpotRecentTrades.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/fills // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotRecentTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotSubAccountAssets.js b/examples/apidoc/RestClientV2/getSpotSubAccountAssets.js index 420d8bf..ac70788 100644 --- a/examples/apidoc/RestClientV2/getSpotSubAccountAssets.js +++ b/examples/apidoc/RestClientV2/getSpotSubAccountAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/subaccount-assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotSubAccountAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotSubDepositAddress.js b/examples/apidoc/RestClientV2/getSpotSubDepositAddress.js index 8a3396c..8bf05d5 100644 --- a/examples/apidoc/RestClientV2/getSpotSubDepositAddress.js +++ b/examples/apidoc/RestClientV2/getSpotSubDepositAddress.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/subaccount-deposit-address // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotSubDepositAddress(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotSymbolInfo.js b/examples/apidoc/RestClientV2/getSpotSymbolInfo.js index 4466e70..6efa31d 100644 --- a/examples/apidoc/RestClientV2/getSpotSymbolInfo.js +++ b/examples/apidoc/RestClientV2/getSpotSymbolInfo.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/public/symbols // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotSymbolInfo(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTicker.js b/examples/apidoc/RestClientV2/getSpotTicker.js index 729709c..a3a8679 100644 --- a/examples/apidoc/RestClientV2/getSpotTicker.js +++ b/examples/apidoc/RestClientV2/getSpotTicker.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/tickers // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTicker(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderConfiguration.js b/examples/apidoc/RestClientV2/getSpotTraderConfiguration.js index 6ba0e55..dfccc26 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderConfiguration.js +++ b/examples/apidoc/RestClientV2/getSpotTraderConfiguration.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/config-query-settings // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderConfiguration(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderCurrentOrders.js b/examples/apidoc/RestClientV2/getSpotTraderCurrentOrders.js index 6816b91..f8fc87e 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderCurrentOrders.js +++ b/examples/apidoc/RestClientV2/getSpotTraderCurrentOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/order-current-track // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderCurrentOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderFollowers.js b/examples/apidoc/RestClientV2/getSpotTraderFollowers.js index 71280ca..1bbecb5 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderFollowers.js +++ b/examples/apidoc/RestClientV2/getSpotTraderFollowers.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/config-query-followers // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderFollowers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderHistoryOrders.js b/examples/apidoc/RestClientV2/getSpotTraderHistoryOrders.js index 69eb0dc..2c88d76 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderHistoryOrders.js +++ b/examples/apidoc/RestClientV2/getSpotTraderHistoryOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/order-history-track // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderHistoryOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderHistoryProfit.js b/examples/apidoc/RestClientV2/getSpotTraderHistoryProfit.js index 9b93dfc..f8089ab 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderHistoryProfit.js +++ b/examples/apidoc/RestClientV2/getSpotTraderHistoryProfit.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/profit-history-details // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderHistoryProfit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderOrder.js b/examples/apidoc/RestClientV2/getSpotTraderOrder.js index 4c4e038..6d50ea5 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderOrder.js +++ b/examples/apidoc/RestClientV2/getSpotTraderOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/order-total-detail // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderProfit.js b/examples/apidoc/RestClientV2/getSpotTraderProfit.js index a46ada6..cb1d2ea 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderProfit.js +++ b/examples/apidoc/RestClientV2/getSpotTraderProfit.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/profit-summarys // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderProfit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderSymbolSettings.js b/examples/apidoc/RestClientV2/getSpotTraderSymbolSettings.js index 719472f..468c0f0 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderSymbolSettings.js +++ b/examples/apidoc/RestClientV2/getSpotTraderSymbolSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/config-setting-symbols // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderSymbolSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTraderUnrealizedProfit.js b/examples/apidoc/RestClientV2/getSpotTraderUnrealizedProfit.js index b831b9e..f319f2a 100644 --- a/examples/apidoc/RestClientV2/getSpotTraderUnrealizedProfit.js +++ b/examples/apidoc/RestClientV2/getSpotTraderUnrealizedProfit.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/profit-details // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTraderUnrealizedProfit(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTransactionRecords.js b/examples/apidoc/RestClientV2/getSpotTransactionRecords.js index 56c92f9..2410b50 100644 --- a/examples/apidoc/RestClientV2/getSpotTransactionRecords.js +++ b/examples/apidoc/RestClientV2/getSpotTransactionRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/tax/spot-record // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTransactionRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTransferHistory.js b/examples/apidoc/RestClientV2/getSpotTransferHistory.js index 03ded7f..82cf36a 100644 --- a/examples/apidoc/RestClientV2/getSpotTransferHistory.js +++ b/examples/apidoc/RestClientV2/getSpotTransferHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/transferRecords // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTransferHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotTransferableCoins.js b/examples/apidoc/RestClientV2/getSpotTransferableCoins.js index 82346f1..e7617f3 100644 --- a/examples/apidoc/RestClientV2/getSpotTransferableCoins.js +++ b/examples/apidoc/RestClientV2/getSpotTransferableCoins.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/transfer-coin-info // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotTransferableCoins(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotVIPFeeRate.js b/examples/apidoc/RestClientV2/getSpotVIPFeeRate.js index a01806b..52e2dde 100644 --- a/examples/apidoc/RestClientV2/getSpotVIPFeeRate.js +++ b/examples/apidoc/RestClientV2/getSpotVIPFeeRate.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/vip-fee-rate // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotVIPFeeRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotWhaleNetFlowData.js b/examples/apidoc/RestClientV2/getSpotWhaleNetFlowData.js index 9442a51..c9dec27 100644 --- a/examples/apidoc/RestClientV2/getSpotWhaleNetFlowData.js +++ b/examples/apidoc/RestClientV2/getSpotWhaleNetFlowData.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/whale-net-flow // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotWhaleNetFlowData(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSpotWithdrawalHistory.js b/examples/apidoc/RestClientV2/getSpotWithdrawalHistory.js index e19e861..ed72ee2 100644 --- a/examples/apidoc/RestClientV2/getSpotWithdrawalHistory.js +++ b/examples/apidoc/RestClientV2/getSpotWithdrawalHistory.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/withdrawal-records // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSpotWithdrawalHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSubAccountDepositRecords.js b/examples/apidoc/RestClientV2/getSubAccountDepositRecords.js index cddedf9..754d540 100644 --- a/examples/apidoc/RestClientV2/getSubAccountDepositRecords.js +++ b/examples/apidoc/RestClientV2/getSubAccountDepositRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/subaccount-deposit-records // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSubAccountDepositRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSubaccountApiKey.js b/examples/apidoc/RestClientV2/getSubaccountApiKey.js index 54459e3..87c5f27 100644 --- a/examples/apidoc/RestClientV2/getSubaccountApiKey.js +++ b/examples/apidoc/RestClientV2/getSubaccountApiKey.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/manage/subaccount-apikey-list // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSubaccountApiKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSubaccountEmail.js b/examples/apidoc/RestClientV2/getSubaccountEmail.js index 291a230..1382f3d 100644 --- a/examples/apidoc/RestClientV2/getSubaccountEmail.js +++ b/examples/apidoc/RestClientV2/getSubaccountEmail.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/subaccount-email // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSubaccountEmail(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSubaccountFuturesAssets.js b/examples/apidoc/RestClientV2/getSubaccountFuturesAssets.js index ad25b8f..d8bebf9 100644 --- a/examples/apidoc/RestClientV2/getSubaccountFuturesAssets.js +++ b/examples/apidoc/RestClientV2/getSubaccountFuturesAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/subaccount-future-assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSubaccountFuturesAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSubaccountSpotAssets.js b/examples/apidoc/RestClientV2/getSubaccountSpotAssets.js index a851d7f..383126e 100644 --- a/examples/apidoc/RestClientV2/getSubaccountSpotAssets.js +++ b/examples/apidoc/RestClientV2/getSubaccountSpotAssets.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/subaccount-spot-assets // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSubaccountSpotAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getSubaccounts.js b/examples/apidoc/RestClientV2/getSubaccounts.js index 4446035..34fde09 100644 --- a/examples/apidoc/RestClientV2/getSubaccounts.js +++ b/examples/apidoc/RestClientV2/getSubaccounts.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/subaccount-list // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getSubaccounts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getTradeDataSupportSymbols.js b/examples/apidoc/RestClientV2/getTradeDataSupportSymbols.js index a749263..d3d4407 100644 --- a/examples/apidoc/RestClientV2/getTradeDataSupportSymbols.js +++ b/examples/apidoc/RestClientV2/getTradeDataSupportSymbols.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/market/support-symbols // METHOD: GET // PUBLIC: YES @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getTradeDataSupportSymbols(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getTradeRate.js b/examples/apidoc/RestClientV2/getTradeRate.js index 9dfe80e..6f74c60 100644 --- a/examples/apidoc/RestClientV2/getTradeRate.js +++ b/examples/apidoc/RestClientV2/getTradeRate.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/common/trade-rate // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getTradeRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getVirtualSubaccountAPIKeys.js b/examples/apidoc/RestClientV2/getVirtualSubaccountAPIKeys.js index 7790692..c60420a 100644 --- a/examples/apidoc/RestClientV2/getVirtualSubaccountAPIKeys.js +++ b/examples/apidoc/RestClientV2/getVirtualSubaccountAPIKeys.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/user/virtual-subaccount-apikey-list // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getVirtualSubaccountAPIKeys(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/getVirtualSubaccounts.js b/examples/apidoc/RestClientV2/getVirtualSubaccounts.js index 7c8391a..d440e24 100644 --- a/examples/apidoc/RestClientV2/getVirtualSubaccounts.js +++ b/examples/apidoc/RestClientV2/getVirtualSubaccounts.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/user/virtual-subaccount-list // METHOD: GET // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.getVirtualSubaccounts(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/marginBatchCancelOrders.js b/examples/apidoc/RestClientV2/marginBatchCancelOrders.js index 88d59c0..74badad 100644 --- a/examples/apidoc/RestClientV2/marginBatchCancelOrders.js +++ b/examples/apidoc/RestClientV2/marginBatchCancelOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/batch-cancel-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.marginBatchCancelOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/marginBatchSubmitOrders.js b/examples/apidoc/RestClientV2/marginBatchSubmitOrders.js index afb32fe..6bd8240 100644 --- a/examples/apidoc/RestClientV2/marginBatchSubmitOrders.js +++ b/examples/apidoc/RestClientV2/marginBatchSubmitOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/batch-place-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.marginBatchSubmitOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/marginBorrow.js b/examples/apidoc/RestClientV2/marginBorrow.js index f292223..cc19072 100644 --- a/examples/apidoc/RestClientV2/marginBorrow.js +++ b/examples/apidoc/RestClientV2/marginBorrow.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/borrow // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.marginBorrow(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/marginCancelOrder.js b/examples/apidoc/RestClientV2/marginCancelOrder.js index 81dfd68..66bfa92 100644 --- a/examples/apidoc/RestClientV2/marginCancelOrder.js +++ b/examples/apidoc/RestClientV2/marginCancelOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/cancel-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.marginCancelOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/marginFlashRepay.js b/examples/apidoc/RestClientV2/marginFlashRepay.js index 587e1ac..d9aeda7 100644 --- a/examples/apidoc/RestClientV2/marginFlashRepay.js +++ b/examples/apidoc/RestClientV2/marginFlashRepay.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/flash-repay // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.marginFlashRepay(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/marginRepay.js b/examples/apidoc/RestClientV2/marginRepay.js index 7ea8ed0..d3f32a2 100644 --- a/examples/apidoc/RestClientV2/marginRepay.js +++ b/examples/apidoc/RestClientV2/marginRepay.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/account/repay // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.marginRepay(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/marginSubmitOrder.js b/examples/apidoc/RestClientV2/marginSubmitOrder.js index e12412f..9ac0bbf 100644 --- a/examples/apidoc/RestClientV2/marginSubmitOrder.js +++ b/examples/apidoc/RestClientV2/marginSubmitOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/margin/${marginType}/place-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.marginSubmitOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/modifyFuturesTraderOrderTPSL.js b/examples/apidoc/RestClientV2/modifyFuturesTraderOrderTPSL.js index dad9425..a2a02dc 100644 --- a/examples/apidoc/RestClientV2/modifyFuturesTraderOrderTPSL.js +++ b/examples/apidoc/RestClientV2/modifyFuturesTraderOrderTPSL.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/order-modify-tpsl // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.modifyFuturesTraderOrderTPSL(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/modifySpotTraderOrderTPSL.js b/examples/apidoc/RestClientV2/modifySpotTraderOrderTPSL.js index 683b269..dd52ba1 100644 --- a/examples/apidoc/RestClientV2/modifySpotTraderOrderTPSL.js +++ b/examples/apidoc/RestClientV2/modifySpotTraderOrderTPSL.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/order-modify-tpsl // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.modifySpotTraderOrderTPSL(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/modifySubaccount.js b/examples/apidoc/RestClientV2/modifySubaccount.js index 758072f..6c65cbd 100644 --- a/examples/apidoc/RestClientV2/modifySubaccount.js +++ b/examples/apidoc/RestClientV2/modifySubaccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/modify-subaccount // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.modifySubaccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/modifySubaccountApiKey.js b/examples/apidoc/RestClientV2/modifySubaccountApiKey.js index 314a70a..eeb8daf 100644 --- a/examples/apidoc/RestClientV2/modifySubaccountApiKey.js +++ b/examples/apidoc/RestClientV2/modifySubaccountApiKey.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/manage/modify-subaccount-apikey // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.modifySubaccountApiKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/modifySubaccountEmail.js b/examples/apidoc/RestClientV2/modifySubaccountEmail.js index 854bdca..cde60b9 100644 --- a/examples/apidoc/RestClientV2/modifySubaccountEmail.js +++ b/examples/apidoc/RestClientV2/modifySubaccountEmail.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/modify-subaccount-email // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.modifySubaccountEmail(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/modifyVirtualSubaccount.js b/examples/apidoc/RestClientV2/modifyVirtualSubaccount.js index 945f47e..5da8f8b 100644 --- a/examples/apidoc/RestClientV2/modifyVirtualSubaccount.js +++ b/examples/apidoc/RestClientV2/modifyVirtualSubaccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/user/modify-virtual-subaccount // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.modifyVirtualSubaccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/modifyVirtualSubaccountAPIKey.js b/examples/apidoc/RestClientV2/modifyVirtualSubaccountAPIKey.js index c9488a9..12df35f 100644 --- a/examples/apidoc/RestClientV2/modifyVirtualSubaccountAPIKey.js +++ b/examples/apidoc/RestClientV2/modifyVirtualSubaccountAPIKey.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/user/modify-virtual-subaccount-apikey // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.modifyVirtualSubaccountAPIKey(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/removeFuturesTraderFollower.js b/examples/apidoc/RestClientV2/removeFuturesTraderFollower.js index 5efe7f2..d1354e8 100644 --- a/examples/apidoc/RestClientV2/removeFuturesTraderFollower.js +++ b/examples/apidoc/RestClientV2/removeFuturesTraderFollower.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/config-remove-follower // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.removeFuturesTraderFollower(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/removeSpotTraderFollowers.js b/examples/apidoc/RestClientV2/removeSpotTraderFollowers.js index c30361a..1d67e89 100644 --- a/examples/apidoc/RestClientV2/removeSpotTraderFollowers.js +++ b/examples/apidoc/RestClientV2/removeSpotTraderFollowers.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/config-remove-follower // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.removeSpotTraderFollowers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/repayLoan.js b/examples/apidoc/RestClientV2/repayLoan.js index dbc52f7..40da0c9 100644 --- a/examples/apidoc/RestClientV2/repayLoan.js +++ b/examples/apidoc/RestClientV2/repayLoan.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/repay // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.repayLoan(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/sellSpotFollower.js b/examples/apidoc/RestClientV2/sellSpotFollower.js index 51fea8a..724caf4 100644 --- a/examples/apidoc/RestClientV2/sellSpotFollower.js +++ b/examples/apidoc/RestClientV2/sellSpotFollower.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/order-close-tracking // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.sellSpotFollower(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/sellSpotTrader.js b/examples/apidoc/RestClientV2/sellSpotTrader.js index 7fd1d36..c158c73 100644 --- a/examples/apidoc/RestClientV2/sellSpotTrader.js +++ b/examples/apidoc/RestClientV2/sellSpotTrader.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-trader/order-close-tracking // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.sellSpotTrader(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/setFuturesLeverage.js b/examples/apidoc/RestClientV2/setFuturesLeverage.js index c2981d6..8f1611d 100644 --- a/examples/apidoc/RestClientV2/setFuturesLeverage.js +++ b/examples/apidoc/RestClientV2/setFuturesLeverage.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/set-leverage // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.setFuturesLeverage(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/setFuturesMarginMode.js b/examples/apidoc/RestClientV2/setFuturesMarginMode.js index 219a5df..338cd37 100644 --- a/examples/apidoc/RestClientV2/setFuturesMarginMode.js +++ b/examples/apidoc/RestClientV2/setFuturesMarginMode.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/set-margin-mode // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.setFuturesMarginMode(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/setFuturesPositionAutoMargin.js b/examples/apidoc/RestClientV2/setFuturesPositionAutoMargin.js index f7d1b4c..6870177 100644 --- a/examples/apidoc/RestClientV2/setFuturesPositionAutoMargin.js +++ b/examples/apidoc/RestClientV2/setFuturesPositionAutoMargin.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/set-auto-margin // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.setFuturesPositionAutoMargin(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/setFuturesPositionMargin.js b/examples/apidoc/RestClientV2/setFuturesPositionMargin.js index dd76eec..c511d2b 100644 --- a/examples/apidoc/RestClientV2/setFuturesPositionMargin.js +++ b/examples/apidoc/RestClientV2/setFuturesPositionMargin.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/set-margin // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.setFuturesPositionMargin(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/setFuturesPositionMode.js b/examples/apidoc/RestClientV2/setFuturesPositionMode.js index a57dc80..bf75fb1 100644 --- a/examples/apidoc/RestClientV2/setFuturesPositionMode.js +++ b/examples/apidoc/RestClientV2/setFuturesPositionMode.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/mix/account/set-position-mode // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.setFuturesPositionMode(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotBatchCancelOrders.js b/examples/apidoc/RestClientV2/spotBatchCancelOrders.js index 941789c..fdb87e5 100644 --- a/examples/apidoc/RestClientV2/spotBatchCancelOrders.js +++ b/examples/apidoc/RestClientV2/spotBatchCancelOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/batch-cancel-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotBatchCancelOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotBatchSubmitOrders.js b/examples/apidoc/RestClientV2/spotBatchSubmitOrders.js index bae71c0..db58d1b 100644 --- a/examples/apidoc/RestClientV2/spotBatchSubmitOrders.js +++ b/examples/apidoc/RestClientV2/spotBatchSubmitOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/batch-orders // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotBatchSubmitOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotCancelOrder.js b/examples/apidoc/RestClientV2/spotCancelOrder.js index 6e9a3cf..456eebc 100644 --- a/examples/apidoc/RestClientV2/spotCancelOrder.js +++ b/examples/apidoc/RestClientV2/spotCancelOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/cancel-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotCancelOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotCancelPlanOrder.js b/examples/apidoc/RestClientV2/spotCancelPlanOrder.js index 526236c..9d295df 100644 --- a/examples/apidoc/RestClientV2/spotCancelPlanOrder.js +++ b/examples/apidoc/RestClientV2/spotCancelPlanOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/cancel-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotCancelPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotCancelPlanOrders.js b/examples/apidoc/RestClientV2/spotCancelPlanOrders.js index b807035..48f8d62 100644 --- a/examples/apidoc/RestClientV2/spotCancelPlanOrders.js +++ b/examples/apidoc/RestClientV2/spotCancelPlanOrders.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/batch-cancel-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotCancelPlanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotCancelSymbolOrder.js b/examples/apidoc/RestClientV2/spotCancelSymbolOrder.js index 70ec7e2..58b150d 100644 --- a/examples/apidoc/RestClientV2/spotCancelSymbolOrder.js +++ b/examples/apidoc/RestClientV2/spotCancelSymbolOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/cancel-symbol-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotCancelSymbolOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotCancelWithdrawal.js b/examples/apidoc/RestClientV2/spotCancelWithdrawal.js index 20b74a8..1335955 100644 --- a/examples/apidoc/RestClientV2/spotCancelWithdrawal.js +++ b/examples/apidoc/RestClientV2/spotCancelWithdrawal.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/cancel-withdrawal // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotCancelWithdrawal(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotModifyDepositAccount.js b/examples/apidoc/RestClientV2/spotModifyDepositAccount.js index 80af29e..2490f4a 100644 --- a/examples/apidoc/RestClientV2/spotModifyDepositAccount.js +++ b/examples/apidoc/RestClientV2/spotModifyDepositAccount.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/modify-deposit-account // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotModifyDepositAccount(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotModifyPlanOrder.js b/examples/apidoc/RestClientV2/spotModifyPlanOrder.js index 1d48c59..585f7ab 100644 --- a/examples/apidoc/RestClientV2/spotModifyPlanOrder.js +++ b/examples/apidoc/RestClientV2/spotModifyPlanOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/modify-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotModifyPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotSubTransfer.js b/examples/apidoc/RestClientV2/spotSubTransfer.js index 44d3ef6..a755d14 100644 --- a/examples/apidoc/RestClientV2/spotSubTransfer.js +++ b/examples/apidoc/RestClientV2/spotSubTransfer.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/subaccount-transfer // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotSubTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotSubmitOrder.js b/examples/apidoc/RestClientV2/spotSubmitOrder.js index 5e60c3d..ce23e1b 100644 --- a/examples/apidoc/RestClientV2/spotSubmitOrder.js +++ b/examples/apidoc/RestClientV2/spotSubmitOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/place-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotSubmitOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotSubmitPlanOrder.js b/examples/apidoc/RestClientV2/spotSubmitPlanOrder.js index d8dca90..c2bf87b 100644 --- a/examples/apidoc/RestClientV2/spotSubmitPlanOrder.js +++ b/examples/apidoc/RestClientV2/spotSubmitPlanOrder.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/trade/place-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotSubmitPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotSwitchBGBDeduct.js b/examples/apidoc/RestClientV2/spotSwitchBGBDeduct.js index 50e44e9..b318daf 100644 --- a/examples/apidoc/RestClientV2/spotSwitchBGBDeduct.js +++ b/examples/apidoc/RestClientV2/spotSwitchBGBDeduct.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/account/switch-deduct // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotSwitchBGBDeduct(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotTransfer.js b/examples/apidoc/RestClientV2/spotTransfer.js index 5a18f51..90e611a 100644 --- a/examples/apidoc/RestClientV2/spotTransfer.js +++ b/examples/apidoc/RestClientV2/spotTransfer.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/transfer // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/spotWithdraw.js b/examples/apidoc/RestClientV2/spotWithdraw.js index 491f4a3..70f4f43 100644 --- a/examples/apidoc/RestClientV2/spotWithdraw.js +++ b/examples/apidoc/RestClientV2/spotWithdraw.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/spot/wallet/withdrawal // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.spotWithdraw(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/subaccountDepositRecords.js b/examples/apidoc/RestClientV2/subaccountDepositRecords.js index 77aaddf..3fed8ab 100644 --- a/examples/apidoc/RestClientV2/subaccountDepositRecords.js +++ b/examples/apidoc/RestClientV2/subaccountDepositRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/subaccount-deposit // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.subaccountDepositRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/subaccountSetAutoTransfer.js b/examples/apidoc/RestClientV2/subaccountSetAutoTransfer.js index 62b1bc2..71215cd 100644 --- a/examples/apidoc/RestClientV2/subaccountSetAutoTransfer.js +++ b/examples/apidoc/RestClientV2/subaccountSetAutoTransfer.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/set-subaccount-autotransfer // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.subaccountSetAutoTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/subaccountWithdrawal.js b/examples/apidoc/RestClientV2/subaccountWithdrawal.js index af8595b..45c2235 100644 --- a/examples/apidoc/RestClientV2/subaccountWithdrawal.js +++ b/examples/apidoc/RestClientV2/subaccountWithdrawal.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/account/subaccount-withdrawal // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.subaccountWithdrawal(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/subaccountWithdrawalRecords.js b/examples/apidoc/RestClientV2/subaccountWithdrawalRecords.js index 1cd49b0..bfc064f 100644 --- a/examples/apidoc/RestClientV2/subaccountWithdrawalRecords.js +++ b/examples/apidoc/RestClientV2/subaccountWithdrawalRecords.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/broker/subaccount-withdrawal // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.subaccountWithdrawalRecords(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/subscribeSharkfin.js b/examples/apidoc/RestClientV2/subscribeSharkfin.js index 713ecdb..7d462b7 100644 --- a/examples/apidoc/RestClientV2/subscribeSharkfin.js +++ b/examples/apidoc/RestClientV2/subscribeSharkfin.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/sharkfin/subscribe // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.subscribeSharkfin(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/unfollowFuturesTrader.js b/examples/apidoc/RestClientV2/unfollowFuturesTrader.js index edae2be..784cf58 100644 --- a/examples/apidoc/RestClientV2/unfollowFuturesTrader.js +++ b/examples/apidoc/RestClientV2/unfollowFuturesTrader.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/cancel-trader // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.unfollowFuturesTrader(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/unfollowSpotTrader.js b/examples/apidoc/RestClientV2/unfollowSpotTrader.js index e510ab8..d8408c5 100644 --- a/examples/apidoc/RestClientV2/unfollowSpotTrader.js +++ b/examples/apidoc/RestClientV2/unfollowSpotTrader.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/cancel-trader // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.unfollowSpotTrader(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/updateFuturesFollowerSettings.js b/examples/apidoc/RestClientV2/updateFuturesFollowerSettings.js index 28cb8ca..57ce0de 100644 --- a/examples/apidoc/RestClientV2/updateFuturesFollowerSettings.js +++ b/examples/apidoc/RestClientV2/updateFuturesFollowerSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/settings // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.updateFuturesFollowerSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/updateFuturesFollowerTPSL.js b/examples/apidoc/RestClientV2/updateFuturesFollowerTPSL.js index 9f601cc..968573c 100644 --- a/examples/apidoc/RestClientV2/updateFuturesFollowerTPSL.js +++ b/examples/apidoc/RestClientV2/updateFuturesFollowerTPSL.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-follower/setting-tpsl // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.updateFuturesFollowerTPSL(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/updateFuturesTraderGlobalSettings.js b/examples/apidoc/RestClientV2/updateFuturesTraderGlobalSettings.js index 49a20fb..cfc0097 100644 --- a/examples/apidoc/RestClientV2/updateFuturesTraderGlobalSettings.js +++ b/examples/apidoc/RestClientV2/updateFuturesTraderGlobalSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/config-settings-base // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.updateFuturesTraderGlobalSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/updateFuturesTraderSymbolSettings.js b/examples/apidoc/RestClientV2/updateFuturesTraderSymbolSettings.js index aa24bd2..8b12d36 100644 --- a/examples/apidoc/RestClientV2/updateFuturesTraderSymbolSettings.js +++ b/examples/apidoc/RestClientV2/updateFuturesTraderSymbolSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/mix-trader/config-setting-symbols // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.updateFuturesTraderSymbolSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/updateLoanPledgeRate.js b/examples/apidoc/RestClientV2/updateLoanPledgeRate.js index 7c32e8d..950e058 100644 --- a/examples/apidoc/RestClientV2/updateLoanPledgeRate.js +++ b/examples/apidoc/RestClientV2/updateLoanPledgeRate.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/earn/loan/revise-pledge // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.updateLoanPledgeRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/updateSpotFollowerSettings.js b/examples/apidoc/RestClientV2/updateSpotFollowerSettings.js index 568e72a..7dfd357 100644 --- a/examples/apidoc/RestClientV2/updateSpotFollowerSettings.js +++ b/examples/apidoc/RestClientV2/updateSpotFollowerSettings.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/settings // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.updateSpotFollowerSettings(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClientV2/updateSpotFollowerTPSL.js b/examples/apidoc/RestClientV2/updateSpotFollowerTPSL.js index e5272c4..d103c75 100644 --- a/examples/apidoc/RestClientV2/updateSpotFollowerTPSL.js +++ b/examples/apidoc/RestClientV2/updateSpotFollowerTPSL.js @@ -1,5 +1,8 @@ const { RestClientV2 } = require('bitget-api'); + + // This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange + // This Bitget API SDK is available on npm via "npm install bitget-api" // ENDPOINT: /api/v2/copy/spot-follower/setting-tpsl // METHOD: POST // PUBLIC: NO @@ -11,9 +14,9 @@ const client = new RestClientV2({ }); client.updateSpotFollowerTPSL(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/package-lock.json b/package-lock.json index 0303bb1..01f1b46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitget-api", - "version": "2.0.11", + "version": "2.0.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bitget-api", - "version": "2.0.11", + "version": "2.0.12", "license": "MIT", "dependencies": { "axios": "^1.6.1", diff --git a/package.json b/package.json index 699a4b2..3e00ff4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitget-api", - "version": "2.0.11", + "version": "2.0.12", "description": "Node.js & JavaScript SDK for Bitget REST APIs & WebSockets, with TypeScript & end-to-end tests.", "main": "lib/index.js", "types": "lib/index.d.ts",