Skip to content

Commit

Permalink
Merge pull request #77 from JJ-Cro/update081124
Browse files Browse the repository at this point in the history
chore(): Updated examples
  • Loading branch information
tiagosiebler authored Nov 11, 2024
2 parents 05ee475 + bf868c3 commit 807e030
Show file tree
Hide file tree
Showing 342 changed files with 1,026 additions and 684 deletions.
5 changes: 3 additions & 2 deletions examples/apidoc/RestClient/activateOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const { RestClient } = require('okx-api');
// PUBLIC: NO

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

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

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiKey: 'apiKeyHere',
apiSecret: 'apiSecretHere',
apiPass: 'apiPassHere',
});

client.cancelWithdrawal(params)
Expand Down
Loading

0 comments on commit 807e030

Please sign in to comment.