diff --git a/README.md b/README.md index b18e034..9ad77eb 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Complete JavaScript & Node.js SDK for BitMart REST APIs & WebSockets: - Issues? Check the [issues tab](https://github.com/tiagosiebler/bitmart-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) ## Usage diff --git a/examples/apidoc/FuturesClientV2/cancelAllFuturesOrders.js b/examples/apidoc/FuturesClientV2/cancelAllFuturesOrders.js index b6a14c0..e814850 100644 --- a/examples/apidoc/FuturesClientV2/cancelAllFuturesOrders.js +++ b/examples/apidoc/FuturesClientV2/cancelAllFuturesOrders.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/cancel-orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.cancelAllFuturesOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/cancelFuturesOrder.js b/examples/apidoc/FuturesClientV2/cancelFuturesOrder.js index ef58326..8b574fd 100644 --- a/examples/apidoc/FuturesClientV2/cancelFuturesOrder.js +++ b/examples/apidoc/FuturesClientV2/cancelFuturesOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/cancel-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.cancelFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/cancelFuturesPlanOrder.js b/examples/apidoc/FuturesClientV2/cancelFuturesPlanOrder.js index cabb6d8..4d92b60 100644 --- a/examples/apidoc/FuturesClientV2/cancelFuturesPlanOrder.js +++ b/examples/apidoc/FuturesClientV2/cancelFuturesPlanOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/cancel-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.cancelFuturesPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAccountAssets.js b/examples/apidoc/FuturesClientV2/getFuturesAccountAssets.js index 024d27c..b87ee9f 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAccountAssets.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAccountAssets.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/assets-detail // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAccountAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAccountOpenOrders.js b/examples/apidoc/FuturesClientV2/getFuturesAccountOpenOrders.js index 006899e..0c800cd 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAccountOpenOrders.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAccountOpenOrders.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/get-open-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAccountOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAccountOrder.js b/examples/apidoc/FuturesClientV2/getFuturesAccountOrder.js index cccc883..cba5412 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAccountOrder.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAccountOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/order // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAccountOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAccountOrderHistory.js b/examples/apidoc/FuturesClientV2/getFuturesAccountOrderHistory.js index 3e04aa8..78d6462 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAccountOrderHistory.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAccountOrderHistory.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/order-history // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAccountOrderHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAccountPlanOrders.js b/examples/apidoc/FuturesClientV2/getFuturesAccountPlanOrders.js index c19455c..217f8dc 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAccountPlanOrders.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAccountPlanOrders.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/current-plan-order // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAccountPlanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAccountPositions.js b/examples/apidoc/FuturesClientV2/getFuturesAccountPositions.js index 404f4bb..b999b08 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAccountPositions.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAccountPositions.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/position // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAccountPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAccountTrades.js b/examples/apidoc/FuturesClientV2/getFuturesAccountTrades.js index bf82cbd..fe02499 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAccountTrades.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAccountTrades.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/trades // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAccountTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAffiliateRebates.js b/examples/apidoc/FuturesClientV2/getFuturesAffiliateRebates.js index 099125d..6f7db34 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAffiliateRebates.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAffiliateRebates.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/affiliate/rebate-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAffiliateRebates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesAffiliateTrades.js b/examples/apidoc/FuturesClientV2/getFuturesAffiliateTrades.js index 59e6e88..c476354 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesAffiliateTrades.js +++ b/examples/apidoc/FuturesClientV2/getFuturesAffiliateTrades.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/affiliate/trade-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesAffiliateTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesContractDepth.js b/examples/apidoc/FuturesClientV2/getFuturesContractDepth.js index 2ec9d05..c6ba319 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesContractDepth.js +++ b/examples/apidoc/FuturesClientV2/getFuturesContractDepth.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/depth // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesContractDepth(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesContractDetails.js b/examples/apidoc/FuturesClientV2/getFuturesContractDetails.js index d29cf8f..6027864 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesContractDetails.js +++ b/examples/apidoc/FuturesClientV2/getFuturesContractDetails.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/details // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesContractDetails(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesFundingRate.js b/examples/apidoc/FuturesClientV2/getFuturesFundingRate.js index 7f808c0..d22a9b0 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesFundingRate.js +++ b/examples/apidoc/FuturesClientV2/getFuturesFundingRate.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/funding-rate // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesFundingRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesKlines.js b/examples/apidoc/FuturesClientV2/getFuturesKlines.js index 35546b7..e75fd2c 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesKlines.js +++ b/examples/apidoc/FuturesClientV2/getFuturesKlines.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/kline // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesKlines(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesOpenInterest.js b/examples/apidoc/FuturesClientV2/getFuturesOpenInterest.js index 83a0b39..f207377 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesOpenInterest.js +++ b/examples/apidoc/FuturesClientV2/getFuturesOpenInterest.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/open-interest // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesOpenInterest(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesSubTransferHistory.js b/examples/apidoc/FuturesClientV2/getFuturesSubTransferHistory.js index 6607a53..5d32080 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesSubTransferHistory.js +++ b/examples/apidoc/FuturesClientV2/getFuturesSubTransferHistory.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/v1/transfer-history // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesSubTransferHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesSubTransfers.js b/examples/apidoc/FuturesClientV2/getFuturesSubTransfers.js index d1e20ad..a3fc8a5 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesSubTransfers.js +++ b/examples/apidoc/FuturesClientV2/getFuturesSubTransfers.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/transfer-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesSubTransfers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesSubWallet.js b/examples/apidoc/FuturesClientV2/getFuturesSubWallet.js index 4d4b303..de2e176 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesSubWallet.js +++ b/examples/apidoc/FuturesClientV2/getFuturesSubWallet.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/wallet // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesSubWallet(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getFuturesTransfers.js b/examples/apidoc/FuturesClientV2/getFuturesTransfers.js index a24058f..a806720 100644 --- a/examples/apidoc/FuturesClientV2/getFuturesTransfers.js +++ b/examples/apidoc/FuturesClientV2/getFuturesTransfers.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/transfer-contract-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getFuturesTransfers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getPositionRiskDetails.js b/examples/apidoc/FuturesClientV2/getPositionRiskDetails.js index 573804a..b0964d7 100644 --- a/examples/apidoc/FuturesClientV2/getPositionRiskDetails.js +++ b/examples/apidoc/FuturesClientV2/getPositionRiskDetails.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/position-risk // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getPositionRiskDetails(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getSystemStatus.js b/examples/apidoc/FuturesClientV2/getSystemStatus.js index f4f15af..3ad1029 100644 --- a/examples/apidoc/FuturesClientV2/getSystemStatus.js +++ b/examples/apidoc/FuturesClientV2/getSystemStatus.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: system/service // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getSystemStatus(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/getSystemTime.js b/examples/apidoc/FuturesClientV2/getSystemTime.js index 9a29cb6..01dffc0 100644 --- a/examples/apidoc/FuturesClientV2/getSystemTime.js +++ b/examples/apidoc/FuturesClientV2/getSystemTime.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: system/time // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.getSystemTime(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/setFuturesLeverage.js b/examples/apidoc/FuturesClientV2/setFuturesLeverage.js index 98cf999..c8216e9 100644 --- a/examples/apidoc/FuturesClientV2/setFuturesLeverage.js +++ b/examples/apidoc/FuturesClientV2/setFuturesLeverage.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/submit-leverage // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.setFuturesLeverage(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/submitFuturesMainToSubTransferFromMain.js b/examples/apidoc/FuturesClientV2/submitFuturesMainToSubTransferFromMain.js index 0cf18f6..53d61e1 100644 --- a/examples/apidoc/FuturesClientV2/submitFuturesMainToSubTransferFromMain.js +++ b/examples/apidoc/FuturesClientV2/submitFuturesMainToSubTransferFromMain.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/main-to-sub // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.submitFuturesMainToSubTransferFromMain(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/submitFuturesOrder.js b/examples/apidoc/FuturesClientV2/submitFuturesOrder.js index 40a14cf..5ca62ac 100644 --- a/examples/apidoc/FuturesClientV2/submitFuturesOrder.js +++ b/examples/apidoc/FuturesClientV2/submitFuturesOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/submit-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.submitFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/submitFuturesPlanOrder.js b/examples/apidoc/FuturesClientV2/submitFuturesPlanOrder.js index 7179d7d..fb300dd 100644 --- a/examples/apidoc/FuturesClientV2/submitFuturesPlanOrder.js +++ b/examples/apidoc/FuturesClientV2/submitFuturesPlanOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/submit-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.submitFuturesPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/submitFuturesSubToMainSubFromSub.js b/examples/apidoc/FuturesClientV2/submitFuturesSubToMainSubFromSub.js index 2f4a64b..be546fa 100644 --- a/examples/apidoc/FuturesClientV2/submitFuturesSubToMainSubFromSub.js +++ b/examples/apidoc/FuturesClientV2/submitFuturesSubToMainSubFromSub.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/sub/v1/sub-to-main // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.submitFuturesSubToMainSubFromSub(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/submitFuturesSubToMainTransferFromMain.js b/examples/apidoc/FuturesClientV2/submitFuturesSubToMainTransferFromMain.js index 7740088..36a71bb 100644 --- a/examples/apidoc/FuturesClientV2/submitFuturesSubToMainTransferFromMain.js +++ b/examples/apidoc/FuturesClientV2/submitFuturesSubToMainTransferFromMain.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/sub-to-main // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.submitFuturesSubToMainTransferFromMain(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/submitFuturesTPSLOrder.js b/examples/apidoc/FuturesClientV2/submitFuturesTPSLOrder.js index 3e40f3c..814e895 100644 --- a/examples/apidoc/FuturesClientV2/submitFuturesTPSLOrder.js +++ b/examples/apidoc/FuturesClientV2/submitFuturesTPSLOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/submit-tp-sl-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.submitFuturesTPSLOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/submitFuturesTransfer.js b/examples/apidoc/FuturesClientV2/submitFuturesTransfer.js index 793f03a..78ef789 100644 --- a/examples/apidoc/FuturesClientV2/submitFuturesTransfer.js +++ b/examples/apidoc/FuturesClientV2/submitFuturesTransfer.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/transfer-contract // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.submitFuturesTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/updateFuturesPlanOrder.js b/examples/apidoc/FuturesClientV2/updateFuturesPlanOrder.js index 17d41f6..a946d6d 100644 --- a/examples/apidoc/FuturesClientV2/updateFuturesPlanOrder.js +++ b/examples/apidoc/FuturesClientV2/updateFuturesPlanOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/modify-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.updateFuturesPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/updateFuturesPresetPlanOrder.js b/examples/apidoc/FuturesClientV2/updateFuturesPresetPlanOrder.js index b2e135f..ae66cae 100644 --- a/examples/apidoc/FuturesClientV2/updateFuturesPresetPlanOrder.js +++ b/examples/apidoc/FuturesClientV2/updateFuturesPresetPlanOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/modify-preset-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.updateFuturesPresetPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/FuturesClientV2/updateFuturesTPSLOrder.js b/examples/apidoc/FuturesClientV2/updateFuturesTPSLOrder.js index ffac808..d34deeb 100644 --- a/examples/apidoc/FuturesClientV2/updateFuturesTPSLOrder.js +++ b/examples/apidoc/FuturesClientV2/updateFuturesTPSLOrder.js @@ -1,5 +1,7 @@ const { FuturesClientV2 } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/modify-tp-sl-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new FuturesClientV2({ }); client.updateFuturesTPSLOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllFuturesOrders.js b/examples/apidoc/RestClient/cancelAllFuturesOrders.js index 0ed0e27..fc0d5aa 100644 --- a/examples/apidoc/RestClient/cancelAllFuturesOrders.js +++ b/examples/apidoc/RestClient/cancelAllFuturesOrders.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/cancel-orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllFuturesOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelAllSpotOrders.js b/examples/apidoc/RestClient/cancelAllSpotOrders.js index a640bed..1315cc4 100644 --- a/examples/apidoc/RestClient/cancelAllSpotOrders.js +++ b/examples/apidoc/RestClient/cancelAllSpotOrders.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/cancel_all // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelAllSpotOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelFuturesOrder.js b/examples/apidoc/RestClient/cancelFuturesOrder.js index d8b7d9b..265282a 100644 --- a/examples/apidoc/RestClient/cancelFuturesOrder.js +++ b/examples/apidoc/RestClient/cancelFuturesOrder.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/cancel-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelFuturesPlanOrder.js b/examples/apidoc/RestClient/cancelFuturesPlanOrder.js index c3fdf23..879cf42 100644 --- a/examples/apidoc/RestClient/cancelFuturesPlanOrder.js +++ b/examples/apidoc/RestClient/cancelFuturesPlanOrder.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/cancel-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelFuturesPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelSpotBatchOrdersV4.js b/examples/apidoc/RestClient/cancelSpotBatchOrdersV4.js index 6c8a16e..3eba6a2 100644 --- a/examples/apidoc/RestClient/cancelSpotBatchOrdersV4.js +++ b/examples/apidoc/RestClient/cancelSpotBatchOrdersV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/cancel_orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelSpotBatchOrdersV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelSpotOrderV3.js b/examples/apidoc/RestClient/cancelSpotOrderV3.js index c506321..f29a006 100644 --- a/examples/apidoc/RestClient/cancelSpotOrderV3.js +++ b/examples/apidoc/RestClient/cancelSpotOrderV3.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v3/cancel_order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelSpotOrderV3(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/cancelSpotOrdersV1.js b/examples/apidoc/RestClient/cancelSpotOrdersV1.js index 74f4457..b3cf637 100644 --- a/examples/apidoc/RestClient/cancelSpotOrdersV1.js +++ b/examples/apidoc/RestClient/cancelSpotOrdersV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/cancel_orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.cancelSpotOrdersV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAccountBalancesV1.js b/examples/apidoc/RestClient/getAccountBalancesV1.js index 6976921..740772f 100644 --- a/examples/apidoc/RestClient/getAccountBalancesV1.js +++ b/examples/apidoc/RestClient/getAccountBalancesV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/wallet // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAccountBalancesV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAccountCurrenciesV1.js b/examples/apidoc/RestClient/getAccountCurrenciesV1.js index 362be86..65bfb90 100644 --- a/examples/apidoc/RestClient/getAccountCurrenciesV1.js +++ b/examples/apidoc/RestClient/getAccountCurrenciesV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/currencies // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAccountCurrenciesV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAccountDepositAddressV1.js b/examples/apidoc/RestClient/getAccountDepositAddressV1.js index f3e4412..76bb29b 100644 --- a/examples/apidoc/RestClient/getAccountDepositAddressV1.js +++ b/examples/apidoc/RestClient/getAccountDepositAddressV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/deposit/address // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAccountDepositAddressV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAccountSubTransfersV1.js b/examples/apidoc/RestClient/getAccountSubTransfersV1.js index 88bea9e..81091db 100644 --- a/examples/apidoc/RestClient/getAccountSubTransfersV1.js +++ b/examples/apidoc/RestClient/getAccountSubTransfersV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/v1/transfer-history // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAccountSubTransfersV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getAccountWithdrawQuotaV1.js b/examples/apidoc/RestClient/getAccountWithdrawQuotaV1.js index 98b5518..e5ba5f8 100644 --- a/examples/apidoc/RestClient/getAccountWithdrawQuotaV1.js +++ b/examples/apidoc/RestClient/getAccountWithdrawQuotaV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/withdraw/charge // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getAccountWithdrawQuotaV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getActualSpotTradeFeeRateV1.js b/examples/apidoc/RestClient/getActualSpotTradeFeeRateV1.js index dc86e9e..655417b 100644 --- a/examples/apidoc/RestClient/getActualSpotTradeFeeRateV1.js +++ b/examples/apidoc/RestClient/getActualSpotTradeFeeRateV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/trade_fee // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getActualSpotTradeFeeRateV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getBasicSpotFeeRateV1.js b/examples/apidoc/RestClient/getBasicSpotFeeRateV1.js index 35527c8..db78339 100644 --- a/examples/apidoc/RestClient/getBasicSpotFeeRateV1.js +++ b/examples/apidoc/RestClient/getBasicSpotFeeRateV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/user_fee // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getBasicSpotFeeRateV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getBrokerRebate.js b/examples/apidoc/RestClient/getBrokerRebate.js index ca91d49..1405431 100644 --- a/examples/apidoc/RestClient/getBrokerRebate.js +++ b/examples/apidoc/RestClient/getBrokerRebate.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/broker/rebate // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getBrokerRebate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDepositWithdrawDetailV1.js b/examples/apidoc/RestClient/getDepositWithdrawDetailV1.js index 77ccfb9..b526237 100644 --- a/examples/apidoc/RestClient/getDepositWithdrawDetailV1.js +++ b/examples/apidoc/RestClient/getDepositWithdrawDetailV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/deposit-withdraw/detail // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDepositWithdrawDetailV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getDepositWithdrawHistoryV2.js b/examples/apidoc/RestClient/getDepositWithdrawHistoryV2.js index c1a6223..ee46d1b 100644 --- a/examples/apidoc/RestClient/getDepositWithdrawHistoryV2.js +++ b/examples/apidoc/RestClient/getDepositWithdrawHistoryV2.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v2/deposit-withdraw/history // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getDepositWithdrawHistoryV2(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountAssets.js b/examples/apidoc/RestClient/getFuturesAccountAssets.js index f757a08..7c10e22 100644 --- a/examples/apidoc/RestClient/getFuturesAccountAssets.js +++ b/examples/apidoc/RestClient/getFuturesAccountAssets.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/assets-detail // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountAssets(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountOpenOrders.js b/examples/apidoc/RestClient/getFuturesAccountOpenOrders.js index f270d03..80ab34a 100644 --- a/examples/apidoc/RestClient/getFuturesAccountOpenOrders.js +++ b/examples/apidoc/RestClient/getFuturesAccountOpenOrders.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/get-open-orders // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountOpenOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountOrder.js b/examples/apidoc/RestClient/getFuturesAccountOrder.js index 2cb7f83..6cc23f4 100644 --- a/examples/apidoc/RestClient/getFuturesAccountOrder.js +++ b/examples/apidoc/RestClient/getFuturesAccountOrder.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/order // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountOrderHistory.js b/examples/apidoc/RestClient/getFuturesAccountOrderHistory.js index 14ac142..c4e8ec2 100644 --- a/examples/apidoc/RestClient/getFuturesAccountOrderHistory.js +++ b/examples/apidoc/RestClient/getFuturesAccountOrderHistory.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/order-history // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountOrderHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountPlanOrders.js b/examples/apidoc/RestClient/getFuturesAccountPlanOrders.js index 2257974..63cd558 100644 --- a/examples/apidoc/RestClient/getFuturesAccountPlanOrders.js +++ b/examples/apidoc/RestClient/getFuturesAccountPlanOrders.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/current-plan-order // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountPlanOrders(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountPositions.js b/examples/apidoc/RestClient/getFuturesAccountPositions.js index 322a1e1..b336e9b 100644 --- a/examples/apidoc/RestClient/getFuturesAccountPositions.js +++ b/examples/apidoc/RestClient/getFuturesAccountPositions.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/position // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountPositions(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAccountTrades.js b/examples/apidoc/RestClient/getFuturesAccountTrades.js index 0acd0bc..757c2ae 100644 --- a/examples/apidoc/RestClient/getFuturesAccountTrades.js +++ b/examples/apidoc/RestClient/getFuturesAccountTrades.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/trades // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAccountTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAffiliateRebates.js b/examples/apidoc/RestClient/getFuturesAffiliateRebates.js index b871f12..9a1a14b 100644 --- a/examples/apidoc/RestClient/getFuturesAffiliateRebates.js +++ b/examples/apidoc/RestClient/getFuturesAffiliateRebates.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/affiliate/rebate-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAffiliateRebates(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesAffiliateTrades.js b/examples/apidoc/RestClient/getFuturesAffiliateTrades.js index 76e0f1a..571c13f 100644 --- a/examples/apidoc/RestClient/getFuturesAffiliateTrades.js +++ b/examples/apidoc/RestClient/getFuturesAffiliateTrades.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/affiliate/trade-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesAffiliateTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesContractDepth.js b/examples/apidoc/RestClient/getFuturesContractDepth.js index ed4f200..f0915b8 100644 --- a/examples/apidoc/RestClient/getFuturesContractDepth.js +++ b/examples/apidoc/RestClient/getFuturesContractDepth.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/depth // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesContractDepth(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesContractDetails.js b/examples/apidoc/RestClient/getFuturesContractDetails.js index 0bbbc6f..9dfba2b 100644 --- a/examples/apidoc/RestClient/getFuturesContractDetails.js +++ b/examples/apidoc/RestClient/getFuturesContractDetails.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/details // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesContractDetails(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesFundingRate.js b/examples/apidoc/RestClient/getFuturesFundingRate.js index 38d75e4..07690cc 100644 --- a/examples/apidoc/RestClient/getFuturesFundingRate.js +++ b/examples/apidoc/RestClient/getFuturesFundingRate.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/funding-rate // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesFundingRate(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesKlines.js b/examples/apidoc/RestClient/getFuturesKlines.js index 105c24a..2433ef7 100644 --- a/examples/apidoc/RestClient/getFuturesKlines.js +++ b/examples/apidoc/RestClient/getFuturesKlines.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/kline // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesKlines(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesOpenInterest.js b/examples/apidoc/RestClient/getFuturesOpenInterest.js index 2140df7..4086f9b 100644 --- a/examples/apidoc/RestClient/getFuturesOpenInterest.js +++ b/examples/apidoc/RestClient/getFuturesOpenInterest.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/public/open-interest // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesOpenInterest(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesSubTransferHistory.js b/examples/apidoc/RestClient/getFuturesSubTransferHistory.js index cd87c94..0e2126d 100644 --- a/examples/apidoc/RestClient/getFuturesSubTransferHistory.js +++ b/examples/apidoc/RestClient/getFuturesSubTransferHistory.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/v1/transfer-history // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesSubTransferHistory(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesSubTransfers.js b/examples/apidoc/RestClient/getFuturesSubTransfers.js index 35bb5b1..d1ba9e4 100644 --- a/examples/apidoc/RestClient/getFuturesSubTransfers.js +++ b/examples/apidoc/RestClient/getFuturesSubTransfers.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/transfer-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesSubTransfers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesSubWallet.js b/examples/apidoc/RestClient/getFuturesSubWallet.js index 1d0ebab..cf24741 100644 --- a/examples/apidoc/RestClient/getFuturesSubWallet.js +++ b/examples/apidoc/RestClient/getFuturesSubWallet.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/wallet // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesSubWallet(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getFuturesTransfers.js b/examples/apidoc/RestClient/getFuturesTransfers.js index adcb89b..0a5e27f 100644 --- a/examples/apidoc/RestClient/getFuturesTransfers.js +++ b/examples/apidoc/RestClient/getFuturesTransfers.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/transfer-contract-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getFuturesTransfers(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginAccountDetailsV1.js b/examples/apidoc/RestClient/getMarginAccountDetailsV1.js index e265ccc..42834fb 100644 --- a/examples/apidoc/RestClient/getMarginAccountDetailsV1.js +++ b/examples/apidoc/RestClient/getMarginAccountDetailsV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/isolated/account // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginAccountDetailsV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginBorrowRecordV1.js b/examples/apidoc/RestClient/getMarginBorrowRecordV1.js index 2953018..a24bad9 100644 --- a/examples/apidoc/RestClient/getMarginBorrowRecordV1.js +++ b/examples/apidoc/RestClient/getMarginBorrowRecordV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/isolated/borrow_record // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginBorrowRecordV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginBorrowingRatesV1.js b/examples/apidoc/RestClient/getMarginBorrowingRatesV1.js index bb82677..388a12b 100644 --- a/examples/apidoc/RestClient/getMarginBorrowingRatesV1.js +++ b/examples/apidoc/RestClient/getMarginBorrowingRatesV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/isolated/pairs // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginBorrowingRatesV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getMarginRepayRecordV1.js b/examples/apidoc/RestClient/getMarginRepayRecordV1.js index 9d72d09..911c141 100644 --- a/examples/apidoc/RestClient/getMarginRepayRecordV1.js +++ b/examples/apidoc/RestClient/getMarginRepayRecordV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/isolated/repay_record // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getMarginRepayRecordV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getPositionRiskDetails.js b/examples/apidoc/RestClient/getPositionRiskDetails.js index 3e0ae55..dda6b8e 100644 --- a/examples/apidoc/RestClient/getPositionRiskDetails.js +++ b/examples/apidoc/RestClient/getPositionRiskDetails.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/position-risk // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getPositionRiskDetails(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotAccountOrderTradesV4.js b/examples/apidoc/RestClient/getSpotAccountOrderTradesV4.js index cde816d..9c395c3 100644 --- a/examples/apidoc/RestClient/getSpotAccountOrderTradesV4.js +++ b/examples/apidoc/RestClient/getSpotAccountOrderTradesV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/query/order-trades // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotAccountOrderTradesV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotAccountTradesV4.js b/examples/apidoc/RestClient/getSpotAccountTradesV4.js index 486c10b..5b3279b 100644 --- a/examples/apidoc/RestClient/getSpotAccountTradesV4.js +++ b/examples/apidoc/RestClient/getSpotAccountTradesV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/query/trades // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotAccountTradesV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotCurrenciesV1.js b/examples/apidoc/RestClient/getSpotCurrenciesV1.js index 655ce94..8cace25 100644 --- a/examples/apidoc/RestClient/getSpotCurrenciesV1.js +++ b/examples/apidoc/RestClient/getSpotCurrenciesV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/currencies // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotCurrenciesV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotHistoricOrdersV4.js b/examples/apidoc/RestClient/getSpotHistoricOrdersV4.js index 28100b0..750e378 100644 --- a/examples/apidoc/RestClient/getSpotHistoricOrdersV4.js +++ b/examples/apidoc/RestClient/getSpotHistoricOrdersV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/query/history-orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotHistoricOrdersV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotHistoryKlineV3.js b/examples/apidoc/RestClient/getSpotHistoryKlineV3.js index 1491f29..22f2590 100644 --- a/examples/apidoc/RestClient/getSpotHistoryKlineV3.js +++ b/examples/apidoc/RestClient/getSpotHistoryKlineV3.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/quotation/v3/klines // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotHistoryKlineV3(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotKLineStepsV1.js b/examples/apidoc/RestClient/getSpotKLineStepsV1.js index 68df351..b6937ab 100644 --- a/examples/apidoc/RestClient/getSpotKLineStepsV1.js +++ b/examples/apidoc/RestClient/getSpotKLineStepsV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/steps // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotKLineStepsV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotKlinesV1.js b/examples/apidoc/RestClient/getSpotKlinesV1.js index 3a38aaf..67fc367 100644 --- a/examples/apidoc/RestClient/getSpotKlinesV1.js +++ b/examples/apidoc/RestClient/getSpotKlinesV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/symbols/kline // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotKlinesV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotLatestKlineV3.js b/examples/apidoc/RestClient/getSpotLatestKlineV3.js index 4985982..8a7bc87 100644 --- a/examples/apidoc/RestClient/getSpotLatestKlineV3.js +++ b/examples/apidoc/RestClient/getSpotLatestKlineV3.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/quotation/v3/lite-klines // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotLatestKlineV3(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOpenOrdersV4.js b/examples/apidoc/RestClient/getSpotOpenOrdersV4.js index 81481fa..0b5c1b0 100644 --- a/examples/apidoc/RestClient/getSpotOpenOrdersV4.js +++ b/examples/apidoc/RestClient/getSpotOpenOrdersV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/query/open-orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOpenOrdersV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOrderBookDepthV1.js b/examples/apidoc/RestClient/getSpotOrderBookDepthV1.js index 5ae7fd5..f657f60 100644 --- a/examples/apidoc/RestClient/getSpotOrderBookDepthV1.js +++ b/examples/apidoc/RestClient/getSpotOrderBookDepthV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/symbols/book // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOrderBookDepthV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOrderBookDepthV3.js b/examples/apidoc/RestClient/getSpotOrderBookDepthV3.js index 5bc8a6d..8abf653 100644 --- a/examples/apidoc/RestClient/getSpotOrderBookDepthV3.js +++ b/examples/apidoc/RestClient/getSpotOrderBookDepthV3.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/quotation/v3/books // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOrderBookDepthV3(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOrderByClientOrderIdV4.js b/examples/apidoc/RestClient/getSpotOrderByClientOrderIdV4.js index 0f1d178..16210a7 100644 --- a/examples/apidoc/RestClient/getSpotOrderByClientOrderIdV4.js +++ b/examples/apidoc/RestClient/getSpotOrderByClientOrderIdV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/query/client-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOrderByClientOrderIdV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotOrderByIdV4.js b/examples/apidoc/RestClient/getSpotOrderByIdV4.js index 912cc20..1a78559 100644 --- a/examples/apidoc/RestClient/getSpotOrderByIdV4.js +++ b/examples/apidoc/RestClient/getSpotOrderByIdV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/query/order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotOrderByIdV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotRecentTrades.js b/examples/apidoc/RestClient/getSpotRecentTrades.js index d1130ff..1c2bc61 100644 --- a/examples/apidoc/RestClient/getSpotRecentTrades.js +++ b/examples/apidoc/RestClient/getSpotRecentTrades.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/quotation/v3/trades // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotRecentTrades(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTickerV1.js b/examples/apidoc/RestClient/getSpotTickerV1.js index 31caf0f..3303f5f 100644 --- a/examples/apidoc/RestClient/getSpotTickerV1.js +++ b/examples/apidoc/RestClient/getSpotTickerV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/ticker_detail // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTickerV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTickerV3.js b/examples/apidoc/RestClient/getSpotTickerV3.js index 58b8b86..daf1b66 100644 --- a/examples/apidoc/RestClient/getSpotTickerV3.js +++ b/examples/apidoc/RestClient/getSpotTickerV3.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/quotation/v3/ticker // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTickerV3(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTickersV2.js b/examples/apidoc/RestClient/getSpotTickersV2.js index ffaede7..0db13cb 100644 --- a/examples/apidoc/RestClient/getSpotTickersV2.js +++ b/examples/apidoc/RestClient/getSpotTickersV2.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v2/ticker // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTickersV2(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTickersV3.js b/examples/apidoc/RestClient/getSpotTickersV3.js index 40992c0..cc0e69f 100644 --- a/examples/apidoc/RestClient/getSpotTickersV3.js +++ b/examples/apidoc/RestClient/getSpotTickersV3.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/quotation/v3/tickers // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTickersV3(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTradingPairDetailsV1.js b/examples/apidoc/RestClient/getSpotTradingPairDetailsV1.js index abac551..0eda3c0 100644 --- a/examples/apidoc/RestClient/getSpotTradingPairDetailsV1.js +++ b/examples/apidoc/RestClient/getSpotTradingPairDetailsV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/symbols/details // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTradingPairDetailsV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotTradingPairsV1.js b/examples/apidoc/RestClient/getSpotTradingPairsV1.js index 43b52c3..f8c4991 100644 --- a/examples/apidoc/RestClient/getSpotTradingPairsV1.js +++ b/examples/apidoc/RestClient/getSpotTradingPairsV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/symbols // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotTradingPairsV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSpotWalletBalanceV1.js b/examples/apidoc/RestClient/getSpotWalletBalanceV1.js index bd81bd8..ba416fc 100644 --- a/examples/apidoc/RestClient/getSpotWalletBalanceV1.js +++ b/examples/apidoc/RestClient/getSpotWalletBalanceV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/wallet // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSpotWalletBalanceV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubAccountsV1.js b/examples/apidoc/RestClient/getSubAccountsV1.js index 3c84b33..1d4cc77 100644 --- a/examples/apidoc/RestClient/getSubAccountsV1.js +++ b/examples/apidoc/RestClient/getSubAccountsV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/main/v1/subaccount-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubAccountsV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubSpotWalletBalancesV1.js b/examples/apidoc/RestClient/getSubSpotWalletBalancesV1.js index 200e633..273d43f 100644 --- a/examples/apidoc/RestClient/getSubSpotWalletBalancesV1.js +++ b/examples/apidoc/RestClient/getSubSpotWalletBalancesV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/main/v1/wallet // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubSpotWalletBalancesV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSubTransfersV1.js b/examples/apidoc/RestClient/getSubTransfersV1.js index 140fbfe..1a9dcc7 100644 --- a/examples/apidoc/RestClient/getSubTransfersV1.js +++ b/examples/apidoc/RestClient/getSubTransfersV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/main/v1/transfer-list // METHOD: GET // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSubTransfersV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSystemStatus.js b/examples/apidoc/RestClient/getSystemStatus.js index b0fb0f6..de2c52c 100644 --- a/examples/apidoc/RestClient/getSystemStatus.js +++ b/examples/apidoc/RestClient/getSystemStatus.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: system/service // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSystemStatus(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/getSystemTime.js b/examples/apidoc/RestClient/getSystemTime.js index eccca85..7a289e0 100644 --- a/examples/apidoc/RestClient/getSystemTime.js +++ b/examples/apidoc/RestClient/getSystemTime.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: system/time // METHOD: GET // PUBLIC: YES @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.getSystemTime(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/marginBorrowV1.js b/examples/apidoc/RestClient/marginBorrowV1.js index a18f3d5..531da38 100644 --- a/examples/apidoc/RestClient/marginBorrowV1.js +++ b/examples/apidoc/RestClient/marginBorrowV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/isolated/borrow // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.marginBorrowV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/marginRepayV1.js b/examples/apidoc/RestClient/marginRepayV1.js index 1f46834..d2c2ad4 100644 --- a/examples/apidoc/RestClient/marginRepayV1.js +++ b/examples/apidoc/RestClient/marginRepayV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/isolated/repay // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.marginRepayV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/setFuturesLeverage.js b/examples/apidoc/RestClient/setFuturesLeverage.js index 8ac4653..72d615a 100644 --- a/examples/apidoc/RestClient/setFuturesLeverage.js +++ b/examples/apidoc/RestClient/setFuturesLeverage.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/submit-leverage // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.setFuturesLeverage(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesMainToSubTransferFromMain.js b/examples/apidoc/RestClient/submitFuturesMainToSubTransferFromMain.js index 10296be..1c4d4c1 100644 --- a/examples/apidoc/RestClient/submitFuturesMainToSubTransferFromMain.js +++ b/examples/apidoc/RestClient/submitFuturesMainToSubTransferFromMain.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/main-to-sub // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesMainToSubTransferFromMain(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesOrder.js b/examples/apidoc/RestClient/submitFuturesOrder.js index e22eac9..da5a255 100644 --- a/examples/apidoc/RestClient/submitFuturesOrder.js +++ b/examples/apidoc/RestClient/submitFuturesOrder.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/submit-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesPlanOrder.js b/examples/apidoc/RestClient/submitFuturesPlanOrder.js index 1eee1c8..8098067 100644 --- a/examples/apidoc/RestClient/submitFuturesPlanOrder.js +++ b/examples/apidoc/RestClient/submitFuturesPlanOrder.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: contract/private/submit-plan-order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesPlanOrder(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesSubToMainSubFromSub.js b/examples/apidoc/RestClient/submitFuturesSubToMainSubFromSub.js index 0a8e69b..a53dd0a 100644 --- a/examples/apidoc/RestClient/submitFuturesSubToMainSubFromSub.js +++ b/examples/apidoc/RestClient/submitFuturesSubToMainSubFromSub.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/sub/v1/sub-to-main // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesSubToMainSubFromSub(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesSubToMainTransferFromMain.js b/examples/apidoc/RestClient/submitFuturesSubToMainTransferFromMain.js index e9461ea..b90244d 100644 --- a/examples/apidoc/RestClient/submitFuturesSubToMainTransferFromMain.js +++ b/examples/apidoc/RestClient/submitFuturesSubToMainTransferFromMain.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/contract/sub-account/main/v1/sub-to-main // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesSubToMainTransferFromMain(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitFuturesTransfer.js b/examples/apidoc/RestClient/submitFuturesTransfer.js index 19621c1..8bb1f4e 100644 --- a/examples/apidoc/RestClient/submitFuturesTransfer.js +++ b/examples/apidoc/RestClient/submitFuturesTransfer.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/transfer-contract // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitFuturesTransfer(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMainTransferMainToSubV1.js b/examples/apidoc/RestClient/submitMainTransferMainToSubV1.js index 738673f..e52e56e 100644 --- a/examples/apidoc/RestClient/submitMainTransferMainToSubV1.js +++ b/examples/apidoc/RestClient/submitMainTransferMainToSubV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/main/v1/main-to-sub // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMainTransferMainToSubV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMainTransferSubToMainV1.js b/examples/apidoc/RestClient/submitMainTransferSubToMainV1.js index 281587d..4d9ca95 100644 --- a/examples/apidoc/RestClient/submitMainTransferSubToMainV1.js +++ b/examples/apidoc/RestClient/submitMainTransferSubToMainV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/main/v1/sub-to-main // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMainTransferSubToMainV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMainTransferSubToSubV1.js b/examples/apidoc/RestClient/submitMainTransferSubToSubV1.js index 6b6cb5a..14b7124 100644 --- a/examples/apidoc/RestClient/submitMainTransferSubToSubV1.js +++ b/examples/apidoc/RestClient/submitMainTransferSubToSubV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/main/v1/sub-to-sub // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMainTransferSubToSubV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMarginAssetTransferV1.js b/examples/apidoc/RestClient/submitMarginAssetTransferV1.js index c098bc9..f60009c 100644 --- a/examples/apidoc/RestClient/submitMarginAssetTransferV1.js +++ b/examples/apidoc/RestClient/submitMarginAssetTransferV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/isolated/transfer // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMarginAssetTransferV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitMarginOrderV1.js b/examples/apidoc/RestClient/submitMarginOrderV1.js index be54d5f..7cd8ba7 100644 --- a/examples/apidoc/RestClient/submitMarginOrderV1.js +++ b/examples/apidoc/RestClient/submitMarginOrderV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v1/margin/submit_order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitMarginOrderV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotBatchOrdersV2.js b/examples/apidoc/RestClient/submitSpotBatchOrdersV2.js index 2dcb367..5f41a16 100644 --- a/examples/apidoc/RestClient/submitSpotBatchOrdersV2.js +++ b/examples/apidoc/RestClient/submitSpotBatchOrdersV2.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v2/batch_orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotBatchOrdersV2(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotBatchOrdersV4.js b/examples/apidoc/RestClient/submitSpotBatchOrdersV4.js index 2118db2..09c441c 100644 --- a/examples/apidoc/RestClient/submitSpotBatchOrdersV4.js +++ b/examples/apidoc/RestClient/submitSpotBatchOrdersV4.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v4/batch_orders // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotBatchOrdersV4(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSpotOrderV2.js b/examples/apidoc/RestClient/submitSpotOrderV2.js index 43f57c1..cb0477e 100644 --- a/examples/apidoc/RestClient/submitSpotOrderV2.js +++ b/examples/apidoc/RestClient/submitSpotOrderV2.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: spot/v2/submit_order // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSpotOrderV2(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSubTransferSubToMainV1.js b/examples/apidoc/RestClient/submitSubTransferSubToMainV1.js index 266d735..95d7378 100644 --- a/examples/apidoc/RestClient/submitSubTransferSubToMainV1.js +++ b/examples/apidoc/RestClient/submitSubTransferSubToMainV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/sub/v1/sub-to-main // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSubTransferSubToMainV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitSubTransferSubToSubV1.js b/examples/apidoc/RestClient/submitSubTransferSubToSubV1.js index 68566ec..901e7b4 100644 --- a/examples/apidoc/RestClient/submitSubTransferSubToSubV1.js +++ b/examples/apidoc/RestClient/submitSubTransferSubToSubV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/sub-account/sub/v1/sub-to-sub // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitSubTransferSubToSubV1(params) - .then(response => { + .then((response) => { console.log(response); }) - .catch(error => { + .catch((error) => { console.error(error); }); diff --git a/examples/apidoc/RestClient/submitWithdrawalV1.js b/examples/apidoc/RestClient/submitWithdrawalV1.js index ac0f5ca..01a802f 100644 --- a/examples/apidoc/RestClient/submitWithdrawalV1.js +++ b/examples/apidoc/RestClient/submitWithdrawalV1.js @@ -1,5 +1,7 @@ const { RestClient } = require('bitmart-api'); + // This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange + // This bitmart API SDK is available on npm via "npm install bitmart-api" // ENDPOINT: account/v1/withdraw/apply // METHOD: POST // PUBLIC: NO @@ -11,9 +13,9 @@ const client = new RestClient({ }); client.submitWithdrawalV1(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 7764e8b..8bcec74 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitmart-api", - "version": "2.1.5", + "version": "2.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bitmart-api", - "version": "2.1.5", + "version": "2.1.6", "license": "MIT", "dependencies": { "axios": "^1.7.7", diff --git a/package.json b/package.json index d95d461..04e0c28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitmart-api", - "version": "2.1.5", + "version": "2.1.6", "description": "Complete & robust Node.js SDK for BitMart's REST APIs and WebSockets, with TypeScript declarations.", "scripts": { "clean": "rm -rf dist/*",