chore(): Updated examples so each client matches the proper initialisation

This commit is contained in:
Jerko J
2024-11-08 11:14:51 +01:00
parent 6fc463e8a5
commit 218aaf9fdd
250 changed files with 250 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.batchCreateVirtualSubaccountAndAPIKey(params) client.batchCreateVirtualSubaccountAndAPIKey(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.borrowLoan(params) client.borrowLoan(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.cancelSpotFollowerOrder(params) client.cancelSpotFollowerOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.closeFuturesFollowerPositions(params) client.closeFuturesFollowerPositions(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.closeFuturesTraderOrder(params) client.closeFuturesTraderOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.convert(params) client.convert(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.convertBGB(params) client.convertBGB(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.createSubaccount(params) client.createSubaccount(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.createSubaccountApiKey(params) client.createSubaccountApiKey(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.createSubaccountDepositAddress(params) client.createSubaccountDepositAddress(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.createVirtualSubaccount(params) client.createVirtualSubaccount(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.createVirtualSubaccountAPIKey(params) client.createVirtualSubaccountAPIKey(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.earnSubscribeSavings(params) client.earnSubscribeSavings(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresBatchCancelOrders(params) client.futuresBatchCancelOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresBatchSubmitOrders(params) client.futuresBatchSubmitOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresCancelAllOrders(params) client.futuresCancelAllOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresCancelOrder(params) client.futuresCancelOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresCancelPlanOrder(params) client.futuresCancelPlanOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresFlashClosePositions(params) client.futuresFlashClosePositions(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresModifyOrder(params) client.futuresModifyOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresModifyPlanOrder(params) client.futuresModifyPlanOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresModifyTPSLPOrder(params) client.futuresModifyTPSLPOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresSubmitOrder(params) client.futuresSubmitOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresSubmitPlanOrder(params) client.futuresSubmitPlanOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresSubmitPlanSubOrder(params) client.futuresSubmitPlanSubOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresSubmitReversal(params) client.futuresSubmitReversal(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.futuresSubmitTPSLOrder(params) client.futuresSubmitTPSLOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getAnnouncements(params) client.getAnnouncements(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getBalances(params) client.getBalances(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getBotAccount(params) client.getBotAccount(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getBrokerInfo(params) client.getBrokerInfo(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getBrokerTraders(params) client.getBrokerTraders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getBrokerTradersHistoricalOrders(params) client.getBrokerTradersHistoricalOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getBrokerTradersPendingOrders(params) client.getBrokerTradersPendingOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getConvertBGBCoins(params) client.getConvertBGBCoins(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getConvertBGBHistory(params) client.getConvertBGBHistory(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getConvertCoins(params) client.getConvertCoins(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getConvertHistory(params) client.getConvertHistory(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getConvertQuotedPrice(params) client.getConvertQuotedPrice(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnAccount(params) client.getEarnAccount(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnSavingsAccount(params) client.getEarnSavingsAccount(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnSavingsAssets(params) client.getEarnSavingsAssets(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnSavingsProducts(params) client.getEarnSavingsProducts(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnSavingsRecords(params) client.getEarnSavingsRecords(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnSavingsRedemptionResult(params) client.getEarnSavingsRedemptionResult(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnSavingsSubscription(params) client.getEarnSavingsSubscription(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getEarnSavingsSubscriptionResult(params) client.getEarnSavingsSubscriptionResult(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFundingAssets(params) client.getFundingAssets(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesAccountAsset(params) client.getFuturesAccountAsset(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesAccountAssets(params) client.getFuturesAccountAssets(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesAccountBills(params) client.getFuturesAccountBills(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesActiveBuySellVolumeData(params) client.getFuturesActiveBuySellVolumeData(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesActiveLongShortAccountData(params) client.getFuturesActiveLongShortAccountData(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesActiveLongShortPositionData(params) client.getFuturesActiveLongShortPositionData(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesActiveTakerBuySellVolumeData(params) client.getFuturesActiveTakerBuySellVolumeData(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesAllTickers(params) client.getFuturesAllTickers(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesCandles(params) client.getFuturesCandles(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesContractConfig(params) client.getFuturesContractConfig(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesCurrentFundingRate(params) client.getFuturesCurrentFundingRate(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesFills(params) client.getFuturesFills(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesFollowerCurrentOrders(params) client.getFuturesFollowerCurrentOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesFollowerFollowLimit(params) client.getFuturesFollowerFollowLimit(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesFollowerHistoryOrders(params) client.getFuturesFollowerHistoryOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesFollowerSettings(params) client.getFuturesFollowerSettings(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesFollowerTraders(params) client.getFuturesFollowerTraders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricCandles(params) client.getFuturesHistoricCandles(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricFundingRates(params) client.getFuturesHistoricFundingRates(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricIndexPriceCandles(params) client.getFuturesHistoricIndexPriceCandles(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricMarkPriceCandles(params) client.getFuturesHistoricMarkPriceCandles(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricOrderFills(params) client.getFuturesHistoricOrderFills(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricOrders(params) client.getFuturesHistoricOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricPlanOrders(params) client.getFuturesHistoricPlanOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricPositions(params) client.getFuturesHistoricPositions(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesHistoricTrades(params) client.getFuturesHistoricTrades(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesLongShortRatio(params) client.getFuturesLongShortRatio(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesMergeDepth(params) client.getFuturesMergeDepth(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesNextFundingTime(params) client.getFuturesNextFundingTime(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesOpenCount(params) client.getFuturesOpenCount(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesOpenInterest(params) client.getFuturesOpenInterest(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesOpenOrders(params) client.getFuturesOpenOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesOrder(params) client.getFuturesOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesPlanOrders(params) client.getFuturesPlanOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesPosition(params) client.getFuturesPosition(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesPositionTier(params) client.getFuturesPositionTier(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesPositions(params) client.getFuturesPositions(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesRecentTrades(params) client.getFuturesRecentTrades(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesSubAccountAssets(params) client.getFuturesSubAccountAssets(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesSymbolPrice(params) client.getFuturesSymbolPrice(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTicker(params) client.getFuturesTicker(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderCurrentOrder(params) client.getFuturesTraderCurrentOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderFollowers(params) client.getFuturesTraderFollowers(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderHistoryOrders(params) client.getFuturesTraderHistoryOrders(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderOrder(params) client.getFuturesTraderOrder(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderProfitHistory(params) client.getFuturesTraderProfitHistory(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderProfitShare(params) client.getFuturesTraderProfitShare(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderProfitShareGroup(params) client.getFuturesTraderProfitShareGroup(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderProfitShareHistory(params) client.getFuturesTraderProfitShareHistory(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTraderSymbolSettings(params) client.getFuturesTraderSymbolSettings(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesTransactionRecords(params) client.getFuturesTransactionRecords(params)

View File

@@ -10,6 +10,7 @@ const { RestClientV2 } = require('bitget-api');
const client = new RestClientV2({ const client = new RestClientV2({
apiKey: 'insert_api_key_here', apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here', apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
}); });
client.getFuturesVIPFeeRate(params) client.getFuturesVIPFeeRate(params)

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