Skip to content

Commit

Permalink
Merge pull request #28 from JJ-Cro/update081124
Browse files Browse the repository at this point in the history
chore(): Updated examples so each client matches the proper initialisation
  • Loading branch information
tiagosiebler authored Nov 11, 2024
2 parents e990ec7 + 27a599e commit 9800670
Show file tree
Hide file tree
Showing 122 changed files with 366 additions and 244 deletions.
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/cancelAllFuturesOrders.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.cancelAllFuturesOrders(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/cancelFuturesOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.cancelFuturesOrder(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/cancelFuturesPlanOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.cancelFuturesPlanOrder(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesAccountAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAccountAssets(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAccountOpenOrders(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesAccountOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAccountOrder(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAccountOrderHistory(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAccountPlanOrders(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesAccountPositions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAccountPositions(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesAccountTrades.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAccountTrades(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesAffiliateRebates.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAffiliateRebates(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesAffiliateTrades.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesAffiliateTrades(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesContractDepth.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: YES

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesContractDepth(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesContractDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: YES

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesContractDetails(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesFundingRate.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: YES

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesFundingRate(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesKlines.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: YES

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesKlines(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesOpenInterest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: YES

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesOpenInterest(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesSubTransferHistory(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesSubTransfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesSubTransfers(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesSubWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesSubWallet(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesTradeFeeRate.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesTradeFeeRate(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getFuturesTransfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getFuturesTransfers(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getPositionRiskDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getPositionRiskDetails(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getSystemStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: YES

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getSystemStatus(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/getSystemTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: YES

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.getSystemTime(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/setFuturesLeverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.setFuturesLeverage(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.submitFuturesMainToSubTransferFromMain(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/submitFuturesOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.submitFuturesOrder(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/submitFuturesPlanOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.submitFuturesPlanOrder(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.submitFuturesSubToMainSubFromSub(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.submitFuturesSubToMainTransferFromMain(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/submitFuturesTPSLOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.submitFuturesTPSLOrder(params)
Expand Down
5 changes: 3 additions & 2 deletions examples/apidoc/FuturesClientV2/submitFuturesTransfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { FuturesClientV2 } = require('bitmart-api');
// PUBLIC: NO

const client = new FuturesClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'yourAPIKeyHere',
apiSecret: 'yourAPISecretHere',
apiMemo: 'yourAPIMemoHere',
});

client.submitFuturesTransfer(params)
Expand Down
Loading

0 comments on commit 9800670

Please sign in to comment.