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({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
apiPass: 'insert_api_pass_here',
});
client.batchCreateVirtualSubaccountAndAPIKey(params)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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