From 78920aeda9719d25076d23d0c39f7b3d5d280490 Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:18:29 +0200 Subject: [PATCH] feat(): added latency check, removed links from examples --- .gitignore | 3 +- docs/endpointFunctionList.md | 682 +++++++++--------- examples/apidoc/RestClient/activateOption.js | 1 - .../apidoc/RestClient/adjustGridInvestment.js | 1 - .../RestClient/adjustGridMarginBalance.js | 1 - examples/apidoc/RestClient/amendAlgoOrder.js | 1 - .../apidoc/RestClient/amendGridAlgoOrder.js | 1 - .../apidoc/RestClient/amendLendingOrder.js | 1 - .../apidoc/RestClient/amendMultipleOrders.js | 1 - examples/apidoc/RestClient/amendOrder.js | 1 - .../RestClient/amendRecurringBuyOrder.js | 1 - .../RestClient/applyCopytradingLeadTrading.js | 1 - .../RestClient/applyForMonthlyStatement.js | 1 - .../applyTransactionDetailsArchive.js | 19 - .../apidoc/RestClient/borrowRepayVIPLoan.js | 1 - .../RestClient/cancelAdvanceAlgoOrder.js | 1 - examples/apidoc/RestClient/cancelAlgoOrder.js | 1 - examples/apidoc/RestClient/cancelAllAfter.js | 1 - .../apidoc/RestClient/cancelAllBlockAfter.js | 1 - .../apidoc/RestClient/cancelAllBlockQuotes.js | 1 - examples/apidoc/RestClient/cancelAllRFQs.js | 1 - .../RestClient/cancelAllSpreadOrders.js | 1 - .../apidoc/RestClient/cancelBlockQuote.js | 1 - examples/apidoc/RestClient/cancelBlockRFQ.js | 1 - .../cancelGridContractCloseOrder.js | 1 - examples/apidoc/RestClient/cancelMassOrder.js | 1 - .../RestClient/cancelMultipleBlockQuotes.js | 1 - .../RestClient/cancelMultipleBlockRFQs.js | 1 - .../apidoc/RestClient/cancelMultipleOrders.js | 1 - examples/apidoc/RestClient/cancelOrder.js | 1 - .../apidoc/RestClient/cancelSignalBots.js | 1 - .../apidoc/RestClient/cancelSpreadAllAfter.js | 1 - .../apidoc/RestClient/cancelSpreadOrder.js | 1 - .../apidoc/RestClient/cancelStakingRequest.js | 1 - examples/apidoc/RestClient/cancelSubOrder.js | 1 - .../apidoc/RestClient/cancelWithdrawal.js | 1 - .../apidoc/RestClient/changePositionMargin.js | 1 - .../RestClient/closeCopytradingSubposition.js | 1 - .../RestClient/closeGridContractPosition.js | 1 - examples/apidoc/RestClient/closePositions.js | 1 - .../RestClient/closeSignalBotPosition.js | 1 - .../RestClient/computeGridMarginBalance.js | 1 - .../RestClient/computeGridMinInvestment.js | 1 - .../convertFixedLoanToMarketLoan.js | 1 - examples/apidoc/RestClient/convertTrade.js | 1 - .../apidoc/RestClient/createBlockQuote.js | 1 - examples/apidoc/RestClient/createBlockRFQ.js | 1 - examples/apidoc/RestClient/createSignal.js | 1 - examples/apidoc/RestClient/createSignalBot.js | 1 - .../apidoc/RestClient/createSubAccount.js | 1 - .../RestClient/createSubAccountAPIKey.js | 1 - .../apidoc/RestClient/deleteSubAccount.js | 1 - .../apidoc/RestClient/estimateConvertQuote.js | 1 - .../apidoc/RestClient/executeBlockQuote.js | 1 - examples/apidoc/RestClient/fundsTransfer.js | 1 - .../geCopytradingLeadPrivateStats.js | 1 - .../apidoc/RestClient/get24hrTotalVolume.js | 1 - examples/apidoc/RestClient/getAPYHistory.js | 1 - .../RestClient/getAccountAssetValuation.js | 1 - .../RestClient/getAccountConfiguration.js | 1 - .../RestClient/getAccountInstruments.js | 1 - .../RestClient/getAccountPositionRisk.js | 1 - .../apidoc/RestClient/getAccountRateLimit.js | 1 - .../apidoc/RestClient/getAccountRiskState.js | 1 - .../apidoc/RestClient/getActiveSignalBot.js | 1 - .../RestClient/getActiveStakingOrders.js | 1 - .../RestClient/getAffiliateRebateInfo.js | 1 - .../apidoc/RestClient/getAlgoOrderDetails.js | 1 - .../apidoc/RestClient/getAlgoOrderHistory.js | 1 - .../apidoc/RestClient/getAlgoOrderList.js | 1 - .../apidoc/RestClient/getAnnouncementTypes.js | 1 - .../apidoc/RestClient/getAnnouncements.js | 1 - .../apidoc/RestClient/getAssetBillsDetails.js | 1 - examples/apidoc/RestClient/getBalance.js | 1 - examples/apidoc/RestClient/getBalances.js | 1 - examples/apidoc/RestClient/getBills.js | 1 - examples/apidoc/RestClient/getBillsArchive.js | 1 - .../RestClient/getBlockCounterParties.js | 1 - .../apidoc/RestClient/getBlockMmpConfig.js | 1 - .../apidoc/RestClient/getBlockPublicTrades.js | 1 - examples/apidoc/RestClient/getBlockQuotes.js | 1 - examples/apidoc/RestClient/getBlockRFQs.js | 1 - examples/apidoc/RestClient/getBlockTicker.js | 1 - examples/apidoc/RestClient/getBlockTickers.js | 1 - examples/apidoc/RestClient/getBlockTrades.js | 1 - .../RestClient/getBorrowInterestLimits.js | 1 - .../RestClient/getBorrowRepayHistory.js | 1 - .../RestClient/getBrokerAccountInformation.js | 1 - examples/apidoc/RestClient/getCandles.js | 1 - examples/apidoc/RestClient/getCandlesV2.js | 1 - .../RestClient/getContractTakerVolume.js | 1 - .../getContractsOpenInterestAndVolume.js | 1 - .../apidoc/RestClient/getConvertCurrencies.js | 1 - .../RestClient/getConvertCurrencyPair.js | 1 - .../apidoc/RestClient/getConvertHistory.js | 1 - examples/apidoc/RestClient/getCopyTraders.js | 1 - .../RestClient/getCopyTradersPrivate.js | 1 - .../RestClient/getCopytradingAccount.js | 1 - .../getCopytradingBatchLeverageInfo.js | 1 - .../apidoc/RestClient/getCopytradingConfig.js | 1 - .../RestClient/getCopytradingCopySettings.js | 1 - .../RestClient/getCopytradingInstruments.js | 1 - .../RestClient/getCopytradingLeadDailyPnl.js | 1 - .../getCopytradingLeadOpenPositions.js | 1 - .../getCopytradingLeadPositionHistory.js | 1 - .../getCopytradingLeadPreferences.js | 1 - .../getCopytradingLeadPrivateOpenPositions.js | 1 - ...etCopytradingLeadPrivatePositionHistory.js | 1 - .../getCopytradingLeadPrivatePreferences.js | 1 - .../getCopytradingLeadPrivateRanks.js | 1 - .../getCopytradingLeadPrivateWeeklyPnl.js | 1 - .../RestClient/getCopytradingLeadRanks.js | 1 - .../RestClient/getCopytradingLeadStats.js | 1 - .../getCopytradingLeadTradersHistory.js | 1 - .../RestClient/getCopytradingLeadWeeklyPnl.js | 1 - .../RestClient/getCopytradingMyLeadTraders.js | 1 - .../getCopytradingPLeadPrivateDailyPnl.js | 1 - .../RestClient/getCopytradingProfitDetails.js | 1 - .../RestClient/getCopytradingSubpositions.js | 1 - .../getCopytradingSubpositionsHistory.js | 1 - .../RestClient/getCopytradingTotalProfit.js | 1 - .../getCopytradingTotalUnrealizedProfit.js | 1 - .../getCopytradingUnrealizedProfit.js | 1 - examples/apidoc/RestClient/getCurrencies.js | 1 - .../RestClient/getDeliveryExerciseHistory.js | 1 - .../apidoc/RestClient/getDepositAddress.js | 1 - .../apidoc/RestClient/getDepositHistory.js | 1 - .../RestClient/getDepositWithdrawStatus.js | 1 - .../getDiscountRateAndInterestFreeQuota.js | 1 - .../apidoc/RestClient/getETHStakingBalance.js | 1 - .../apidoc/RestClient/getETHStakingHistory.js | 1 - .../RestClient/getEasyConvertCurrencies.js | 1 - .../RestClient/getEasyConvertHistory.js | 1 - .../apidoc/RestClient/getEconomicCalendar.js | 1 - .../getEstimatedDeliveryExercisePrice.js | 1 - examples/apidoc/RestClient/getExchangeRate.js | 1 - examples/apidoc/RestClient/getExchanges.js | 1 - examples/apidoc/RestClient/getFeeRates.js | 1 - examples/apidoc/RestClient/getFeeRatesV2.js | 1 - examples/apidoc/RestClient/getFills.js | 1 - examples/apidoc/RestClient/getFillsHistory.js | 1 - .../RestClient/getFixedLoanBorrowLimit.js | 1 - .../RestClient/getFixedLoanBorrowOrders.js | 1 - .../RestClient/getFixedLoanBorrowQuote.js | 1 - .../apidoc/RestClient/getFullOrderBook.js | 1 - examples/apidoc/RestClient/getFundingRate.js | 1 - .../RestClient/getFundingRateHistory.js | 1 - .../RestClient/getFundsTransferState.js | 1 - examples/apidoc/RestClient/getGreeks.js | 1 - .../apidoc/RestClient/getGridAIParameter.js | 1 - .../RestClient/getGridAlgoOrderDetails.js | 1 - .../RestClient/getGridAlgoOrderHistory.js | 1 - .../apidoc/RestClient/getGridAlgoOrderList.js | 1 - .../RestClient/getGridAlgoOrderPositions.js | 1 - .../apidoc/RestClient/getGridAlgoSubOrders.js | 1 - .../apidoc/RestClient/getHistoricCandles.js | 1 - .../apidoc/RestClient/getHistoricCandlesV2.js | 1 - .../RestClient/getHistoricIndexCandles.js | 1 - .../RestClient/getHistoricIndexCandlesV2.js | 1 - .../RestClient/getHistoricMarkPriceCandles.js | 1 - .../getHistoricMarkPriceCandlesV2.js | 1 - .../apidoc/RestClient/getHistoricTrades.js | 1 - examples/apidoc/RestClient/getIndexCandles.js | 1 - .../apidoc/RestClient/getIndexCandlesV2.js | 1 - .../apidoc/RestClient/getIndexComponents.js | 1 - examples/apidoc/RestClient/getIndexTickers.js | 1 - examples/apidoc/RestClient/getInstruments.js | 1 - .../apidoc/RestClient/getInsuranceFund.js | 1 - .../apidoc/RestClient/getInterestAccrued.js | 1 - examples/apidoc/RestClient/getInterestRate.js | 1 - .../RestClient/getInterestRateAndLoanQuota.js | 1 - .../apidoc/RestClient/getInviteeDetail.js | 1 - .../apidoc/RestClient/getLendingAPYHistory.js | 1 - .../apidoc/RestClient/getLendingHistory.js | 1 - .../apidoc/RestClient/getLendingOffers.js | 1 - .../apidoc/RestClient/getLendingOrders.js | 1 - .../apidoc/RestClient/getLendingSubOrders.js | 1 - .../apidoc/RestClient/getLendingVolume.js | 1 - examples/apidoc/RestClient/getLeverage.js | 1 - .../RestClient/getLeverageEstimatedInfo.js | 1 - examples/apidoc/RestClient/getLeverageV2.js | 1 - .../apidoc/RestClient/getLightningDeposits.js | 1 - .../apidoc/RestClient/getLiquidationOrders.js | 1 - .../RestClient/getLongShortContractRatio.js | 1 - .../apidoc/RestClient/getLongShortRatio.js | 1 - examples/apidoc/RestClient/getMMPConfig.js | 1 - .../getManagedSubAccountTransferHistory.js | 1 - .../RestClient/getMarginLendingRatio.js | 1 - examples/apidoc/RestClient/getMarkPrice.js | 1 - .../apidoc/RestClient/getMarkPriceCandles.js | 1 - .../RestClient/getMarkPriceCandlesV2.js | 1 - .../getMaxAvailableTradableAmount.js | 1 - .../apidoc/RestClient/getMaxBuySellAmount.js | 1 - .../apidoc/RestClient/getMaxGridQuantity.js | 1 - examples/apidoc/RestClient/getMaxLoan.js | 1 - .../apidoc/RestClient/getMaxWithdrawals.js | 1 - .../apidoc/RestClient/getMinMaxLimitPrice.js | 1 - .../apidoc/RestClient/getMonthlyStatement.js | 1 - .../apidoc/RestClient/getNonTradableAssets.js | 1 - .../getOneClickRepayCurrencyList.js | 1 - .../RestClient/getOneClickRepayHistory.js | 1 - examples/apidoc/RestClient/getOpenInterest.js | 1 - .../getOpenInterestAndVolumeExpiry.js | 1 - .../getOpenInterestAndVolumeStrike.js | 1 - .../RestClient/getOpenInterestHistory.js | 1 - .../apidoc/RestClient/getOptionMarketData.js | 1 - .../apidoc/RestClient/getOptionTickBands.js | 1 - examples/apidoc/RestClient/getOptionTrades.js | 1 - .../RestClient/getOptionTradesByInstrument.js | 1 - .../getOptionsOpenInterestAndVolume.js | 1 - examples/apidoc/RestClient/getOracle.js | 1 - examples/apidoc/RestClient/getOrderBook.js | 1 - examples/apidoc/RestClient/getOrderDetails.js | 1 - examples/apidoc/RestClient/getOrderHistory.js | 1 - .../RestClient/getOrderHistoryArchive.js | 1 - examples/apidoc/RestClient/getOrderList.js | 1 - examples/apidoc/RestClient/getPMLimitation.js | 1 - .../apidoc/RestClient/getPositionTiers.js | 1 - examples/apidoc/RestClient/getPositions.js | 1 - .../apidoc/RestClient/getPositionsHistory.js | 1 - .../apidoc/RestClient/getPremiumHistory.js | 1 - .../apidoc/RestClient/getPublicBlockTrades.js | 1 - .../RestClient/getPublicBorrowHistory.js | 1 - .../apidoc/RestClient/getPublicBorrowInfo.js | 1 - .../RestClient/getPublicRFQBlockTrades.js | 1 - examples/apidoc/RestClient/getPutCallRatio.js | 1 - .../getQuickMarginBorrowRepayHistory.js | 1 - .../apidoc/RestClient/getQuoteProducts.js | 1 - .../apidoc/RestClient/getRSIBackTesting.js | 1 - .../RestClient/getRecurringBuyOrderDetails.js | 1 - .../RestClient/getRecurringBuyOrderHistory.js | 1 - .../RestClient/getRecurringBuyOrders.js | 1 - .../RestClient/getRecurringBuySubOrders.js | 1 - .../getRequestedBillsHistoryLink.js | 1 - .../apidoc/RestClient/getSavingBalance.js | 1 - .../RestClient/getSignalBotEventHistory.js | 1 - .../apidoc/RestClient/getSignalBotHistory.js | 1 - .../apidoc/RestClient/getSignalBotOrder.js | 1 - .../RestClient/getSignalBotPositionHistory.js | 1 - .../RestClient/getSignalBotPositions.js | 1 - .../RestClient/getSignalBotSubOrders.js | 1 - examples/apidoc/RestClient/getSignals.js | 1 - .../RestClient/getSpreadActiveOrders.js | 1 - .../apidoc/RestClient/getSpreadCandles.js | 1 - .../RestClient/getSpreadHistoryCandles.js | 1 - examples/apidoc/RestClient/getSpreadOrder.js | 1 - .../apidoc/RestClient/getSpreadOrderBook.js | 1 - .../RestClient/getSpreadOrdersArchive.js | 1 - .../RestClient/getSpreadOrdersRecent.js | 1 - .../RestClient/getSpreadPublicTrades.js | 1 - examples/apidoc/RestClient/getSpreadTicker.js | 1 - examples/apidoc/RestClient/getSpreadTrades.js | 1 - examples/apidoc/RestClient/getSpreads.js | 1 - .../apidoc/RestClient/getStakingOffers.js | 1 - .../RestClient/getStakingOrderHistory.js | 1 - .../RestClient/getSubAccountBalances.js | 1 - .../getSubAccountBorrowInterestAndLimit.js | 1 - .../getSubAccountCustodyTradingList.js | 1 - .../getSubAccountFundingBalances.js | 1 - .../apidoc/RestClient/getSubAccountList.js | 1 - .../RestClient/getSubAccountMaxWithdrawal.js | 1 - .../getSubAccountTransferHistory.js | 1 - examples/apidoc/RestClient/getSupportCoin.js | 1 - examples/apidoc/RestClient/getSystemStatus.js | 1 - examples/apidoc/RestClient/getSystemTime.js | 1 - examples/apidoc/RestClient/getTakerFlow.js | 1 - examples/apidoc/RestClient/getTakerVolume.js | 1 - examples/apidoc/RestClient/getTicker.js | 1 - examples/apidoc/RestClient/getTickers.js | 1 - .../RestClient/getTopTradersAccountRatio.js | 1 - .../getTopTradersContractPositionRatio.js | 1 - examples/apidoc/RestClient/getTrades.js | 1 - .../getTransactionDetailsArchiveLink.js | 19 - examples/apidoc/RestClient/getUnderlying.js | 1 - examples/apidoc/RestClient/getUnitConvert.js | 1 - .../RestClient/getVIPInterestAccrued.js | 1 - .../RestClient/getVIPInterestDeducted.js | 1 - .../getVIPInterestRateAndLoanQuota.js | 1 - .../getVIPLoanBorrowRepayHistory.js | 1 - examples/apidoc/RestClient/getVIPLoanOrder.js | 1 - .../apidoc/RestClient/getVIPLoanOrders.js | 1 - .../apidoc/RestClient/getWithdrawalHistory.js | 1 - .../RestClient/instantTriggerGridAlgoOrder.js | 1 - .../apidoc/RestClient/manualBorrowRepay.js | 1 - .../manualRenewFixedLoanBorrowOrder.js | 1 - examples/apidoc/RestClient/placeAlgoOrder.js | 1 - .../apidoc/RestClient/placeGridAlgoOrder.js | 1 - .../apidoc/RestClient/placeLendingOrder.js | 1 - .../RestClient/placeSignalBotSubOrder.js | 1 - examples/apidoc/RestClient/positionBuilder.js | 1 - .../apidoc/RestClient/purchaseETHStaking.js | 1 - .../apidoc/RestClient/redeemETHStaking.js | 1 - examples/apidoc/RestClient/redeemStake.js | 1 - .../RestClient/reduceFixedLoanLiabilities.js | 1 - .../RestClient/repayFixedLoanBorrowOrder.js | 1 - .../requestBillsHistoryDownloadLink.js | 1 - examples/apidoc/RestClient/resetBlockMmp.js | 1 - examples/apidoc/RestClient/resetMMPStatus.js | 1 - .../RestClient/resetSubAccountAPIKey.js | 1 - .../RestClient/savingsPurchaseRedemption.js | 1 - examples/apidoc/RestClient/setAccountMode.js | 1 - examples/apidoc/RestClient/setAutoLoan.js | 1 - examples/apidoc/RestClient/setAutoRepay.js | 1 - .../RestClient/setCopytradingBatchLeverage.js | 1 - .../RestClient/setCopytradingFirstCopy.js | 1 - .../RestClient/setCopytradingInstruments.js | 1 - .../apidoc/RestClient/setGreeksDisplayType.js | 1 - examples/apidoc/RestClient/setIsolatedMode.js | 1 - examples/apidoc/RestClient/setLendingRate.js | 1 - examples/apidoc/RestClient/setLeverage.js | 1 - examples/apidoc/RestClient/setMMPConfig.js | 1 - examples/apidoc/RestClient/setPositionMode.js | 1 - .../apidoc/RestClient/setSignalInstruments.js | 1 - .../RestClient/setSubAccountLoanAllocation.js | 1 - .../setSubAccountTransferOutPermission.js | 1 - .../apidoc/RestClient/smallAssetsConvert.js | 1 - .../RestClient/spotGridWithdrawIncome.js | 1 - .../apidoc/RestClient/stopCopytradingCopy.js | 1 - .../RestClient/stopCopytradingLeadTrading.js | 1 - .../apidoc/RestClient/stopGridAlgoOrder.js | 1 - .../RestClient/stopRecurringBuyOrder.js | 1 - .../RestClient/submitCopytradingAlgoOrder.js | 1 - .../apidoc/RestClient/submitEasyConvert.js | 1 - .../RestClient/submitFixedLoanBorrowOrder.js | 1 - .../apidoc/RestClient/submitMultipleOrders.js | 1 - .../apidoc/RestClient/submitOneClickRepay.js | 1 - examples/apidoc/RestClient/submitOrder.js | 1 - .../apidoc/RestClient/submitOrderPrecheck.js | 1 - .../submitQuickMarginBorrowRepay.js | 1 - .../RestClient/submitRecurringBuyOrder.js | 1 - .../apidoc/RestClient/submitSpreadOrder.js | 1 - examples/apidoc/RestClient/submitStake.js | 1 - examples/apidoc/RestClient/submitWithdraw.js | 1 - .../RestClient/submitWithdrawLightning.js | 1 - .../RestClient/transferSubAccountBalance.js | 1 - .../apidoc/RestClient/updateBlockMmpConfig.js | 1 - .../RestClient/updateBlockQuoteProducts.js | 1 - .../updateCopytradingCopySettings.js | 1 - .../updateCopytradingProfitSharing.js | 1 - .../RestClient/updateFixedLoanBorrowOrder.js | 1 - .../RestClient/updateRiskOffsetAmount.js | 1 - .../apidoc/RestClient/updateRiskOffsetType.js | 1 - .../apidoc/RestClient/updateSignalMargin.js | 1 - .../apidoc/RestClient/updateSignalTPSL.js | 1 - .../apidoc/RestClient/updateSpreadOrder.js | 1 - package-lock.json | 4 +- package.json | 2 +- src/rest-client.ts | 69 ++ 348 files changed, 415 insertions(+), 724 deletions(-) delete mode 100644 examples/apidoc/RestClient/applyTransactionDetailsArchive.js delete mode 100644 examples/apidoc/RestClient/getTransactionDetailsArchiveLink.js diff --git a/.gitignore b/.gitignore index 3f75f21..abd011e 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,5 @@ bundleReport.html .history/ .idea privaterepotracker -restClientRegex.ts \ No newline at end of file +restClientRegex.ts +testfile.ts \ No newline at end of file diff --git a/docs/endpointFunctionList.md b/docs/endpointFunctionList.md index 6e0f8d5..661a82c 100644 --- a/docs/endpointFunctionList.md +++ b/docs/endpointFunctionList.md @@ -48,344 +48,344 @@ This table includes all endpoints from the official Exchange API docs and corres | Function | AUTH | HTTP Method | Endpoint | | -------- | :------: | :------: | -------- | -| [getAccountInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L296) | :closed_lock_with_key: | GET | `/api/v5/account/instruments` | -| [getBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L302) | :closed_lock_with_key: | GET | `/api/v5/account/balance` | -| [getPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L306) | :closed_lock_with_key: | GET | `/api/v5/account/positions` | -| [getPositionsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L310) | :closed_lock_with_key: | GET | `/api/v5/account/positions-history` | -| [getAccountPositionRisk()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L316) | :closed_lock_with_key: | GET | `/api/v5/account/account-position-risk` | -| [getBills()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L325) | :closed_lock_with_key: | GET | `/api/v5/account/bills` | -| [getBillsArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L330) | :closed_lock_with_key: | GET | `/api/v5/account/bills-archive` | -| [requestBillsHistoryDownloadLink()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L343) | :closed_lock_with_key: | POST | `/api/v5/account/bills-history-archive` | -| [getRequestedBillsHistoryLink()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L353) | :closed_lock_with_key: | GET | `/api/v5/account/bills-history-archive` | -| [getAccountConfiguration()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L360) | :closed_lock_with_key: | GET | `/api/v5/account/config` | -| [setPositionMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L364) | :closed_lock_with_key: | POST | `/api/v5/account/set-position-mode` | -| [setLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L368) | :closed_lock_with_key: | POST | `/api/v5/account/set-leverage` | -| [getMaxBuySellAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L373) | :closed_lock_with_key: | GET | `/api/v5/account/max-size` | -| [getMaxAvailableTradableAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L384) | :closed_lock_with_key: | GET | `/api/v5/account/max-avail-size` | -| [changePositionMargin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L394) | :closed_lock_with_key: | POST | `/api/v5/account/position/margin-balance` | -| [getLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L403) | :closed_lock_with_key: | GET | `/api/v5/account/leverage-info` | -| [getLeverageV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L410) | :closed_lock_with_key: | GET | `/api/v5/account/leverage-info` | -| [getLeverageEstimatedInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L418) | :closed_lock_with_key: | GET | `/api/v5/account/adjust-leverage-info` | -| [getMaxLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L429) | :closed_lock_with_key: | GET | `/api/v5/account/max-loan` | -| [getFeeRates()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L445) | :closed_lock_with_key: | GET | `/api/v5/account/trade-fee` | -| [getFeeRatesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L461) | :closed_lock_with_key: | GET | `/api/v5/account/trade-fee` | -| [getInterestAccrued()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L471) | :closed_lock_with_key: | GET | `/api/v5/account/interest-accrued` | -| [getInterestRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L483) | :closed_lock_with_key: | GET | `/api/v5/account/interest-rate` | -| [setGreeksDisplayType()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L487) | :closed_lock_with_key: | POST | `/api/v5/account/set-greeks` | -| [setIsolatedMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L491) | :closed_lock_with_key: | POST | `/api/v5/account/set-isolated-mode` | -| [getMaxWithdrawals()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L501) | :closed_lock_with_key: | GET | `/api/v5/account/max-withdrawal` | -| [getAccountRiskState()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L505) | :closed_lock_with_key: | GET | `/api/v5/account/risk-state` | -| [submitQuickMarginBorrowRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L509) | :closed_lock_with_key: | POST | `/api/v5/account/quick-margin-borrow-repay` | -| [getQuickMarginBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L518) | :closed_lock_with_key: | GET | `/api/v5/account/quick-margin-borrow-repay-history` | -| [borrowRepayVIPLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L527) | :closed_lock_with_key: | POST | `/api/v5/account/borrow-repay` | -| [getVIPLoanBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L541) | :closed_lock_with_key: | GET | `/api/v5/account/borrow-repay-history` | -| [getVIPInterestAccrued()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L545) | :closed_lock_with_key: | GET | `/api/v5/account/vip-interest-accrued` | -| [getVIPInterestDeducted()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L549) | :closed_lock_with_key: | GET | `/api/v5/account/vip-interest-deducted` | -| [getVIPLoanOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L555) | :closed_lock_with_key: | GET | `/api/v5/account/vip-loan-order-list` | -| [getVIPLoanOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L561) | :closed_lock_with_key: | GET | `/api/v5/account/vip-loan-order-detail` | -| [getBorrowInterestLimits()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L567) | :closed_lock_with_key: | GET | `/api/v5/account/interest-limits` | -| [getFixedLoanBorrowLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L574) | :closed_lock_with_key: | GET | `/api/v5/account/fixed-loan/borrowing-limit` | -| [getFixedLoanBorrowQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L578) | :closed_lock_with_key: | GET | `/api/v5/account/fixed-loan/borrowing-quote` | -| [submitFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L587) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/borrowing-order` | -| [updateFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L600) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/amend-borrowing-order` | -| [manualRenewFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L613) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/manual-reborrow` | -| [repayFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L627) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/repay-borrowing-order` | -| [convertFixedLoanToMarketLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L638) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/convert-to-market-loan` | -| [reduceFixedLoanLiabilities()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L649) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/reduce-liabilities` | -| [getFixedLoanBorrowOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L664) | :closed_lock_with_key: | GET | `/api/v5/account/fixed-loan/borrowing-orders-list` | -| [manualBorrowRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L673) | :closed_lock_with_key: | POST | `/api/v5/account/spot-manual-borrow-repay` | -| [setAutoRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L687) | :closed_lock_with_key: | POST | `/api/v5/account/set-auto-repay` | -| [getBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L695) | :closed_lock_with_key: | GET | `/api/v5/account/spot-borrow-repay-history` | -| [positionBuilder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L700) | :closed_lock_with_key: | POST | `/api/v5/account/position-builder` | -| [updateRiskOffsetAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L704) | :closed_lock_with_key: | POST | `/api/v5/account/set-riskOffset-amt` | -| [getGreeks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L716) | :closed_lock_with_key: | GET | `/api/v5/account/greeks` | -| [getPMLimitation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L720) | :closed_lock_with_key: | GET | `/api/v5/account/position-tiers` | -| [updateRiskOffsetType()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L728) | :closed_lock_with_key: | POST | `/api/v5/account/set-riskOffset-type` | -| [activateOption()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L736) | :closed_lock_with_key: | POST | `/api/v5/account/activate-option` | -| [setAutoLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L744) | :closed_lock_with_key: | POST | `/api/v5/account/set-auto-loan` | -| [setAccountMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L748) | :closed_lock_with_key: | POST | `/api/v5/account/set-account-level` | -| [resetMMPStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L754) | :closed_lock_with_key: | POST | `/api/v5/account/mmp-reset` | -| [setMMPConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L762) | :closed_lock_with_key: | POST | `/api/v5/account/mmp-config` | -| [getMMPConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L766) | :closed_lock_with_key: | GET | `/api/v5/account/mmp-config` | -| [submitOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L776) | :closed_lock_with_key: | POST | `/api/v5/trade/order` | -| [submitMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L780) | :closed_lock_with_key: | POST | `/api/v5/trade/batch-orders` | -| [cancelOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L784) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-order` | -| [cancelMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L788) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-batch-orders` | -| [amendOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L794) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-order` | -| [amendMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L798) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-batch-orders` | -| [closePositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L802) | :closed_lock_with_key: | POST | `/api/v5/trade/close-position` | -| [getOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L806) | :closed_lock_with_key: | GET | `/api/v5/trade/order` | -| [getOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L810) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-pending` | -| [getOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L817) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-history` | -| [getOrderHistoryArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L824) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-history-archive` | -| [getFills()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L833) | :closed_lock_with_key: | GET | `/api/v5/trade/fills` | -| [getFillsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L840) | :closed_lock_with_key: | GET | `/api/v5/trade/fills-history` | -| [getEasyConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L845) | :closed_lock_with_key: | GET | `/api/v5/trade/easy-convert-currency-list` | -| [submitEasyConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L856) | :closed_lock_with_key: | POST | `/api/v5/trade/easy-convert` | -| [getEasyConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L867) | :closed_lock_with_key: | GET | `/api/v5/trade/easy-convert-history` | -| [getOneClickRepayCurrencyList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L875) | :closed_lock_with_key: | GET | `/api/v5/trade/one-click-repay-currency-list` | -| [submitOneClickRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L888) | :closed_lock_with_key: | POST | `/api/v5/trade/one-click-repay` | -| [getOneClickRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L899) | :closed_lock_with_key: | GET | `/api/v5/trade/one-click-repay-history` | -| [cancelMassOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L903) | :closed_lock_with_key: | POST | `/api/v5/trade/mass-cancel` | -| [cancelAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L915) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-all-after` | -| [getAccountRateLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L922) | :closed_lock_with_key: | GET | `/api/v5/trade/account-rate-limit` | -| [submitOrderPrecheck()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L926) | :closed_lock_with_key: | POST | `/api/v5/trade/order-precheck` | -| [placeAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L936) | :closed_lock_with_key: | POST | `/api/v5/trade/order-algo` | -| [cancelAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L940) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-algos` | -| [amendAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L946) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-algos` | -| [cancelAdvanceAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L952) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-advance-algos` | -| [getAlgoOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L958) | :closed_lock_with_key: | GET | `/api/v5/trade/order-algo` | -| [getAlgoOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L964) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-pending` | -| [getAlgoOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L970) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-history` | -| [placeGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L982) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/order-algo` | -| [amendGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L986) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/amend-order-algo` | -| [stopGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L998) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/stop-order-algo` | -| [closeGridContractPosition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1002) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/close-position` | -| [cancelGridContractCloseOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1008) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/cancel-close-order` | -| [instantTriggerGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1018) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/order-instant-trigger` | -| [getGridAlgoOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1030) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/orders-algo-pending` | -| [getGridAlgoOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1037) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/orders-algo-history` | -| [getGridAlgoOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1044) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/orders-algo-details` | -| [getGridAlgoSubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1054) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/sub-orders` | -| [getGridAlgoOrderPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1075) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/positions` | -| [spotGridWithdrawIncome()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1085) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/withdraw-income` | -| [computeGridMarginBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1091) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/compute-margin-balance` | -| [adjustGridMarginBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1103) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/margin-balance` | -| [adjustGridInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1115) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/adjust-investment` | -| [getGridAIParameter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1126) | | GET | `/api/v5/tradingBot/grid/ai-param` | -| [computeGridMinInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1140) | | POST | `/api/v5/tradingBot/grid/min-investment` | -| [getRSIBackTesting()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1147) | | GET | `/api/v5/tradingBot/public/rsi-back-testing` | -| [getMaxGridQuantity()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1155) | | GET | `/api/v5/tradingBot/grid/grid-quantity` | -| [createSignal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1169) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/create-signal` | -| [getSignals()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1173) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/signals` | -| [createSignalBot()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1177) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/order-algo` | -| [cancelSignalBots()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1183) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/stop-order-algo` | -| [updateSignalMargin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1192) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/margin-balance` | -| [updateSignalTPSL()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1200) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/amendTPSL` | -| [setSignalInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1208) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/set-instruments` | -| [getSignalBotOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1219) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/orders-algo-details` | -| [getActiveSignalBot()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1229) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/orders-algo-details` | -| [getSignalBotHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1236) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/orders-algo-history` | -| [getSignalBotPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1243) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions` | -| [getSignalBotPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1250) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions-history` | -| [closeSignalBotPosition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1259) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/close-position` | -| [placeSignalBotSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1267) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/sub-order` | -| [cancelSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1271) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/cancel-sub-order` | -| [getSignalBotSubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1278) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/sub-orders` | -| [getSignalBotEventHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1282) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/event-history` | -| [submitRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1294) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/order-algo` | -| [amendRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1300) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/amend-order-algo` | -| [stopRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1309) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/stop-order-algo` | -| [getRecurringBuyOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1318) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/orders-algo-pending` | -| [getRecurringBuyOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1327) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/orders-algo-history` | -| [getRecurringBuyOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1336) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/orders-algo-details` | -| [getRecurringBuySubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1345) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/sub-orders` | -| [getCopytradingSubpositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1357) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-subpositions` | -| [getCopytradingSubpositionsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1363) | :closed_lock_with_key: | GET | `/api/v5/copytrading/subpositions-history` | -| [submitCopytradingAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1369) | :closed_lock_with_key: | POST | `/api/v5/copytrading/algo-order` | -| [closeCopytradingSubposition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1375) | :closed_lock_with_key: | POST | `/api/v5/copytrading/close-subposition` | -| [getCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1384) | :closed_lock_with_key: | GET | `/api/v5/copytrading/instruments` | -| [setCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1393) | :closed_lock_with_key: | POST | `/api/v5/copytrading/set-instruments` | -| [getCopytradingProfitDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1405) | :closed_lock_with_key: | GET | `/api/v5/copytrading/profit-sharing-details` | -| [getCopytradingTotalProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1414) | :closed_lock_with_key: | GET | `/api/v5/copytrading/total-profit-sharing` | -| [getCopytradingUnrealizedProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1420) | :closed_lock_with_key: | GET | `/api/v5/copytrading/unrealized-profit-sharing-details` | -| [getCopytradingTotalUnrealizedProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1429) | :closed_lock_with_key: | GET | `/api/v5/copytrading/total-unrealized-profit-sharing` | -| [applyCopytradingLeadTrading()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1441) | :closed_lock_with_key: | POST | `/api/v5/copytrading/apply-lead-trading` | -| [stopCopytradingLeadTrading()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1452) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-lead-trading` | -| [updateCopytradingProfitSharing()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1460) | :closed_lock_with_key: | POST | `/api/v5/copytrading/amend-profit-sharing-ratio` | -| [getCopytradingAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1474) | :closed_lock_with_key: | GET | `/api/v5/copytrading/config` | -| [setCopytradingFirstCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1478) | :closed_lock_with_key: | POST | `/api/v5/copytrading/first-copy-settings` | -| [updateCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1486) | :closed_lock_with_key: | POST | `/api/v5/copytrading/amend-copy-settings` | -| [stopCopytradingCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1494) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-copy-trading` | -| [getCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1506) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-settings` | -| [getCopytradingBatchLeverageInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1513) | :closed_lock_with_key: | GET | `/api/v5/copytrading/batch-leverage-info` | -| [setCopytradingBatchLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1519) | :closed_lock_with_key: | POST | `/api/v5/copytrading/batch-set-leverage` | -| [getCopytradingMyLeadTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1525) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-lead-traders` | -| [getCopytradingLeadTradersHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1531) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders-history` | -| [getCopytradingConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1537) | | GET | `/api/v5/copytrading/public-config` | -| [getCopytradingLeadRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1543) | | GET | `/api/v5/copytrading/public-lead-traders` | -| [getCopytradingLeadWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1549) | | GET | `/api/v5/copytrading/public-weekly-pnl` | -| [getCopytradingLeadDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1556) | | GET | `/api/v5/copytrading/public-pnl` | -| [getCopytradingLeadStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1562) | | GET | `/api/v5/copytrading/public-stats` | -| [getCopytradingLeadPreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1568) | | GET | `/api/v5/copytrading/public-preference-currency` | -| [getCopytradingLeadOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1575) | | GET | `/api/v5/copytrading/public-current-subpositions` | -| [getCopytradingLeadPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1581) | | GET | `/api/v5/copytrading/public-subpositions-history` | -| [getCopyTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1587) | | GET | `/api/v5/copytrading/public-copy-traders` | -| [getCopytradingLeadPrivateRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1593) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders` | -| [getCopytradingLeadPrivateWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1599) | :closed_lock_with_key: | GET | `/api/v5/copytrading/weekly-pnl` | -| [getCopytradingPLeadPrivateDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1606) | :closed_lock_with_key: | GET | `/api/v5/copytrading/pnl` | -| [geCopytradingLeadPrivateStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1612) | :closed_lock_with_key: | GET | `/api/v5/copytrading/stats` | -| [getCopytradingLeadPrivatePreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1618) | :closed_lock_with_key: | GET | `/api/v5/copytrading/preference-currency` | -| [getCopytradingLeadPrivateOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1625) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-current-subpositions` | -| [getCopytradingLeadPrivatePositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1634) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-subpositions-history` | -| [getCopyTradersPrivate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1643) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-traders` | -| [getTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1655) | | GET | `/api/v5/market/tickers` | -| [getTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1662) | | GET | `/api/v5/market/ticker` | -| [getOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1668) | | GET | `/api/v5/market/books` | -| [getFullOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1672) | | GET | `/api/v5/market/books-full` | -| [getCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1687) | | GET | `/api/v5/market/candles` | -| [getCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1699) | | GET | `/api/v5/market/candles` | -| [getHistoricCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1711) | | GET | `/api/v5/market/history-candles` | -| [getHistoricCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1723) | | GET | `/api/v5/market/history-candles` | -| [getTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1727) | | GET | `/api/v5/market/trades` | -| [getHistoricTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1731) | | GET | `/api/v5/market/history-trades` | -| [getOptionTradesByInstrument()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1743) | | GET | `/api/v5/market/option/instrument-family-trades` | -| [getOptionTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1749) | | GET | `/api/v5/public/option-trades` | -| [get24hrTotalVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1753) | | GET | `/api/v5/market/platform-24-volume` | -| [getBlockCounterParties()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1763) | :closed_lock_with_key: | GET | `/api/v5/rfq/counterparties` | -| [createBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1767) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-rfq` | -| [cancelBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1771) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-rfq` | -| [cancelMultipleBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1777) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-rfqs` | -| [cancelAllRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1783) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-rfqs` | -| [executeBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1787) | :closed_lock_with_key: | POST | `/api/v5/rfq/execute-quote` | -| [getQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1793) | :closed_lock_with_key: | GET | `/api/v5/rfq/maker-instrument-settings` | -| [updateBlockQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1797) | :closed_lock_with_key: | POST | `/api/v5/rfq/maker-instrument-settings` | -| [resetBlockMmp()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1805) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-reset` | -| [updateBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1813) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-config` | -| [getBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1819) | :closed_lock_with_key: | GET | `/api/v5/rfq/mmp-config` | -| [createBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1822) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-quote` | -| [cancelBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1828) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-quote` | -| [cancelMultipleBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1834) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-quotes` | -| [cancelAllBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1840) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-quotes` | -| [cancelAllBlockAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1844) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-after` | -| [getBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1853) | :closed_lock_with_key: | GET | `/api/v5/rfq/rfqs` | -| [getBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1857) | :closed_lock_with_key: | GET | `/api/v5/rfq/quotes` | -| [getBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1861) | :closed_lock_with_key: | GET | `/api/v5/rfq/trades` | -| [getPublicRFQBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1865) | | GET | `/api/v5/rfq/public-trades` | -| [getBlockTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1869) | | GET | `/api/v5/market/block-tickers` | -| [getBlockTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1873) | | GET | `/api/v5/market/block-ticker` | -| [getBlockPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1877) | | GET | `/api/v5/public/block-trades` | -| [submitSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1889) | :closed_lock_with_key: | POST | `/api/v5/sprd/order` | -| [cancelSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1895) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-order` | -| [cancelAllSpreadOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1902) | :closed_lock_with_key: | POST | `/api/v5/sprd/mass-cancel` | -| [updateSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1910) | :closed_lock_with_key: | POST | `/api/v5/sprd/amend-order` | -| [getSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1916) | :closed_lock_with_key: | GET | `/api/v5/sprd/order` | -| [getSpreadActiveOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1923) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-pending` | -| [getSpreadOrdersRecent()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1929) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history` | -| [getSpreadOrdersArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1935) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history-archive` | -| [getSpreadTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1941) | :closed_lock_with_key: | GET | `/api/v5/sprd/trades` | -| [getSpreads()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1945) | | GET | `/api/v5/sprd/spreads` | -| [getSpreadOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1949) | | GET | `/api/v5/sprd/books` | -| [getSpreadTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1956) | | GET | `/api/v5/market/sprd-ticker` | -| [getSpreadPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1960) | | GET | `/api/v5/sprd/public-trades` | -| [getSpreadCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1966) | | GET | `/api/v5/market/sprd-candles` | -| [getSpreadHistoryCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1970) | | GET | `/api/v5/market/sprd-history-candles` | -| [cancelSpreadAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1976) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-all-after` | -| [getInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1991) | | GET | `/api/v5/public/instruments` | -| [getDeliveryExerciseHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2005) | | GET | `/api/v5/public/delivery-exercise-history` | -| [getOpenInterest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2009) | | GET | `/api/v5/public/open-interest` | -| [getFundingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2013) | | GET | `/api/v5/public/funding-rate` | -| [getFundingRateHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2017) | | GET | `/api/v5/public/funding-rate-history` | -| [getMinMaxLimitPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2021) | | GET | `/api/v5/public/price-limit` | -| [getOptionMarketData()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2025) | | GET | `/api/v5/public/opt-summary` | -| [getEstimatedDeliveryExercisePrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2029) | | GET | `/api/v5/public/estimated-price` | -| [getDiscountRateAndInterestFreeQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2033) | | GET | `/api/v5/public/discount-rate-interest-free-quota` | -| [getSystemTime()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2037) | | GET | `/api/v5/public/time` | -| [getMarkPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2041) | | GET | `/api/v5/public/mark-price` | -| [getPositionTiers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2045) | | GET | `/api/v5/public/position-tiers` | -| [getInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2049) | | GET | `/api/v5/public/interest-rate-loan-quota` | -| [getVIPInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2053) | | GET | `/api/v5/public/vip-interest-rate-loan-quota` | -| [getUnderlying()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2057) | | GET | `/api/v5/public/underlying` | -| [getInsuranceFund()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2061) | | GET | `/api/v5/public/insurance-fund` | -| [getUnitConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2065) | | GET | `/api/v5/public/convert-contract-coin` | -| [getOptionTickBands()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2069) | | GET | `/api/v5/public/instrument-tick-bands` | -| [getPremiumHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2076) | | GET | `/api/v5/public/premium-history` | -| [getIndexTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2080) | | GET | `/api/v5/market/index-tickers` | -| [getIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2095) | | GET | `/api/v5/market/index-candles` | -| [getIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2107) | | GET | `/api/v5/market/index-candles` | -| [getHistoricIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2119) | | GET | `/api/v5/market/history-index-candles` | -| [getHistoricIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2131) | | GET | `/api/v5/market/history-index-candles` | -| [getMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2143) | | GET | `/api/v5/market/mark-price-candles` | -| [getMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2155) | | GET | `/api/v5/market/mark-price-candles` | -| [getHistoricMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2167) | | GET | `/api/v5/market/historic-mark-price-candles` | -| [getHistoricMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2179) | | GET | `/api/v5/market/history-mark-price-candles` | -| [getOracle()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2185) | | GET | `/api/v5/market/open-oracle` | -| [getExchangeRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2189) | | GET | `/api/v5/market/exchange-rate` | -| [getIndexComponents()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2193) | | GET | `/api/v5/market/index-components` | -| [getEconomicCalendar()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2197) | :closed_lock_with_key: | GET | `/api/v5/public/economic-calendar` | -| [getPublicBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2206) | | GET | `/api/v5/market/block-trades` | -| [getLiquidationOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2213) | | GET | `/api/v5/public/liquidation-orders` | -| [getSupportCoin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2223) | | GET | `/api/v5/rubik/stat/trading-data/support-coin` | -| [getOpenInterestHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2227) | | GET | `/api/v5/rubik/stat/contracts/open-interest-history` | -| [getTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2236) | | GET | `/api/v5/rubik/stat/taker-volume` | -| [getContractTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2246) | | GET | `/api/v5/rubik/stat/taker-volume-contract` | -| [getMarginLendingRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2252) | | GET | `/api/v5/rubik/stat/margin/loan-ratio` | -| [getTopTradersAccountRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2261) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio-contract-top-trader` | -| [getTopTradersContractPositionRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2270) | | GET | `/api/v5/rubik/stat/contracts/long-short-position-ratio-contract-top-trader` | -| [getLongShortContractRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2279) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio-contract` | -| [getLongShortRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2288) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio` | -| [getContractsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2300) | | GET | `/api/v5/rubik/stat/contracts/open-interest-volume` | -| [getOptionsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2312) | | GET | `/api/v5/rubik/stat/option/open-interest-volume` | -| [getPutCallRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2319) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-ratio` | -| [getOpenInterestAndVolumeExpiry()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2329) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-expiry` | -| [getOpenInterestAndVolumeStrike()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2339) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-strike` | -| [getTakerFlow()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2350) | | GET | `/api/v5/rubik/stat/option/taker-block-volume` | -| [getCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2360) | :closed_lock_with_key: | GET | `/api/v5/asset/currencies` | -| [getBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2364) | :closed_lock_with_key: | GET | `/api/v5/asset/balances` | -| [getNonTradableAssets()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2368) | :closed_lock_with_key: | GET | `/api/v5/asset/non-tradable-assets` | -| [getAccountAssetValuation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2372) | :closed_lock_with_key: | GET | `/api/v5/asset/asset-valuation` | -| [fundsTransfer()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2376) | :closed_lock_with_key: | POST | `/api/v5/asset/transfer` | -| [getFundsTransferState()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2381) | :closed_lock_with_key: | GET | `/api/v5/asset/transfer-state` | -| [getAssetBillsDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2389) | :closed_lock_with_key: | GET | `/api/v5/asset/bills` | -| [getLightningDeposits()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2400) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-lightning` | -| [getDepositAddress()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2408) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-address` | -| [getDepositHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2412) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-history` | -| [submitWithdraw()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2416) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal` | -| [submitWithdrawLightning()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2420) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal-lightning` | -| [cancelWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2432) | :closed_lock_with_key: | POST | `/api/v5/asset/cancel-withdrawal` | -| [getWithdrawalHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2436) | :closed_lock_with_key: | GET | `/api/v5/asset/withdrawal-history` | -| [getDepositWithdrawStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2440) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-withdraw-status` | -| [smallAssetsConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2446) | :closed_lock_with_key: | POST | `/api/v5/asset/convert-dust-assets` | -| [getExchanges()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2450) | | GET | `/api/v5/asset/exchange-list` | -| [applyForMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2454) | :closed_lock_with_key: | POST | `/api/v5/asset/monthly-statement` | -| [getMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2458) | :closed_lock_with_key: | GET | `/api/v5/asset/monthly-statement` | -| [getConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2462) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currencies` | -| [getConvertCurrencyPair()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2466) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currency-pair` | -| [estimateConvertQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2473) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/estimate-quote` | -| [convertTrade()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2477) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/trade` | -| [getConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2481) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/history` | -| [getSubAccountList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2492) | :closed_lock_with_key: | GET | `/api/v5/users/subaccount/list` | -| [resetSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2497) | :closed_lock_with_key: | POST | `/api/v5/users/subaccount/modify-apikey` | -| [getSubAccountBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2514) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/balances` | -| [getSubAccountFundingBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2519) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/balances` | -| [getSubAccountMaxWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2529) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/max-withdrawal` | -| [getSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2536) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/bills` | -| [getManagedSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2547) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/managed-subaccount-bills` | -| [transferSubAccountBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2557) | :closed_lock_with_key: | POST | `/api/v5/asset/subaccount/transfer` | -| [setSubAccountTransferOutPermission()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2564) | :closed_lock_with_key: | POST | `/api/v5/users/subaccount/set-transfer-out` | -| [getSubAccountCustodyTradingList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2575) | :closed_lock_with_key: | GET | `/api/v5/users/entrust-subaccount-list` | -| [setSubAccountLoanAllocation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2581) | :closed_lock_with_key: | POST | `/api/v5/account/subaccount/set-loan-allocation` | -| [getSubAccountBorrowInterestAndLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2594) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/interest-limits` | -| [getStakingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2611) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/offers` | -| [submitStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2620) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/purchase` | -| [redeemStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2636) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/redeem` | -| [cancelStakingRequest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2649) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/cancel` | -| [getActiveStakingOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2660) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/orders-active` | -| [getStakingOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2673) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/orders-history` | -| [purchaseETHStaking()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2693) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/eth/purchase` | -| [redeemETHStaking()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2700) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/eth/redeem` | -| [getETHStakingBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2704) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/eth/balance` | -| [getETHStakingHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2708) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/eth/purchase-redeem-history` | -| [getAPYHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2721) | | GET | `/api/v5/finance/staking-defi/eth/apy-history` | -| [getSavingBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2731) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/balance` | -| [savingsPurchaseRedemption()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2735) | :closed_lock_with_key: | POST | `/api/v5/finance/savings/purchase-redempt` | -| [setLendingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2749) | :closed_lock_with_key: | POST | `/api/v5/finance/savings/set-lending-rate` | -| [getLendingHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2756) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/lending-history` | -| [getPublicBorrowInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2760) | | GET | `/api/v5/finance/savings/lending-rate-summary` | -| [getPublicBorrowHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2764) | | GET | `/api/v5/finance/savings/lending-rate-history` | -| [getLendingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2774) | | GET | `/api/v5/finance/fixed-loan/lending-offers` | -| [getLendingAPYHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2778) | | GET | `/api/v5/finance/fixed-loan/lending-apy-history` | -| [getLendingVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2782) | | GET | `/api/v5/finance/fixed-loan/pending-lending-volume` | -| [placeLendingOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2789) | :closed_lock_with_key: | POST | `/api/v5/finance/fixed-loan/lending-order` | -| [amendLendingOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2793) | :closed_lock_with_key: | POST | `/api/v5/finance/fixed-loan/lending-order` | -| [getLendingOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2797) | :closed_lock_with_key: | GET | `/api/v5/finance/fixed-loan/lending-orders-list` | -| [getLendingSubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2804) | :closed_lock_with_key: | GET | `/api/v5/finance/fixed-loan/lending-sub-orders` | -| [getInviteeDetail()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2817) | :closed_lock_with_key: | GET | `/api/v5/affiliate/invitee/detail` | -| [getAffiliateRebateInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2821) | :closed_lock_with_key: | GET | `/api/v5/users/partner/if-rebate` | -| [getSystemStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2831) | | GET | `/api/v5/system/status` | -| [getAnnouncements()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2843) | | GET | `/api/v5/support/announcements` | -| [getAnnouncementTypes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2852) | | GET | `/api/v5/support/announcement-types` | -| [getBrokerAccountInformation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2871) | :closed_lock_with_key: | GET | `/api/v5/broker/nd/info` | -| [createSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2875) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/create-subaccount` | -| [deleteSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2884) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/delete-subaccount` | -| [createSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2888) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/subaccount/apikey` | \ No newline at end of file +| [getAccountInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L365) | :closed_lock_with_key: | GET | `/api/v5/account/instruments` | +| [getBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L371) | :closed_lock_with_key: | GET | `/api/v5/account/balance` | +| [getPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L375) | :closed_lock_with_key: | GET | `/api/v5/account/positions` | +| [getPositionsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L379) | :closed_lock_with_key: | GET | `/api/v5/account/positions-history` | +| [getAccountPositionRisk()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L385) | :closed_lock_with_key: | GET | `/api/v5/account/account-position-risk` | +| [getBills()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L394) | :closed_lock_with_key: | GET | `/api/v5/account/bills` | +| [getBillsArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L399) | :closed_lock_with_key: | GET | `/api/v5/account/bills-archive` | +| [requestBillsHistoryDownloadLink()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L412) | :closed_lock_with_key: | POST | `/api/v5/account/bills-history-archive` | +| [getRequestedBillsHistoryLink()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L422) | :closed_lock_with_key: | GET | `/api/v5/account/bills-history-archive` | +| [getAccountConfiguration()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L429) | :closed_lock_with_key: | GET | `/api/v5/account/config` | +| [setPositionMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L433) | :closed_lock_with_key: | POST | `/api/v5/account/set-position-mode` | +| [setLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L437) | :closed_lock_with_key: | POST | `/api/v5/account/set-leverage` | +| [getMaxBuySellAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L442) | :closed_lock_with_key: | GET | `/api/v5/account/max-size` | +| [getMaxAvailableTradableAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L453) | :closed_lock_with_key: | GET | `/api/v5/account/max-avail-size` | +| [changePositionMargin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L463) | :closed_lock_with_key: | POST | `/api/v5/account/position/margin-balance` | +| [getLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L472) | :closed_lock_with_key: | GET | `/api/v5/account/leverage-info` | +| [getLeverageV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L479) | :closed_lock_with_key: | GET | `/api/v5/account/leverage-info` | +| [getLeverageEstimatedInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L487) | :closed_lock_with_key: | GET | `/api/v5/account/adjust-leverage-info` | +| [getMaxLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L498) | :closed_lock_with_key: | GET | `/api/v5/account/max-loan` | +| [getFeeRates()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L514) | :closed_lock_with_key: | GET | `/api/v5/account/trade-fee` | +| [getFeeRatesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L530) | :closed_lock_with_key: | GET | `/api/v5/account/trade-fee` | +| [getInterestAccrued()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L540) | :closed_lock_with_key: | GET | `/api/v5/account/interest-accrued` | +| [getInterestRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L552) | :closed_lock_with_key: | GET | `/api/v5/account/interest-rate` | +| [setGreeksDisplayType()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L556) | :closed_lock_with_key: | POST | `/api/v5/account/set-greeks` | +| [setIsolatedMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L560) | :closed_lock_with_key: | POST | `/api/v5/account/set-isolated-mode` | +| [getMaxWithdrawals()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L570) | :closed_lock_with_key: | GET | `/api/v5/account/max-withdrawal` | +| [getAccountRiskState()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L574) | :closed_lock_with_key: | GET | `/api/v5/account/risk-state` | +| [submitQuickMarginBorrowRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L578) | :closed_lock_with_key: | POST | `/api/v5/account/quick-margin-borrow-repay` | +| [getQuickMarginBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L587) | :closed_lock_with_key: | GET | `/api/v5/account/quick-margin-borrow-repay-history` | +| [borrowRepayVIPLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L596) | :closed_lock_with_key: | POST | `/api/v5/account/borrow-repay` | +| [getVIPLoanBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L610) | :closed_lock_with_key: | GET | `/api/v5/account/borrow-repay-history` | +| [getVIPInterestAccrued()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L614) | :closed_lock_with_key: | GET | `/api/v5/account/vip-interest-accrued` | +| [getVIPInterestDeducted()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L618) | :closed_lock_with_key: | GET | `/api/v5/account/vip-interest-deducted` | +| [getVIPLoanOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L624) | :closed_lock_with_key: | GET | `/api/v5/account/vip-loan-order-list` | +| [getVIPLoanOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L630) | :closed_lock_with_key: | GET | `/api/v5/account/vip-loan-order-detail` | +| [getBorrowInterestLimits()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L636) | :closed_lock_with_key: | GET | `/api/v5/account/interest-limits` | +| [getFixedLoanBorrowLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L643) | :closed_lock_with_key: | GET | `/api/v5/account/fixed-loan/borrowing-limit` | +| [getFixedLoanBorrowQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L647) | :closed_lock_with_key: | GET | `/api/v5/account/fixed-loan/borrowing-quote` | +| [submitFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L656) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/borrowing-order` | +| [updateFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L669) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/amend-borrowing-order` | +| [manualRenewFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L682) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/manual-reborrow` | +| [repayFixedLoanBorrowOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L696) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/repay-borrowing-order` | +| [convertFixedLoanToMarketLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L707) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/convert-to-market-loan` | +| [reduceFixedLoanLiabilities()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L718) | :closed_lock_with_key: | POST | `/api/v5/account/fixed-loan/reduce-liabilities` | +| [getFixedLoanBorrowOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L733) | :closed_lock_with_key: | GET | `/api/v5/account/fixed-loan/borrowing-orders-list` | +| [manualBorrowRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L742) | :closed_lock_with_key: | POST | `/api/v5/account/spot-manual-borrow-repay` | +| [setAutoRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L756) | :closed_lock_with_key: | POST | `/api/v5/account/set-auto-repay` | +| [getBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L764) | :closed_lock_with_key: | GET | `/api/v5/account/spot-borrow-repay-history` | +| [positionBuilder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L769) | :closed_lock_with_key: | POST | `/api/v5/account/position-builder` | +| [updateRiskOffsetAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L773) | :closed_lock_with_key: | POST | `/api/v5/account/set-riskOffset-amt` | +| [getGreeks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L785) | :closed_lock_with_key: | GET | `/api/v5/account/greeks` | +| [getPMLimitation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L789) | :closed_lock_with_key: | GET | `/api/v5/account/position-tiers` | +| [updateRiskOffsetType()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L797) | :closed_lock_with_key: | POST | `/api/v5/account/set-riskOffset-type` | +| [activateOption()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L805) | :closed_lock_with_key: | POST | `/api/v5/account/activate-option` | +| [setAutoLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L813) | :closed_lock_with_key: | POST | `/api/v5/account/set-auto-loan` | +| [setAccountMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L817) | :closed_lock_with_key: | POST | `/api/v5/account/set-account-level` | +| [resetMMPStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L823) | :closed_lock_with_key: | POST | `/api/v5/account/mmp-reset` | +| [setMMPConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L831) | :closed_lock_with_key: | POST | `/api/v5/account/mmp-config` | +| [getMMPConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L835) | :closed_lock_with_key: | GET | `/api/v5/account/mmp-config` | +| [submitOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L845) | :closed_lock_with_key: | POST | `/api/v5/trade/order` | +| [submitMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L849) | :closed_lock_with_key: | POST | `/api/v5/trade/batch-orders` | +| [cancelOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L853) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-order` | +| [cancelMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L857) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-batch-orders` | +| [amendOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L863) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-order` | +| [amendMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L867) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-batch-orders` | +| [closePositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L871) | :closed_lock_with_key: | POST | `/api/v5/trade/close-position` | +| [getOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L875) | :closed_lock_with_key: | GET | `/api/v5/trade/order` | +| [getOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L879) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-pending` | +| [getOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L886) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-history` | +| [getOrderHistoryArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L893) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-history-archive` | +| [getFills()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L902) | :closed_lock_with_key: | GET | `/api/v5/trade/fills` | +| [getFillsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L909) | :closed_lock_with_key: | GET | `/api/v5/trade/fills-history` | +| [getEasyConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L914) | :closed_lock_with_key: | GET | `/api/v5/trade/easy-convert-currency-list` | +| [submitEasyConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L925) | :closed_lock_with_key: | POST | `/api/v5/trade/easy-convert` | +| [getEasyConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L936) | :closed_lock_with_key: | GET | `/api/v5/trade/easy-convert-history` | +| [getOneClickRepayCurrencyList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L944) | :closed_lock_with_key: | GET | `/api/v5/trade/one-click-repay-currency-list` | +| [submitOneClickRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L957) | :closed_lock_with_key: | POST | `/api/v5/trade/one-click-repay` | +| [getOneClickRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L968) | :closed_lock_with_key: | GET | `/api/v5/trade/one-click-repay-history` | +| [cancelMassOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L972) | :closed_lock_with_key: | POST | `/api/v5/trade/mass-cancel` | +| [cancelAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L984) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-all-after` | +| [getAccountRateLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L991) | :closed_lock_with_key: | GET | `/api/v5/trade/account-rate-limit` | +| [submitOrderPrecheck()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L995) | :closed_lock_with_key: | POST | `/api/v5/trade/order-precheck` | +| [placeAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1005) | :closed_lock_with_key: | POST | `/api/v5/trade/order-algo` | +| [cancelAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1009) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-algos` | +| [amendAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1015) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-algos` | +| [cancelAdvanceAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1021) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-advance-algos` | +| [getAlgoOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1027) | :closed_lock_with_key: | GET | `/api/v5/trade/order-algo` | +| [getAlgoOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1033) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-pending` | +| [getAlgoOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1039) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-history` | +| [placeGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1051) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/order-algo` | +| [amendGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1055) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/amend-order-algo` | +| [stopGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1067) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/stop-order-algo` | +| [closeGridContractPosition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1071) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/close-position` | +| [cancelGridContractCloseOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1077) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/cancel-close-order` | +| [instantTriggerGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1087) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/order-instant-trigger` | +| [getGridAlgoOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1099) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/orders-algo-pending` | +| [getGridAlgoOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1106) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/orders-algo-history` | +| [getGridAlgoOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1113) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/orders-algo-details` | +| [getGridAlgoSubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1123) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/sub-orders` | +| [getGridAlgoOrderPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1144) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/positions` | +| [spotGridWithdrawIncome()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1154) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/withdraw-income` | +| [computeGridMarginBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1160) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/compute-margin-balance` | +| [adjustGridMarginBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1172) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/margin-balance` | +| [adjustGridInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1184) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/adjust-investment` | +| [getGridAIParameter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1195) | | GET | `/api/v5/tradingBot/grid/ai-param` | +| [computeGridMinInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1209) | | POST | `/api/v5/tradingBot/grid/min-investment` | +| [getRSIBackTesting()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1216) | | GET | `/api/v5/tradingBot/public/rsi-back-testing` | +| [getMaxGridQuantity()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1224) | | GET | `/api/v5/tradingBot/grid/grid-quantity` | +| [createSignal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1238) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/create-signal` | +| [getSignals()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1242) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/signals` | +| [createSignalBot()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1246) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/order-algo` | +| [cancelSignalBots()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1252) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/stop-order-algo` | +| [updateSignalMargin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1261) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/margin-balance` | +| [updateSignalTPSL()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1269) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/amendTPSL` | +| [setSignalInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1277) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/set-instruments` | +| [getSignalBotOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1288) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/orders-algo-details` | +| [getActiveSignalBot()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1298) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/orders-algo-details` | +| [getSignalBotHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1305) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/orders-algo-history` | +| [getSignalBotPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1312) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions` | +| [getSignalBotPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1319) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions-history` | +| [closeSignalBotPosition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1328) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/close-position` | +| [placeSignalBotSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1336) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/sub-order` | +| [cancelSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1340) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/cancel-sub-order` | +| [getSignalBotSubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1347) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/sub-orders` | +| [getSignalBotEventHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1351) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/event-history` | +| [submitRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1363) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/order-algo` | +| [amendRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1369) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/amend-order-algo` | +| [stopRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1378) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/stop-order-algo` | +| [getRecurringBuyOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1387) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/orders-algo-pending` | +| [getRecurringBuyOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1396) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/orders-algo-history` | +| [getRecurringBuyOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1405) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/orders-algo-details` | +| [getRecurringBuySubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1414) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/sub-orders` | +| [getCopytradingSubpositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1426) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-subpositions` | +| [getCopytradingSubpositionsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1432) | :closed_lock_with_key: | GET | `/api/v5/copytrading/subpositions-history` | +| [submitCopytradingAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1438) | :closed_lock_with_key: | POST | `/api/v5/copytrading/algo-order` | +| [closeCopytradingSubposition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1444) | :closed_lock_with_key: | POST | `/api/v5/copytrading/close-subposition` | +| [getCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1453) | :closed_lock_with_key: | GET | `/api/v5/copytrading/instruments` | +| [setCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1462) | :closed_lock_with_key: | POST | `/api/v5/copytrading/set-instruments` | +| [getCopytradingProfitDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1474) | :closed_lock_with_key: | GET | `/api/v5/copytrading/profit-sharing-details` | +| [getCopytradingTotalProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1483) | :closed_lock_with_key: | GET | `/api/v5/copytrading/total-profit-sharing` | +| [getCopytradingUnrealizedProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1489) | :closed_lock_with_key: | GET | `/api/v5/copytrading/unrealized-profit-sharing-details` | +| [getCopytradingTotalUnrealizedProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1498) | :closed_lock_with_key: | GET | `/api/v5/copytrading/total-unrealized-profit-sharing` | +| [applyCopytradingLeadTrading()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1510) | :closed_lock_with_key: | POST | `/api/v5/copytrading/apply-lead-trading` | +| [stopCopytradingLeadTrading()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1521) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-lead-trading` | +| [updateCopytradingProfitSharing()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1529) | :closed_lock_with_key: | POST | `/api/v5/copytrading/amend-profit-sharing-ratio` | +| [getCopytradingAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1543) | :closed_lock_with_key: | GET | `/api/v5/copytrading/config` | +| [setCopytradingFirstCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1547) | :closed_lock_with_key: | POST | `/api/v5/copytrading/first-copy-settings` | +| [updateCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1555) | :closed_lock_with_key: | POST | `/api/v5/copytrading/amend-copy-settings` | +| [stopCopytradingCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1563) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-copy-trading` | +| [getCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1575) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-settings` | +| [getCopytradingBatchLeverageInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1582) | :closed_lock_with_key: | GET | `/api/v5/copytrading/batch-leverage-info` | +| [setCopytradingBatchLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1588) | :closed_lock_with_key: | POST | `/api/v5/copytrading/batch-set-leverage` | +| [getCopytradingMyLeadTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1594) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-lead-traders` | +| [getCopytradingLeadTradersHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1600) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders-history` | +| [getCopytradingConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1606) | | GET | `/api/v5/copytrading/public-config` | +| [getCopytradingLeadRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1612) | | GET | `/api/v5/copytrading/public-lead-traders` | +| [getCopytradingLeadWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1618) | | GET | `/api/v5/copytrading/public-weekly-pnl` | +| [getCopytradingLeadDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1625) | | GET | `/api/v5/copytrading/public-pnl` | +| [getCopytradingLeadStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1631) | | GET | `/api/v5/copytrading/public-stats` | +| [getCopytradingLeadPreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1637) | | GET | `/api/v5/copytrading/public-preference-currency` | +| [getCopytradingLeadOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1644) | | GET | `/api/v5/copytrading/public-current-subpositions` | +| [getCopytradingLeadPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1650) | | GET | `/api/v5/copytrading/public-subpositions-history` | +| [getCopyTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1656) | | GET | `/api/v5/copytrading/public-copy-traders` | +| [getCopytradingLeadPrivateRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1662) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders` | +| [getCopytradingLeadPrivateWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1668) | :closed_lock_with_key: | GET | `/api/v5/copytrading/weekly-pnl` | +| [getCopytradingPLeadPrivateDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1675) | :closed_lock_with_key: | GET | `/api/v5/copytrading/pnl` | +| [geCopytradingLeadPrivateStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1681) | :closed_lock_with_key: | GET | `/api/v5/copytrading/stats` | +| [getCopytradingLeadPrivatePreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1687) | :closed_lock_with_key: | GET | `/api/v5/copytrading/preference-currency` | +| [getCopytradingLeadPrivateOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1694) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-current-subpositions` | +| [getCopytradingLeadPrivatePositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1703) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-subpositions-history` | +| [getCopyTradersPrivate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1712) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-traders` | +| [getTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1724) | | GET | `/api/v5/market/tickers` | +| [getTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1731) | | GET | `/api/v5/market/ticker` | +| [getOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1737) | | GET | `/api/v5/market/books` | +| [getFullOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1741) | | GET | `/api/v5/market/books-full` | +| [getCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1756) | | GET | `/api/v5/market/candles` | +| [getCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1768) | | GET | `/api/v5/market/candles` | +| [getHistoricCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1780) | | GET | `/api/v5/market/history-candles` | +| [getHistoricCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1792) | | GET | `/api/v5/market/history-candles` | +| [getTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1796) | | GET | `/api/v5/market/trades` | +| [getHistoricTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1800) | | GET | `/api/v5/market/history-trades` | +| [getOptionTradesByInstrument()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1812) | | GET | `/api/v5/market/option/instrument-family-trades` | +| [getOptionTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1818) | | GET | `/api/v5/public/option-trades` | +| [get24hrTotalVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1822) | | GET | `/api/v5/market/platform-24-volume` | +| [getBlockCounterParties()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1832) | :closed_lock_with_key: | GET | `/api/v5/rfq/counterparties` | +| [createBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1836) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-rfq` | +| [cancelBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1840) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-rfq` | +| [cancelMultipleBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1846) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-rfqs` | +| [cancelAllRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1852) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-rfqs` | +| [executeBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1856) | :closed_lock_with_key: | POST | `/api/v5/rfq/execute-quote` | +| [getQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1862) | :closed_lock_with_key: | GET | `/api/v5/rfq/maker-instrument-settings` | +| [updateBlockQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1866) | :closed_lock_with_key: | POST | `/api/v5/rfq/maker-instrument-settings` | +| [resetBlockMmp()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1874) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-reset` | +| [updateBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1882) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-config` | +| [getBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1888) | :closed_lock_with_key: | GET | `/api/v5/rfq/mmp-config` | +| [createBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1891) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-quote` | +| [cancelBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1897) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-quote` | +| [cancelMultipleBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1903) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-quotes` | +| [cancelAllBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1909) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-quotes` | +| [cancelAllBlockAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1913) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-after` | +| [getBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1922) | :closed_lock_with_key: | GET | `/api/v5/rfq/rfqs` | +| [getBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1926) | :closed_lock_with_key: | GET | `/api/v5/rfq/quotes` | +| [getBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1930) | :closed_lock_with_key: | GET | `/api/v5/rfq/trades` | +| [getPublicRFQBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1934) | | GET | `/api/v5/rfq/public-trades` | +| [getBlockTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1938) | | GET | `/api/v5/market/block-tickers` | +| [getBlockTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1942) | | GET | `/api/v5/market/block-ticker` | +| [getBlockPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1946) | | GET | `/api/v5/public/block-trades` | +| [submitSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1958) | :closed_lock_with_key: | POST | `/api/v5/sprd/order` | +| [cancelSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1964) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-order` | +| [cancelAllSpreadOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1971) | :closed_lock_with_key: | POST | `/api/v5/sprd/mass-cancel` | +| [updateSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1979) | :closed_lock_with_key: | POST | `/api/v5/sprd/amend-order` | +| [getSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1985) | :closed_lock_with_key: | GET | `/api/v5/sprd/order` | +| [getSpreadActiveOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1992) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-pending` | +| [getSpreadOrdersRecent()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1998) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history` | +| [getSpreadOrdersArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2004) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history-archive` | +| [getSpreadTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2010) | :closed_lock_with_key: | GET | `/api/v5/sprd/trades` | +| [getSpreads()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2014) | | GET | `/api/v5/sprd/spreads` | +| [getSpreadOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2018) | | GET | `/api/v5/sprd/books` | +| [getSpreadTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2025) | | GET | `/api/v5/market/sprd-ticker` | +| [getSpreadPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2029) | | GET | `/api/v5/sprd/public-trades` | +| [getSpreadCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2035) | | GET | `/api/v5/market/sprd-candles` | +| [getSpreadHistoryCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2039) | | GET | `/api/v5/market/sprd-history-candles` | +| [cancelSpreadAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2045) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-all-after` | +| [getInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2060) | | GET | `/api/v5/public/instruments` | +| [getDeliveryExerciseHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2074) | | GET | `/api/v5/public/delivery-exercise-history` | +| [getOpenInterest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2078) | | GET | `/api/v5/public/open-interest` | +| [getFundingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2082) | | GET | `/api/v5/public/funding-rate` | +| [getFundingRateHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2086) | | GET | `/api/v5/public/funding-rate-history` | +| [getMinMaxLimitPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2090) | | GET | `/api/v5/public/price-limit` | +| [getOptionMarketData()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2094) | | GET | `/api/v5/public/opt-summary` | +| [getEstimatedDeliveryExercisePrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2098) | | GET | `/api/v5/public/estimated-price` | +| [getDiscountRateAndInterestFreeQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2102) | | GET | `/api/v5/public/discount-rate-interest-free-quota` | +| [getSystemTime()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2106) | | GET | `/api/v5/public/time` | +| [getMarkPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2110) | | GET | `/api/v5/public/mark-price` | +| [getPositionTiers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2114) | | GET | `/api/v5/public/position-tiers` | +| [getInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2118) | | GET | `/api/v5/public/interest-rate-loan-quota` | +| [getVIPInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2122) | | GET | `/api/v5/public/vip-interest-rate-loan-quota` | +| [getUnderlying()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2126) | | GET | `/api/v5/public/underlying` | +| [getInsuranceFund()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2130) | | GET | `/api/v5/public/insurance-fund` | +| [getUnitConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2134) | | GET | `/api/v5/public/convert-contract-coin` | +| [getOptionTickBands()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2138) | | GET | `/api/v5/public/instrument-tick-bands` | +| [getPremiumHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2145) | | GET | `/api/v5/public/premium-history` | +| [getIndexTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2149) | | GET | `/api/v5/market/index-tickers` | +| [getIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2164) | | GET | `/api/v5/market/index-candles` | +| [getIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2176) | | GET | `/api/v5/market/index-candles` | +| [getHistoricIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2188) | | GET | `/api/v5/market/history-index-candles` | +| [getHistoricIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2200) | | GET | `/api/v5/market/history-index-candles` | +| [getMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2212) | | GET | `/api/v5/market/mark-price-candles` | +| [getMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2224) | | GET | `/api/v5/market/mark-price-candles` | +| [getHistoricMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2236) | | GET | `/api/v5/market/historic-mark-price-candles` | +| [getHistoricMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2248) | | GET | `/api/v5/market/history-mark-price-candles` | +| [getOracle()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2254) | | GET | `/api/v5/market/open-oracle` | +| [getExchangeRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2258) | | GET | `/api/v5/market/exchange-rate` | +| [getIndexComponents()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2262) | | GET | `/api/v5/market/index-components` | +| [getEconomicCalendar()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2266) | :closed_lock_with_key: | GET | `/api/v5/public/economic-calendar` | +| [getPublicBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2275) | | GET | `/api/v5/market/block-trades` | +| [getLiquidationOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2282) | | GET | `/api/v5/public/liquidation-orders` | +| [getSupportCoin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2292) | | GET | `/api/v5/rubik/stat/trading-data/support-coin` | +| [getOpenInterestHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2296) | | GET | `/api/v5/rubik/stat/contracts/open-interest-history` | +| [getTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2305) | | GET | `/api/v5/rubik/stat/taker-volume` | +| [getContractTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2315) | | GET | `/api/v5/rubik/stat/taker-volume-contract` | +| [getMarginLendingRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2321) | | GET | `/api/v5/rubik/stat/margin/loan-ratio` | +| [getTopTradersAccountRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2330) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio-contract-top-trader` | +| [getTopTradersContractPositionRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2339) | | GET | `/api/v5/rubik/stat/contracts/long-short-position-ratio-contract-top-trader` | +| [getLongShortContractRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2348) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio-contract` | +| [getLongShortRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2357) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio` | +| [getContractsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2369) | | GET | `/api/v5/rubik/stat/contracts/open-interest-volume` | +| [getOptionsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2381) | | GET | `/api/v5/rubik/stat/option/open-interest-volume` | +| [getPutCallRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2388) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-ratio` | +| [getOpenInterestAndVolumeExpiry()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2398) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-expiry` | +| [getOpenInterestAndVolumeStrike()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2408) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-strike` | +| [getTakerFlow()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2419) | | GET | `/api/v5/rubik/stat/option/taker-block-volume` | +| [getCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2429) | :closed_lock_with_key: | GET | `/api/v5/asset/currencies` | +| [getBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2433) | :closed_lock_with_key: | GET | `/api/v5/asset/balances` | +| [getNonTradableAssets()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2437) | :closed_lock_with_key: | GET | `/api/v5/asset/non-tradable-assets` | +| [getAccountAssetValuation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2441) | :closed_lock_with_key: | GET | `/api/v5/asset/asset-valuation` | +| [fundsTransfer()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2445) | :closed_lock_with_key: | POST | `/api/v5/asset/transfer` | +| [getFundsTransferState()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2450) | :closed_lock_with_key: | GET | `/api/v5/asset/transfer-state` | +| [getAssetBillsDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2458) | :closed_lock_with_key: | GET | `/api/v5/asset/bills` | +| [getLightningDeposits()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2469) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-lightning` | +| [getDepositAddress()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2477) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-address` | +| [getDepositHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2481) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-history` | +| [submitWithdraw()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2485) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal` | +| [submitWithdrawLightning()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2489) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal-lightning` | +| [cancelWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2501) | :closed_lock_with_key: | POST | `/api/v5/asset/cancel-withdrawal` | +| [getWithdrawalHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2505) | :closed_lock_with_key: | GET | `/api/v5/asset/withdrawal-history` | +| [getDepositWithdrawStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2509) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-withdraw-status` | +| [smallAssetsConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2515) | :closed_lock_with_key: | POST | `/api/v5/asset/convert-dust-assets` | +| [getExchanges()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2519) | | GET | `/api/v5/asset/exchange-list` | +| [applyForMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2523) | :closed_lock_with_key: | POST | `/api/v5/asset/monthly-statement` | +| [getMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2527) | :closed_lock_with_key: | GET | `/api/v5/asset/monthly-statement` | +| [getConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2531) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currencies` | +| [getConvertCurrencyPair()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2535) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currency-pair` | +| [estimateConvertQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2542) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/estimate-quote` | +| [convertTrade()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2546) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/trade` | +| [getConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2550) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/history` | +| [getSubAccountList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2561) | :closed_lock_with_key: | GET | `/api/v5/users/subaccount/list` | +| [resetSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2566) | :closed_lock_with_key: | POST | `/api/v5/users/subaccount/modify-apikey` | +| [getSubAccountBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2583) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/balances` | +| [getSubAccountFundingBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2588) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/balances` | +| [getSubAccountMaxWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2598) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/max-withdrawal` | +| [getSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2605) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/bills` | +| [getManagedSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2616) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/managed-subaccount-bills` | +| [transferSubAccountBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2626) | :closed_lock_with_key: | POST | `/api/v5/asset/subaccount/transfer` | +| [setSubAccountTransferOutPermission()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2633) | :closed_lock_with_key: | POST | `/api/v5/users/subaccount/set-transfer-out` | +| [getSubAccountCustodyTradingList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2644) | :closed_lock_with_key: | GET | `/api/v5/users/entrust-subaccount-list` | +| [setSubAccountLoanAllocation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2650) | :closed_lock_with_key: | POST | `/api/v5/account/subaccount/set-loan-allocation` | +| [getSubAccountBorrowInterestAndLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2663) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/interest-limits` | +| [getStakingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2680) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/offers` | +| [submitStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2689) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/purchase` | +| [redeemStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2705) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/redeem` | +| [cancelStakingRequest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2718) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/cancel` | +| [getActiveStakingOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2729) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/orders-active` | +| [getStakingOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2742) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/orders-history` | +| [purchaseETHStaking()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2762) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/eth/purchase` | +| [redeemETHStaking()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2769) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/eth/redeem` | +| [getETHStakingBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2773) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/eth/balance` | +| [getETHStakingHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2777) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/eth/purchase-redeem-history` | +| [getAPYHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2790) | | GET | `/api/v5/finance/staking-defi/eth/apy-history` | +| [getSavingBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2800) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/balance` | +| [savingsPurchaseRedemption()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2804) | :closed_lock_with_key: | POST | `/api/v5/finance/savings/purchase-redempt` | +| [setLendingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2818) | :closed_lock_with_key: | POST | `/api/v5/finance/savings/set-lending-rate` | +| [getLendingHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2825) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/lending-history` | +| [getPublicBorrowInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2829) | | GET | `/api/v5/finance/savings/lending-rate-summary` | +| [getPublicBorrowHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2833) | | GET | `/api/v5/finance/savings/lending-rate-history` | +| [getLendingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2843) | | GET | `/api/v5/finance/fixed-loan/lending-offers` | +| [getLendingAPYHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2847) | | GET | `/api/v5/finance/fixed-loan/lending-apy-history` | +| [getLendingVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2851) | | GET | `/api/v5/finance/fixed-loan/pending-lending-volume` | +| [placeLendingOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2858) | :closed_lock_with_key: | POST | `/api/v5/finance/fixed-loan/lending-order` | +| [amendLendingOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2862) | :closed_lock_with_key: | POST | `/api/v5/finance/fixed-loan/lending-order` | +| [getLendingOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2866) | :closed_lock_with_key: | GET | `/api/v5/finance/fixed-loan/lending-orders-list` | +| [getLendingSubOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2873) | :closed_lock_with_key: | GET | `/api/v5/finance/fixed-loan/lending-sub-orders` | +| [getInviteeDetail()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2886) | :closed_lock_with_key: | GET | `/api/v5/affiliate/invitee/detail` | +| [getAffiliateRebateInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2890) | :closed_lock_with_key: | GET | `/api/v5/users/partner/if-rebate` | +| [getSystemStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2900) | | GET | `/api/v5/system/status` | +| [getAnnouncements()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2912) | | GET | `/api/v5/support/announcements` | +| [getAnnouncementTypes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2921) | | GET | `/api/v5/support/announcement-types` | +| [getBrokerAccountInformation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2940) | :closed_lock_with_key: | GET | `/api/v5/broker/nd/info` | +| [createSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2944) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/create-subaccount` | +| [deleteSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2953) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/delete-subaccount` | +| [createSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2957) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/subaccount/apikey` | \ No newline at end of file diff --git a/examples/apidoc/RestClient/activateOption.js b/examples/apidoc/RestClient/activateOption.js index a949791..9c023d6 100644 --- a/examples/apidoc/RestClient/activateOption.js +++ b/examples/apidoc/RestClient/activateOption.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/activate-option // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L736 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/adjustGridInvestment.js b/examples/apidoc/RestClient/adjustGridInvestment.js index 3378124..26c17c2 100644 --- a/examples/apidoc/RestClient/adjustGridInvestment.js +++ b/examples/apidoc/RestClient/adjustGridInvestment.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/adjust-investment // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1115 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/adjustGridMarginBalance.js b/examples/apidoc/RestClient/adjustGridMarginBalance.js index 8dfc170..65b8420 100644 --- a/examples/apidoc/RestClient/adjustGridMarginBalance.js +++ b/examples/apidoc/RestClient/adjustGridMarginBalance.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/margin-balance // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1103 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/amendAlgoOrder.js b/examples/apidoc/RestClient/amendAlgoOrder.js index 22d7d03..68c8723 100644 --- a/examples/apidoc/RestClient/amendAlgoOrder.js +++ b/examples/apidoc/RestClient/amendAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/amend-algos // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L946 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/amendGridAlgoOrder.js b/examples/apidoc/RestClient/amendGridAlgoOrder.js index 7a90a06..bf81bdd 100644 --- a/examples/apidoc/RestClient/amendGridAlgoOrder.js +++ b/examples/apidoc/RestClient/amendGridAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/amend-order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L986 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/amendLendingOrder.js b/examples/apidoc/RestClient/amendLendingOrder.js index 014693c..a2e57c6 100644 --- a/examples/apidoc/RestClient/amendLendingOrder.js +++ b/examples/apidoc/RestClient/amendLendingOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/fixed-loan/lending-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2793 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/amendMultipleOrders.js b/examples/apidoc/RestClient/amendMultipleOrders.js index 18ec58c..d9da85a 100644 --- a/examples/apidoc/RestClient/amendMultipleOrders.js +++ b/examples/apidoc/RestClient/amendMultipleOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/amend-batch-orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L798 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/amendOrder.js b/examples/apidoc/RestClient/amendOrder.js index 99966bd..621f75f 100644 --- a/examples/apidoc/RestClient/amendOrder.js +++ b/examples/apidoc/RestClient/amendOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/amend-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L794 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/amendRecurringBuyOrder.js b/examples/apidoc/RestClient/amendRecurringBuyOrder.js index f1a8206..2a70c62 100644 --- a/examples/apidoc/RestClient/amendRecurringBuyOrder.js +++ b/examples/apidoc/RestClient/amendRecurringBuyOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/recurring/amend-order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1300 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/applyCopytradingLeadTrading.js b/examples/apidoc/RestClient/applyCopytradingLeadTrading.js index b0b8071..975e969 100644 --- a/examples/apidoc/RestClient/applyCopytradingLeadTrading.js +++ b/examples/apidoc/RestClient/applyCopytradingLeadTrading.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/apply-lead-trading // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1441 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/applyForMonthlyStatement.js b/examples/apidoc/RestClient/applyForMonthlyStatement.js index 1638ea3..bce9b65 100644 --- a/examples/apidoc/RestClient/applyForMonthlyStatement.js +++ b/examples/apidoc/RestClient/applyForMonthlyStatement.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/monthly-statement // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2454 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/applyTransactionDetailsArchive.js b/examples/apidoc/RestClient/applyTransactionDetailsArchive.js deleted file mode 100644 index f0d908b..0000000 --- a/examples/apidoc/RestClient/applyTransactionDetailsArchive.js +++ /dev/null @@ -1,19 +0,0 @@ -const { RestClient } = require('okx-api'); - - // ENDPOINT: /api/v5/trade/fills-archive - // METHOD: POST - // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L820 - -const client = new RestClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', -}); - -client.applyTransactionDetailsArchive(params) - .then(response => { - console.log(response); - }) - .catch(error => { - console.error(error); - }); diff --git a/examples/apidoc/RestClient/borrowRepayVIPLoan.js b/examples/apidoc/RestClient/borrowRepayVIPLoan.js index 680193c..1ed3415 100644 --- a/examples/apidoc/RestClient/borrowRepayVIPLoan.js +++ b/examples/apidoc/RestClient/borrowRepayVIPLoan.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/borrow-repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L527 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelAdvanceAlgoOrder.js b/examples/apidoc/RestClient/cancelAdvanceAlgoOrder.js index d362761..cb8e089 100644 --- a/examples/apidoc/RestClient/cancelAdvanceAlgoOrder.js +++ b/examples/apidoc/RestClient/cancelAdvanceAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/cancel-advance-algos // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L952 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelAlgoOrder.js b/examples/apidoc/RestClient/cancelAlgoOrder.js index 198e17b..efa8a5c 100644 --- a/examples/apidoc/RestClient/cancelAlgoOrder.js +++ b/examples/apidoc/RestClient/cancelAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/cancel-algos // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L940 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelAllAfter.js b/examples/apidoc/RestClient/cancelAllAfter.js index 75e03bf..00b132c 100644 --- a/examples/apidoc/RestClient/cancelAllAfter.js +++ b/examples/apidoc/RestClient/cancelAllAfter.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/cancel-all-after // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L915 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelAllBlockAfter.js b/examples/apidoc/RestClient/cancelAllBlockAfter.js index e20034e..f67440e 100644 --- a/examples/apidoc/RestClient/cancelAllBlockAfter.js +++ b/examples/apidoc/RestClient/cancelAllBlockAfter.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/cancel-all-after // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1844 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelAllBlockQuotes.js b/examples/apidoc/RestClient/cancelAllBlockQuotes.js index 75fb545..1742a53 100644 --- a/examples/apidoc/RestClient/cancelAllBlockQuotes.js +++ b/examples/apidoc/RestClient/cancelAllBlockQuotes.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/cancel-all-quotes // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1840 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelAllRFQs.js b/examples/apidoc/RestClient/cancelAllRFQs.js index 5a1d075..dbc9492 100644 --- a/examples/apidoc/RestClient/cancelAllRFQs.js +++ b/examples/apidoc/RestClient/cancelAllRFQs.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/cancel-all-rfqs // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1783 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelAllSpreadOrders.js b/examples/apidoc/RestClient/cancelAllSpreadOrders.js index 8694dca..4d80b9c 100644 --- a/examples/apidoc/RestClient/cancelAllSpreadOrders.js +++ b/examples/apidoc/RestClient/cancelAllSpreadOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/mass-cancel // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1902 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelBlockQuote.js b/examples/apidoc/RestClient/cancelBlockQuote.js index d47e1f1..a0d0f85 100644 --- a/examples/apidoc/RestClient/cancelBlockQuote.js +++ b/examples/apidoc/RestClient/cancelBlockQuote.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/cancel-quote // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1828 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelBlockRFQ.js b/examples/apidoc/RestClient/cancelBlockRFQ.js index 3d8744f..a68503c 100644 --- a/examples/apidoc/RestClient/cancelBlockRFQ.js +++ b/examples/apidoc/RestClient/cancelBlockRFQ.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/cancel-rfq // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1771 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelGridContractCloseOrder.js b/examples/apidoc/RestClient/cancelGridContractCloseOrder.js index e8c5173..e5438a5 100644 --- a/examples/apidoc/RestClient/cancelGridContractCloseOrder.js +++ b/examples/apidoc/RestClient/cancelGridContractCloseOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/cancel-close-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1008 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelMassOrder.js b/examples/apidoc/RestClient/cancelMassOrder.js index 0b7e946..7b401d7 100644 --- a/examples/apidoc/RestClient/cancelMassOrder.js +++ b/examples/apidoc/RestClient/cancelMassOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/mass-cancel // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L903 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelMultipleBlockQuotes.js b/examples/apidoc/RestClient/cancelMultipleBlockQuotes.js index f4436c7..23f8c6f 100644 --- a/examples/apidoc/RestClient/cancelMultipleBlockQuotes.js +++ b/examples/apidoc/RestClient/cancelMultipleBlockQuotes.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/cancel-batch-quotes // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1834 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelMultipleBlockRFQs.js b/examples/apidoc/RestClient/cancelMultipleBlockRFQs.js index 02428bb..f2bd0d7 100644 --- a/examples/apidoc/RestClient/cancelMultipleBlockRFQs.js +++ b/examples/apidoc/RestClient/cancelMultipleBlockRFQs.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/cancel-batch-rfqs // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1777 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelMultipleOrders.js b/examples/apidoc/RestClient/cancelMultipleOrders.js index 77721db..5100f70 100644 --- a/examples/apidoc/RestClient/cancelMultipleOrders.js +++ b/examples/apidoc/RestClient/cancelMultipleOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/cancel-batch-orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L788 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelOrder.js b/examples/apidoc/RestClient/cancelOrder.js index 7de6fa1..d79cc41 100644 --- a/examples/apidoc/RestClient/cancelOrder.js +++ b/examples/apidoc/RestClient/cancelOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/cancel-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L784 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelSignalBots.js b/examples/apidoc/RestClient/cancelSignalBots.js index 5488568..159cc39 100644 --- a/examples/apidoc/RestClient/cancelSignalBots.js +++ b/examples/apidoc/RestClient/cancelSignalBots.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/stop-order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1183 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelSpreadAllAfter.js b/examples/apidoc/RestClient/cancelSpreadAllAfter.js index 66d7db5..ac2171c 100644 --- a/examples/apidoc/RestClient/cancelSpreadAllAfter.js +++ b/examples/apidoc/RestClient/cancelSpreadAllAfter.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/cancel-all-after // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1976 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelSpreadOrder.js b/examples/apidoc/RestClient/cancelSpreadOrder.js index 316f4c1..f88b40d 100644 --- a/examples/apidoc/RestClient/cancelSpreadOrder.js +++ b/examples/apidoc/RestClient/cancelSpreadOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/cancel-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1895 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelStakingRequest.js b/examples/apidoc/RestClient/cancelStakingRequest.js index 55f3ad9..f7aec55 100644 --- a/examples/apidoc/RestClient/cancelStakingRequest.js +++ b/examples/apidoc/RestClient/cancelStakingRequest.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/cancel // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2649 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelSubOrder.js b/examples/apidoc/RestClient/cancelSubOrder.js index 49d65f5..b6584c8 100644 --- a/examples/apidoc/RestClient/cancelSubOrder.js +++ b/examples/apidoc/RestClient/cancelSubOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/cancel-sub-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1271 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/cancelWithdrawal.js b/examples/apidoc/RestClient/cancelWithdrawal.js index 0c70fde..9a3ae1c 100644 --- a/examples/apidoc/RestClient/cancelWithdrawal.js +++ b/examples/apidoc/RestClient/cancelWithdrawal.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/cancel-withdrawal // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2432 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/changePositionMargin.js b/examples/apidoc/RestClient/changePositionMargin.js index 587ac70..e438d0e 100644 --- a/examples/apidoc/RestClient/changePositionMargin.js +++ b/examples/apidoc/RestClient/changePositionMargin.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/position/margin-balance // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L394 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/closeCopytradingSubposition.js b/examples/apidoc/RestClient/closeCopytradingSubposition.js index 6973f4c..f9be486 100644 --- a/examples/apidoc/RestClient/closeCopytradingSubposition.js +++ b/examples/apidoc/RestClient/closeCopytradingSubposition.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/close-subposition // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1375 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/closeGridContractPosition.js b/examples/apidoc/RestClient/closeGridContractPosition.js index 4ddf226..fdb2de3 100644 --- a/examples/apidoc/RestClient/closeGridContractPosition.js +++ b/examples/apidoc/RestClient/closeGridContractPosition.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/close-position // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1002 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/closePositions.js b/examples/apidoc/RestClient/closePositions.js index 84e5b1b..1f5ebea 100644 --- a/examples/apidoc/RestClient/closePositions.js +++ b/examples/apidoc/RestClient/closePositions.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/close-position // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L802 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/closeSignalBotPosition.js b/examples/apidoc/RestClient/closeSignalBotPosition.js index 34a23e8..46cdb85 100644 --- a/examples/apidoc/RestClient/closeSignalBotPosition.js +++ b/examples/apidoc/RestClient/closeSignalBotPosition.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/close-position // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1259 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/computeGridMarginBalance.js b/examples/apidoc/RestClient/computeGridMarginBalance.js index 02b1d66..ac321c8 100644 --- a/examples/apidoc/RestClient/computeGridMarginBalance.js +++ b/examples/apidoc/RestClient/computeGridMarginBalance.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/compute-margin-balance // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1091 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/computeGridMinInvestment.js b/examples/apidoc/RestClient/computeGridMinInvestment.js index 1e54e00..87f8658 100644 --- a/examples/apidoc/RestClient/computeGridMinInvestment.js +++ b/examples/apidoc/RestClient/computeGridMinInvestment.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/min-investment // METHOD: POST // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1140 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/convertFixedLoanToMarketLoan.js b/examples/apidoc/RestClient/convertFixedLoanToMarketLoan.js index 84c9f03..d919932 100644 --- a/examples/apidoc/RestClient/convertFixedLoanToMarketLoan.js +++ b/examples/apidoc/RestClient/convertFixedLoanToMarketLoan.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/convert-to-market-loan // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L638 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/convertTrade.js b/examples/apidoc/RestClient/convertTrade.js index c786690..931ad55 100644 --- a/examples/apidoc/RestClient/convertTrade.js +++ b/examples/apidoc/RestClient/convertTrade.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/convert/trade // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2477 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/createBlockQuote.js b/examples/apidoc/RestClient/createBlockQuote.js index 3f23334..2ee8bd9 100644 --- a/examples/apidoc/RestClient/createBlockQuote.js +++ b/examples/apidoc/RestClient/createBlockQuote.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/create-quote // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1822 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/createBlockRFQ.js b/examples/apidoc/RestClient/createBlockRFQ.js index 48a757d..6bddbef 100644 --- a/examples/apidoc/RestClient/createBlockRFQ.js +++ b/examples/apidoc/RestClient/createBlockRFQ.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/create-rfq // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1767 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/createSignal.js b/examples/apidoc/RestClient/createSignal.js index da43173..a872756 100644 --- a/examples/apidoc/RestClient/createSignal.js +++ b/examples/apidoc/RestClient/createSignal.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/create-signal // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1169 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/createSignalBot.js b/examples/apidoc/RestClient/createSignalBot.js index 6e76006..6542505 100644 --- a/examples/apidoc/RestClient/createSignalBot.js +++ b/examples/apidoc/RestClient/createSignalBot.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1177 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/createSubAccount.js b/examples/apidoc/RestClient/createSubAccount.js index 1fef0cb..8601a48 100644 --- a/examples/apidoc/RestClient/createSubAccount.js +++ b/examples/apidoc/RestClient/createSubAccount.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/broker/nd/create-subaccount // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2875 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/createSubAccountAPIKey.js b/examples/apidoc/RestClient/createSubAccountAPIKey.js index ac2d5e1..f9c8489 100644 --- a/examples/apidoc/RestClient/createSubAccountAPIKey.js +++ b/examples/apidoc/RestClient/createSubAccountAPIKey.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/broker/nd/subaccount/apikey // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2888 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/deleteSubAccount.js b/examples/apidoc/RestClient/deleteSubAccount.js index 079fc93..cb30a11 100644 --- a/examples/apidoc/RestClient/deleteSubAccount.js +++ b/examples/apidoc/RestClient/deleteSubAccount.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/broker/nd/delete-subaccount // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2884 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/estimateConvertQuote.js b/examples/apidoc/RestClient/estimateConvertQuote.js index d145972..158a088 100644 --- a/examples/apidoc/RestClient/estimateConvertQuote.js +++ b/examples/apidoc/RestClient/estimateConvertQuote.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/convert/estimate-quote // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2473 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/executeBlockQuote.js b/examples/apidoc/RestClient/executeBlockQuote.js index 93f136d..4a6e766 100644 --- a/examples/apidoc/RestClient/executeBlockQuote.js +++ b/examples/apidoc/RestClient/executeBlockQuote.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/execute-quote // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1787 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/fundsTransfer.js b/examples/apidoc/RestClient/fundsTransfer.js index bc7f8dd..bf56349 100644 --- a/examples/apidoc/RestClient/fundsTransfer.js +++ b/examples/apidoc/RestClient/fundsTransfer.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/transfer // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2376 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/geCopytradingLeadPrivateStats.js b/examples/apidoc/RestClient/geCopytradingLeadPrivateStats.js index 950bafd..14c2f27 100644 --- a/examples/apidoc/RestClient/geCopytradingLeadPrivateStats.js +++ b/examples/apidoc/RestClient/geCopytradingLeadPrivateStats.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/stats // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1612 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/get24hrTotalVolume.js b/examples/apidoc/RestClient/get24hrTotalVolume.js index 3f0c561..a240711 100644 --- a/examples/apidoc/RestClient/get24hrTotalVolume.js +++ b/examples/apidoc/RestClient/get24hrTotalVolume.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/platform-24-volume // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1753 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAPYHistory.js b/examples/apidoc/RestClient/getAPYHistory.js index e72b0b7..341793a 100644 --- a/examples/apidoc/RestClient/getAPYHistory.js +++ b/examples/apidoc/RestClient/getAPYHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/eth/apy-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2721 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAccountAssetValuation.js b/examples/apidoc/RestClient/getAccountAssetValuation.js index e32df39..3271b95 100644 --- a/examples/apidoc/RestClient/getAccountAssetValuation.js +++ b/examples/apidoc/RestClient/getAccountAssetValuation.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/asset-valuation // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2372 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAccountConfiguration.js b/examples/apidoc/RestClient/getAccountConfiguration.js index 7a4395f..80ddaca 100644 --- a/examples/apidoc/RestClient/getAccountConfiguration.js +++ b/examples/apidoc/RestClient/getAccountConfiguration.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/config // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L360 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAccountInstruments.js b/examples/apidoc/RestClient/getAccountInstruments.js index 6cd5b4f..af138a0 100644 --- a/examples/apidoc/RestClient/getAccountInstruments.js +++ b/examples/apidoc/RestClient/getAccountInstruments.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/instruments // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L296 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAccountPositionRisk.js b/examples/apidoc/RestClient/getAccountPositionRisk.js index 7f9eedc..1e1ee72 100644 --- a/examples/apidoc/RestClient/getAccountPositionRisk.js +++ b/examples/apidoc/RestClient/getAccountPositionRisk.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/account-position-risk // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L316 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAccountRateLimit.js b/examples/apidoc/RestClient/getAccountRateLimit.js index 8cde06f..e1372da 100644 --- a/examples/apidoc/RestClient/getAccountRateLimit.js +++ b/examples/apidoc/RestClient/getAccountRateLimit.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/account-rate-limit // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L922 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAccountRiskState.js b/examples/apidoc/RestClient/getAccountRiskState.js index b713f29..eada844 100644 --- a/examples/apidoc/RestClient/getAccountRiskState.js +++ b/examples/apidoc/RestClient/getAccountRiskState.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/risk-state // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L505 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getActiveSignalBot.js b/examples/apidoc/RestClient/getActiveSignalBot.js index aec4112..46554ec 100644 --- a/examples/apidoc/RestClient/getActiveSignalBot.js +++ b/examples/apidoc/RestClient/getActiveSignalBot.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/orders-algo-details // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1229 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getActiveStakingOrders.js b/examples/apidoc/RestClient/getActiveStakingOrders.js index dddabbf..90920b6 100644 --- a/examples/apidoc/RestClient/getActiveStakingOrders.js +++ b/examples/apidoc/RestClient/getActiveStakingOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/orders-active // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2660 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAffiliateRebateInfo.js b/examples/apidoc/RestClient/getAffiliateRebateInfo.js index 9463abe..3db053d 100644 --- a/examples/apidoc/RestClient/getAffiliateRebateInfo.js +++ b/examples/apidoc/RestClient/getAffiliateRebateInfo.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/users/partner/if-rebate // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2821 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAlgoOrderDetails.js b/examples/apidoc/RestClient/getAlgoOrderDetails.js index 20e4649..390dc4e 100644 --- a/examples/apidoc/RestClient/getAlgoOrderDetails.js +++ b/examples/apidoc/RestClient/getAlgoOrderDetails.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/order-algo // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L958 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAlgoOrderHistory.js b/examples/apidoc/RestClient/getAlgoOrderHistory.js index eff6e65..c7b88ee 100644 --- a/examples/apidoc/RestClient/getAlgoOrderHistory.js +++ b/examples/apidoc/RestClient/getAlgoOrderHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/orders-algo-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L970 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAlgoOrderList.js b/examples/apidoc/RestClient/getAlgoOrderList.js index af5f738..f1fa20b 100644 --- a/examples/apidoc/RestClient/getAlgoOrderList.js +++ b/examples/apidoc/RestClient/getAlgoOrderList.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/orders-algo-pending // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L964 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAnnouncementTypes.js b/examples/apidoc/RestClient/getAnnouncementTypes.js index 730c172..08f62b2 100644 --- a/examples/apidoc/RestClient/getAnnouncementTypes.js +++ b/examples/apidoc/RestClient/getAnnouncementTypes.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/support/announcement-types // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2852 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAnnouncements.js b/examples/apidoc/RestClient/getAnnouncements.js index b4fd5b2..73449a6 100644 --- a/examples/apidoc/RestClient/getAnnouncements.js +++ b/examples/apidoc/RestClient/getAnnouncements.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/support/announcements // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2843 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getAssetBillsDetails.js b/examples/apidoc/RestClient/getAssetBillsDetails.js index afd7613..33cd70a 100644 --- a/examples/apidoc/RestClient/getAssetBillsDetails.js +++ b/examples/apidoc/RestClient/getAssetBillsDetails.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/bills // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2389 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBalance.js b/examples/apidoc/RestClient/getBalance.js index fc7e6c3..85cef18 100644 --- a/examples/apidoc/RestClient/getBalance.js +++ b/examples/apidoc/RestClient/getBalance.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/balance // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L302 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBalances.js b/examples/apidoc/RestClient/getBalances.js index 540313f..c01bd26 100644 --- a/examples/apidoc/RestClient/getBalances.js +++ b/examples/apidoc/RestClient/getBalances.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/balances // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2364 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBills.js b/examples/apidoc/RestClient/getBills.js index 2f0da6b..475f3c7 100644 --- a/examples/apidoc/RestClient/getBills.js +++ b/examples/apidoc/RestClient/getBills.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/bills // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L325 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBillsArchive.js b/examples/apidoc/RestClient/getBillsArchive.js index 92bd351..a75cc32 100644 --- a/examples/apidoc/RestClient/getBillsArchive.js +++ b/examples/apidoc/RestClient/getBillsArchive.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/bills-archive // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L330 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockCounterParties.js b/examples/apidoc/RestClient/getBlockCounterParties.js index 34319ce..68e6904 100644 --- a/examples/apidoc/RestClient/getBlockCounterParties.js +++ b/examples/apidoc/RestClient/getBlockCounterParties.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/counterparties // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1763 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockMmpConfig.js b/examples/apidoc/RestClient/getBlockMmpConfig.js index eb3acac..226bdaa 100644 --- a/examples/apidoc/RestClient/getBlockMmpConfig.js +++ b/examples/apidoc/RestClient/getBlockMmpConfig.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/mmp-config // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1819 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockPublicTrades.js b/examples/apidoc/RestClient/getBlockPublicTrades.js index f41425b..002d484 100644 --- a/examples/apidoc/RestClient/getBlockPublicTrades.js +++ b/examples/apidoc/RestClient/getBlockPublicTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/block-trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1877 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockQuotes.js b/examples/apidoc/RestClient/getBlockQuotes.js index 69c7fae..21ff344 100644 --- a/examples/apidoc/RestClient/getBlockQuotes.js +++ b/examples/apidoc/RestClient/getBlockQuotes.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/quotes // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1857 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockRFQs.js b/examples/apidoc/RestClient/getBlockRFQs.js index 7b2ab66..f35b097 100644 --- a/examples/apidoc/RestClient/getBlockRFQs.js +++ b/examples/apidoc/RestClient/getBlockRFQs.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/rfqs // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1853 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockTicker.js b/examples/apidoc/RestClient/getBlockTicker.js index 20afad9..88f225f 100644 --- a/examples/apidoc/RestClient/getBlockTicker.js +++ b/examples/apidoc/RestClient/getBlockTicker.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/block-ticker // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1873 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockTickers.js b/examples/apidoc/RestClient/getBlockTickers.js index 8f7913f..dd26ed3 100644 --- a/examples/apidoc/RestClient/getBlockTickers.js +++ b/examples/apidoc/RestClient/getBlockTickers.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/block-tickers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1869 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBlockTrades.js b/examples/apidoc/RestClient/getBlockTrades.js index 4614cf2..96ad22b 100644 --- a/examples/apidoc/RestClient/getBlockTrades.js +++ b/examples/apidoc/RestClient/getBlockTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/trades // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1861 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBorrowInterestLimits.js b/examples/apidoc/RestClient/getBorrowInterestLimits.js index be53892..fe3102d 100644 --- a/examples/apidoc/RestClient/getBorrowInterestLimits.js +++ b/examples/apidoc/RestClient/getBorrowInterestLimits.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/interest-limits // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L567 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBorrowRepayHistory.js b/examples/apidoc/RestClient/getBorrowRepayHistory.js index 678fd9c..d3fe445 100644 --- a/examples/apidoc/RestClient/getBorrowRepayHistory.js +++ b/examples/apidoc/RestClient/getBorrowRepayHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/spot-borrow-repay-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L695 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getBrokerAccountInformation.js b/examples/apidoc/RestClient/getBrokerAccountInformation.js index 28d2434..caf2188 100644 --- a/examples/apidoc/RestClient/getBrokerAccountInformation.js +++ b/examples/apidoc/RestClient/getBrokerAccountInformation.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/broker/nd/info // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2871 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCandles.js b/examples/apidoc/RestClient/getCandles.js index b1716da..c94ff6b 100644 --- a/examples/apidoc/RestClient/getCandles.js +++ b/examples/apidoc/RestClient/getCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1687 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCandlesV2.js b/examples/apidoc/RestClient/getCandlesV2.js index 7d00b8e..a0252a5 100644 --- a/examples/apidoc/RestClient/getCandlesV2.js +++ b/examples/apidoc/RestClient/getCandlesV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1699 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getContractTakerVolume.js b/examples/apidoc/RestClient/getContractTakerVolume.js index 9fcec21..a9f6aed 100644 --- a/examples/apidoc/RestClient/getContractTakerVolume.js +++ b/examples/apidoc/RestClient/getContractTakerVolume.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/taker-volume-contract // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2246 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getContractsOpenInterestAndVolume.js b/examples/apidoc/RestClient/getContractsOpenInterestAndVolume.js index edabbec..1ed15fe 100644 --- a/examples/apidoc/RestClient/getContractsOpenInterestAndVolume.js +++ b/examples/apidoc/RestClient/getContractsOpenInterestAndVolume.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/contracts/open-interest-volume // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2300 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getConvertCurrencies.js b/examples/apidoc/RestClient/getConvertCurrencies.js index 0e5065a..8167107 100644 --- a/examples/apidoc/RestClient/getConvertCurrencies.js +++ b/examples/apidoc/RestClient/getConvertCurrencies.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/convert/currencies // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2462 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getConvertCurrencyPair.js b/examples/apidoc/RestClient/getConvertCurrencyPair.js index f8bc82b..5c0b712 100644 --- a/examples/apidoc/RestClient/getConvertCurrencyPair.js +++ b/examples/apidoc/RestClient/getConvertCurrencyPair.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/convert/currency-pair // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2466 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getConvertHistory.js b/examples/apidoc/RestClient/getConvertHistory.js index 77a416c..f685692 100644 --- a/examples/apidoc/RestClient/getConvertHistory.js +++ b/examples/apidoc/RestClient/getConvertHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/convert/history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2481 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopyTraders.js b/examples/apidoc/RestClient/getCopyTraders.js index 05152b9..e4ed89e 100644 --- a/examples/apidoc/RestClient/getCopyTraders.js +++ b/examples/apidoc/RestClient/getCopyTraders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-copy-traders // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1587 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopyTradersPrivate.js b/examples/apidoc/RestClient/getCopyTradersPrivate.js index 4fcde18..fead24b 100644 --- a/examples/apidoc/RestClient/getCopyTradersPrivate.js +++ b/examples/apidoc/RestClient/getCopyTradersPrivate.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/copy-traders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1643 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingAccount.js b/examples/apidoc/RestClient/getCopytradingAccount.js index 4fee621..6500494 100644 --- a/examples/apidoc/RestClient/getCopytradingAccount.js +++ b/examples/apidoc/RestClient/getCopytradingAccount.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/config // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1474 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingBatchLeverageInfo.js b/examples/apidoc/RestClient/getCopytradingBatchLeverageInfo.js index 8fb8fb8..ee65d69 100644 --- a/examples/apidoc/RestClient/getCopytradingBatchLeverageInfo.js +++ b/examples/apidoc/RestClient/getCopytradingBatchLeverageInfo.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/batch-leverage-info // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1513 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingConfig.js b/examples/apidoc/RestClient/getCopytradingConfig.js index 58ba1aa..4ff1621 100644 --- a/examples/apidoc/RestClient/getCopytradingConfig.js +++ b/examples/apidoc/RestClient/getCopytradingConfig.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-config // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1537 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingCopySettings.js b/examples/apidoc/RestClient/getCopytradingCopySettings.js index 8d9aaa6..1bb56b9 100644 --- a/examples/apidoc/RestClient/getCopytradingCopySettings.js +++ b/examples/apidoc/RestClient/getCopytradingCopySettings.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/copy-settings // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1506 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingInstruments.js b/examples/apidoc/RestClient/getCopytradingInstruments.js index 43f1fa5..b8ebbb3 100644 --- a/examples/apidoc/RestClient/getCopytradingInstruments.js +++ b/examples/apidoc/RestClient/getCopytradingInstruments.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/instruments // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1384 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadDailyPnl.js b/examples/apidoc/RestClient/getCopytradingLeadDailyPnl.js index 4dec81e..a4dd34b 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadDailyPnl.js +++ b/examples/apidoc/RestClient/getCopytradingLeadDailyPnl.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-pnl // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1556 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadOpenPositions.js b/examples/apidoc/RestClient/getCopytradingLeadOpenPositions.js index da474c8..51ac947 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadOpenPositions.js +++ b/examples/apidoc/RestClient/getCopytradingLeadOpenPositions.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-current-subpositions // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1575 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadPositionHistory.js b/examples/apidoc/RestClient/getCopytradingLeadPositionHistory.js index 5a71de6..45fe2e6 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadPositionHistory.js +++ b/examples/apidoc/RestClient/getCopytradingLeadPositionHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-subpositions-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1581 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadPreferences.js b/examples/apidoc/RestClient/getCopytradingLeadPreferences.js index 3ed1cb6..c7d782f 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadPreferences.js +++ b/examples/apidoc/RestClient/getCopytradingLeadPreferences.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-preference-currency // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1568 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadPrivateOpenPositions.js b/examples/apidoc/RestClient/getCopytradingLeadPrivateOpenPositions.js index fdef437..ba5a26e 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadPrivateOpenPositions.js +++ b/examples/apidoc/RestClient/getCopytradingLeadPrivateOpenPositions.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/performance-current-subpositions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1625 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadPrivatePositionHistory.js b/examples/apidoc/RestClient/getCopytradingLeadPrivatePositionHistory.js index 57a2054..a802320 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadPrivatePositionHistory.js +++ b/examples/apidoc/RestClient/getCopytradingLeadPrivatePositionHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/performance-subpositions-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1634 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadPrivatePreferences.js b/examples/apidoc/RestClient/getCopytradingLeadPrivatePreferences.js index b955d1e..146735f 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadPrivatePreferences.js +++ b/examples/apidoc/RestClient/getCopytradingLeadPrivatePreferences.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/preference-currency // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1618 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadPrivateRanks.js b/examples/apidoc/RestClient/getCopytradingLeadPrivateRanks.js index 6894b57..4d3b06b 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadPrivateRanks.js +++ b/examples/apidoc/RestClient/getCopytradingLeadPrivateRanks.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/lead-traders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1593 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadPrivateWeeklyPnl.js b/examples/apidoc/RestClient/getCopytradingLeadPrivateWeeklyPnl.js index 5742d3a..8b385e5 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadPrivateWeeklyPnl.js +++ b/examples/apidoc/RestClient/getCopytradingLeadPrivateWeeklyPnl.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/weekly-pnl // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1599 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadRanks.js b/examples/apidoc/RestClient/getCopytradingLeadRanks.js index c9008ed..2c51269 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadRanks.js +++ b/examples/apidoc/RestClient/getCopytradingLeadRanks.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-lead-traders // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1543 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadStats.js b/examples/apidoc/RestClient/getCopytradingLeadStats.js index 20f2069..657e649 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadStats.js +++ b/examples/apidoc/RestClient/getCopytradingLeadStats.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-stats // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1562 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadTradersHistory.js b/examples/apidoc/RestClient/getCopytradingLeadTradersHistory.js index 94e046f..0b02dc8 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadTradersHistory.js +++ b/examples/apidoc/RestClient/getCopytradingLeadTradersHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/lead-traders-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1531 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingLeadWeeklyPnl.js b/examples/apidoc/RestClient/getCopytradingLeadWeeklyPnl.js index 93334f2..c5ddfb2 100644 --- a/examples/apidoc/RestClient/getCopytradingLeadWeeklyPnl.js +++ b/examples/apidoc/RestClient/getCopytradingLeadWeeklyPnl.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/public-weekly-pnl // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1549 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingMyLeadTraders.js b/examples/apidoc/RestClient/getCopytradingMyLeadTraders.js index 2963a17..690fc6f 100644 --- a/examples/apidoc/RestClient/getCopytradingMyLeadTraders.js +++ b/examples/apidoc/RestClient/getCopytradingMyLeadTraders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/current-lead-traders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1525 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingPLeadPrivateDailyPnl.js b/examples/apidoc/RestClient/getCopytradingPLeadPrivateDailyPnl.js index b08930d..d9ea2ad 100644 --- a/examples/apidoc/RestClient/getCopytradingPLeadPrivateDailyPnl.js +++ b/examples/apidoc/RestClient/getCopytradingPLeadPrivateDailyPnl.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/pnl // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1606 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingProfitDetails.js b/examples/apidoc/RestClient/getCopytradingProfitDetails.js index de7b804..a68328f 100644 --- a/examples/apidoc/RestClient/getCopytradingProfitDetails.js +++ b/examples/apidoc/RestClient/getCopytradingProfitDetails.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/profit-sharing-details // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1405 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingSubpositions.js b/examples/apidoc/RestClient/getCopytradingSubpositions.js index 98decbc..967f982 100644 --- a/examples/apidoc/RestClient/getCopytradingSubpositions.js +++ b/examples/apidoc/RestClient/getCopytradingSubpositions.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/current-subpositions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1357 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingSubpositionsHistory.js b/examples/apidoc/RestClient/getCopytradingSubpositionsHistory.js index 1b8e5de..6310e3b 100644 --- a/examples/apidoc/RestClient/getCopytradingSubpositionsHistory.js +++ b/examples/apidoc/RestClient/getCopytradingSubpositionsHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/subpositions-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1363 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingTotalProfit.js b/examples/apidoc/RestClient/getCopytradingTotalProfit.js index 153d202..3efb4f1 100644 --- a/examples/apidoc/RestClient/getCopytradingTotalProfit.js +++ b/examples/apidoc/RestClient/getCopytradingTotalProfit.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/total-profit-sharing // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1414 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingTotalUnrealizedProfit.js b/examples/apidoc/RestClient/getCopytradingTotalUnrealizedProfit.js index 751183a..c111948 100644 --- a/examples/apidoc/RestClient/getCopytradingTotalUnrealizedProfit.js +++ b/examples/apidoc/RestClient/getCopytradingTotalUnrealizedProfit.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/total-unrealized-profit-sharing // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1429 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCopytradingUnrealizedProfit.js b/examples/apidoc/RestClient/getCopytradingUnrealizedProfit.js index fb6c6a1..ebe07b9 100644 --- a/examples/apidoc/RestClient/getCopytradingUnrealizedProfit.js +++ b/examples/apidoc/RestClient/getCopytradingUnrealizedProfit.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/unrealized-profit-sharing-details // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1420 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getCurrencies.js b/examples/apidoc/RestClient/getCurrencies.js index 885db16..5ff96ec 100644 --- a/examples/apidoc/RestClient/getCurrencies.js +++ b/examples/apidoc/RestClient/getCurrencies.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/currencies // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2360 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getDeliveryExerciseHistory.js b/examples/apidoc/RestClient/getDeliveryExerciseHistory.js index a573a1b..518c753 100644 --- a/examples/apidoc/RestClient/getDeliveryExerciseHistory.js +++ b/examples/apidoc/RestClient/getDeliveryExerciseHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/delivery-exercise-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2005 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getDepositAddress.js b/examples/apidoc/RestClient/getDepositAddress.js index 5e1711b..015862e 100644 --- a/examples/apidoc/RestClient/getDepositAddress.js +++ b/examples/apidoc/RestClient/getDepositAddress.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/deposit-address // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2408 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getDepositHistory.js b/examples/apidoc/RestClient/getDepositHistory.js index 02aa3fb..4a4d9c2 100644 --- a/examples/apidoc/RestClient/getDepositHistory.js +++ b/examples/apidoc/RestClient/getDepositHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/deposit-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2412 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getDepositWithdrawStatus.js b/examples/apidoc/RestClient/getDepositWithdrawStatus.js index ffc2983..53e5d46 100644 --- a/examples/apidoc/RestClient/getDepositWithdrawStatus.js +++ b/examples/apidoc/RestClient/getDepositWithdrawStatus.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/deposit-withdraw-status // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2440 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getDiscountRateAndInterestFreeQuota.js b/examples/apidoc/RestClient/getDiscountRateAndInterestFreeQuota.js index 8d67425..58cbcab 100644 --- a/examples/apidoc/RestClient/getDiscountRateAndInterestFreeQuota.js +++ b/examples/apidoc/RestClient/getDiscountRateAndInterestFreeQuota.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/discount-rate-interest-free-quota // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2033 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getETHStakingBalance.js b/examples/apidoc/RestClient/getETHStakingBalance.js index a129ef8..db45129 100644 --- a/examples/apidoc/RestClient/getETHStakingBalance.js +++ b/examples/apidoc/RestClient/getETHStakingBalance.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/eth/balance // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2704 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getETHStakingHistory.js b/examples/apidoc/RestClient/getETHStakingHistory.js index 459b11e..3d214d0 100644 --- a/examples/apidoc/RestClient/getETHStakingHistory.js +++ b/examples/apidoc/RestClient/getETHStakingHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/eth/purchase-redeem-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2708 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getEasyConvertCurrencies.js b/examples/apidoc/RestClient/getEasyConvertCurrencies.js index 73aaf17..72f4d89 100644 --- a/examples/apidoc/RestClient/getEasyConvertCurrencies.js +++ b/examples/apidoc/RestClient/getEasyConvertCurrencies.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/easy-convert-currency-list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L845 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getEasyConvertHistory.js b/examples/apidoc/RestClient/getEasyConvertHistory.js index ce68f89..6c3761b 100644 --- a/examples/apidoc/RestClient/getEasyConvertHistory.js +++ b/examples/apidoc/RestClient/getEasyConvertHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/easy-convert-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L867 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getEconomicCalendar.js b/examples/apidoc/RestClient/getEconomicCalendar.js index 30bc204..92ee47d 100644 --- a/examples/apidoc/RestClient/getEconomicCalendar.js +++ b/examples/apidoc/RestClient/getEconomicCalendar.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/economic-calendar // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2197 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getEstimatedDeliveryExercisePrice.js b/examples/apidoc/RestClient/getEstimatedDeliveryExercisePrice.js index 1f5e838..5ba8da1 100644 --- a/examples/apidoc/RestClient/getEstimatedDeliveryExercisePrice.js +++ b/examples/apidoc/RestClient/getEstimatedDeliveryExercisePrice.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/estimated-price // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2029 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getExchangeRate.js b/examples/apidoc/RestClient/getExchangeRate.js index 5d5b55b..296690a 100644 --- a/examples/apidoc/RestClient/getExchangeRate.js +++ b/examples/apidoc/RestClient/getExchangeRate.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/exchange-rate // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2189 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getExchanges.js b/examples/apidoc/RestClient/getExchanges.js index a85547a..d264aab 100644 --- a/examples/apidoc/RestClient/getExchanges.js +++ b/examples/apidoc/RestClient/getExchanges.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/exchange-list // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2450 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFeeRates.js b/examples/apidoc/RestClient/getFeeRates.js index 7d8578d..f2b615e 100644 --- a/examples/apidoc/RestClient/getFeeRates.js +++ b/examples/apidoc/RestClient/getFeeRates.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/trade-fee // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L445 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFeeRatesV2.js b/examples/apidoc/RestClient/getFeeRatesV2.js index 514295f..cf112ba 100644 --- a/examples/apidoc/RestClient/getFeeRatesV2.js +++ b/examples/apidoc/RestClient/getFeeRatesV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/trade-fee // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L461 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFills.js b/examples/apidoc/RestClient/getFills.js index 98af44f..e5bbee4 100644 --- a/examples/apidoc/RestClient/getFills.js +++ b/examples/apidoc/RestClient/getFills.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/fills // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L833 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFillsHistory.js b/examples/apidoc/RestClient/getFillsHistory.js index f74522e..90971e9 100644 --- a/examples/apidoc/RestClient/getFillsHistory.js +++ b/examples/apidoc/RestClient/getFillsHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/fills-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L840 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFixedLoanBorrowLimit.js b/examples/apidoc/RestClient/getFixedLoanBorrowLimit.js index 689f7b7..f5931a2 100644 --- a/examples/apidoc/RestClient/getFixedLoanBorrowLimit.js +++ b/examples/apidoc/RestClient/getFixedLoanBorrowLimit.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/borrowing-limit // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L574 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFixedLoanBorrowOrders.js b/examples/apidoc/RestClient/getFixedLoanBorrowOrders.js index 5ebde58..fab7a45 100644 --- a/examples/apidoc/RestClient/getFixedLoanBorrowOrders.js +++ b/examples/apidoc/RestClient/getFixedLoanBorrowOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/borrowing-orders-list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L664 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFixedLoanBorrowQuote.js b/examples/apidoc/RestClient/getFixedLoanBorrowQuote.js index a3c178d..73c6f89 100644 --- a/examples/apidoc/RestClient/getFixedLoanBorrowQuote.js +++ b/examples/apidoc/RestClient/getFixedLoanBorrowQuote.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/borrowing-quote // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L578 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFullOrderBook.js b/examples/apidoc/RestClient/getFullOrderBook.js index f948655..3633253 100644 --- a/examples/apidoc/RestClient/getFullOrderBook.js +++ b/examples/apidoc/RestClient/getFullOrderBook.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/books-full // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1672 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFundingRate.js b/examples/apidoc/RestClient/getFundingRate.js index 6dd3b0b..8a179d5 100644 --- a/examples/apidoc/RestClient/getFundingRate.js +++ b/examples/apidoc/RestClient/getFundingRate.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/funding-rate // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2013 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFundingRateHistory.js b/examples/apidoc/RestClient/getFundingRateHistory.js index 04150a5..05b9654 100644 --- a/examples/apidoc/RestClient/getFundingRateHistory.js +++ b/examples/apidoc/RestClient/getFundingRateHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/funding-rate-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2017 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getFundsTransferState.js b/examples/apidoc/RestClient/getFundsTransferState.js index 670e3e3..18029e2 100644 --- a/examples/apidoc/RestClient/getFundsTransferState.js +++ b/examples/apidoc/RestClient/getFundsTransferState.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/transfer-state // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2381 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getGreeks.js b/examples/apidoc/RestClient/getGreeks.js index d927f95..30ed6fb 100644 --- a/examples/apidoc/RestClient/getGreeks.js +++ b/examples/apidoc/RestClient/getGreeks.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/greeks // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L716 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getGridAIParameter.js b/examples/apidoc/RestClient/getGridAIParameter.js index 426c688..a1afb7c 100644 --- a/examples/apidoc/RestClient/getGridAIParameter.js +++ b/examples/apidoc/RestClient/getGridAIParameter.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/ai-param // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1126 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getGridAlgoOrderDetails.js b/examples/apidoc/RestClient/getGridAlgoOrderDetails.js index 3a8b65f..ae20bb6 100644 --- a/examples/apidoc/RestClient/getGridAlgoOrderDetails.js +++ b/examples/apidoc/RestClient/getGridAlgoOrderDetails.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/orders-algo-details // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1044 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getGridAlgoOrderHistory.js b/examples/apidoc/RestClient/getGridAlgoOrderHistory.js index e11b6f3..8440cf8 100644 --- a/examples/apidoc/RestClient/getGridAlgoOrderHistory.js +++ b/examples/apidoc/RestClient/getGridAlgoOrderHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/orders-algo-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1037 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getGridAlgoOrderList.js b/examples/apidoc/RestClient/getGridAlgoOrderList.js index 979d9d3..ad85344 100644 --- a/examples/apidoc/RestClient/getGridAlgoOrderList.js +++ b/examples/apidoc/RestClient/getGridAlgoOrderList.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/orders-algo-pending // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1030 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getGridAlgoOrderPositions.js b/examples/apidoc/RestClient/getGridAlgoOrderPositions.js index f5a3a00..5adb51f 100644 --- a/examples/apidoc/RestClient/getGridAlgoOrderPositions.js +++ b/examples/apidoc/RestClient/getGridAlgoOrderPositions.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/positions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1075 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getGridAlgoSubOrders.js b/examples/apidoc/RestClient/getGridAlgoSubOrders.js index e945035..09b9a50 100644 --- a/examples/apidoc/RestClient/getGridAlgoSubOrders.js +++ b/examples/apidoc/RestClient/getGridAlgoSubOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/sub-orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1054 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getHistoricCandles.js b/examples/apidoc/RestClient/getHistoricCandles.js index 58fa07b..f86d539 100644 --- a/examples/apidoc/RestClient/getHistoricCandles.js +++ b/examples/apidoc/RestClient/getHistoricCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/history-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1711 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getHistoricCandlesV2.js b/examples/apidoc/RestClient/getHistoricCandlesV2.js index 2458eaf..713ad2a 100644 --- a/examples/apidoc/RestClient/getHistoricCandlesV2.js +++ b/examples/apidoc/RestClient/getHistoricCandlesV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/history-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1723 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getHistoricIndexCandles.js b/examples/apidoc/RestClient/getHistoricIndexCandles.js index 9c4cdb3..a1726bc 100644 --- a/examples/apidoc/RestClient/getHistoricIndexCandles.js +++ b/examples/apidoc/RestClient/getHistoricIndexCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/history-index-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2119 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getHistoricIndexCandlesV2.js b/examples/apidoc/RestClient/getHistoricIndexCandlesV2.js index 46f92c0..6954a13 100644 --- a/examples/apidoc/RestClient/getHistoricIndexCandlesV2.js +++ b/examples/apidoc/RestClient/getHistoricIndexCandlesV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/history-index-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2131 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getHistoricMarkPriceCandles.js b/examples/apidoc/RestClient/getHistoricMarkPriceCandles.js index 2c759f7..c884cff 100644 --- a/examples/apidoc/RestClient/getHistoricMarkPriceCandles.js +++ b/examples/apidoc/RestClient/getHistoricMarkPriceCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/historic-mark-price-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2167 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getHistoricMarkPriceCandlesV2.js b/examples/apidoc/RestClient/getHistoricMarkPriceCandlesV2.js index a05ff4e..9e04d60 100644 --- a/examples/apidoc/RestClient/getHistoricMarkPriceCandlesV2.js +++ b/examples/apidoc/RestClient/getHistoricMarkPriceCandlesV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/history-mark-price-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2179 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getHistoricTrades.js b/examples/apidoc/RestClient/getHistoricTrades.js index 5489755..6ed596f 100644 --- a/examples/apidoc/RestClient/getHistoricTrades.js +++ b/examples/apidoc/RestClient/getHistoricTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/history-trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1731 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getIndexCandles.js b/examples/apidoc/RestClient/getIndexCandles.js index 53caae7..173b5bb 100644 --- a/examples/apidoc/RestClient/getIndexCandles.js +++ b/examples/apidoc/RestClient/getIndexCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/index-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2095 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getIndexCandlesV2.js b/examples/apidoc/RestClient/getIndexCandlesV2.js index 081dfb6..a0fc4d8 100644 --- a/examples/apidoc/RestClient/getIndexCandlesV2.js +++ b/examples/apidoc/RestClient/getIndexCandlesV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/index-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2107 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getIndexComponents.js b/examples/apidoc/RestClient/getIndexComponents.js index 8236ca0..91ec8f0 100644 --- a/examples/apidoc/RestClient/getIndexComponents.js +++ b/examples/apidoc/RestClient/getIndexComponents.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/index-components // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2193 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getIndexTickers.js b/examples/apidoc/RestClient/getIndexTickers.js index fc8d22f..5694fed 100644 --- a/examples/apidoc/RestClient/getIndexTickers.js +++ b/examples/apidoc/RestClient/getIndexTickers.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/index-tickers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2080 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getInstruments.js b/examples/apidoc/RestClient/getInstruments.js index a74eb4b..120da8f 100644 --- a/examples/apidoc/RestClient/getInstruments.js +++ b/examples/apidoc/RestClient/getInstruments.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/instruments // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1991 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getInsuranceFund.js b/examples/apidoc/RestClient/getInsuranceFund.js index 35b35bc..0e8e5dd 100644 --- a/examples/apidoc/RestClient/getInsuranceFund.js +++ b/examples/apidoc/RestClient/getInsuranceFund.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/insurance-fund // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2061 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getInterestAccrued.js b/examples/apidoc/RestClient/getInterestAccrued.js index 0ea5763..d57f330 100644 --- a/examples/apidoc/RestClient/getInterestAccrued.js +++ b/examples/apidoc/RestClient/getInterestAccrued.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/interest-accrued // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L471 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getInterestRate.js b/examples/apidoc/RestClient/getInterestRate.js index 7622fde..3dda29f 100644 --- a/examples/apidoc/RestClient/getInterestRate.js +++ b/examples/apidoc/RestClient/getInterestRate.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/interest-rate // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L483 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getInterestRateAndLoanQuota.js b/examples/apidoc/RestClient/getInterestRateAndLoanQuota.js index 76ad0cb..d566ac6 100644 --- a/examples/apidoc/RestClient/getInterestRateAndLoanQuota.js +++ b/examples/apidoc/RestClient/getInterestRateAndLoanQuota.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/interest-rate-loan-quota // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2049 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getInviteeDetail.js b/examples/apidoc/RestClient/getInviteeDetail.js index 920c22f..55d73bf 100644 --- a/examples/apidoc/RestClient/getInviteeDetail.js +++ b/examples/apidoc/RestClient/getInviteeDetail.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/affiliate/invitee/detail // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2817 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLendingAPYHistory.js b/examples/apidoc/RestClient/getLendingAPYHistory.js index 44587dd..b99c434 100644 --- a/examples/apidoc/RestClient/getLendingAPYHistory.js +++ b/examples/apidoc/RestClient/getLendingAPYHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/fixed-loan/lending-apy-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2778 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLendingHistory.js b/examples/apidoc/RestClient/getLendingHistory.js index a01ce72..f677c67 100644 --- a/examples/apidoc/RestClient/getLendingHistory.js +++ b/examples/apidoc/RestClient/getLendingHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/savings/lending-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2756 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLendingOffers.js b/examples/apidoc/RestClient/getLendingOffers.js index f052a5b..37cd055 100644 --- a/examples/apidoc/RestClient/getLendingOffers.js +++ b/examples/apidoc/RestClient/getLendingOffers.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/fixed-loan/lending-offers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2774 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLendingOrders.js b/examples/apidoc/RestClient/getLendingOrders.js index fd830d0..5fd122d 100644 --- a/examples/apidoc/RestClient/getLendingOrders.js +++ b/examples/apidoc/RestClient/getLendingOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/fixed-loan/lending-orders-list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2797 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLendingSubOrders.js b/examples/apidoc/RestClient/getLendingSubOrders.js index ae6a60c..89a7f98 100644 --- a/examples/apidoc/RestClient/getLendingSubOrders.js +++ b/examples/apidoc/RestClient/getLendingSubOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/fixed-loan/lending-sub-orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2804 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLendingVolume.js b/examples/apidoc/RestClient/getLendingVolume.js index 4b843a9..d147120 100644 --- a/examples/apidoc/RestClient/getLendingVolume.js +++ b/examples/apidoc/RestClient/getLendingVolume.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/fixed-loan/pending-lending-volume // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2782 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLeverage.js b/examples/apidoc/RestClient/getLeverage.js index 9cdd32a..47bcdc0 100644 --- a/examples/apidoc/RestClient/getLeverage.js +++ b/examples/apidoc/RestClient/getLeverage.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/leverage-info // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L403 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLeverageEstimatedInfo.js b/examples/apidoc/RestClient/getLeverageEstimatedInfo.js index 4165045..9eef017 100644 --- a/examples/apidoc/RestClient/getLeverageEstimatedInfo.js +++ b/examples/apidoc/RestClient/getLeverageEstimatedInfo.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/adjust-leverage-info // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L418 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLeverageV2.js b/examples/apidoc/RestClient/getLeverageV2.js index 9f79561..a3a8c70 100644 --- a/examples/apidoc/RestClient/getLeverageV2.js +++ b/examples/apidoc/RestClient/getLeverageV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/leverage-info // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L410 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLightningDeposits.js b/examples/apidoc/RestClient/getLightningDeposits.js index 7b92484..f748348 100644 --- a/examples/apidoc/RestClient/getLightningDeposits.js +++ b/examples/apidoc/RestClient/getLightningDeposits.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/deposit-lightning // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2400 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLiquidationOrders.js b/examples/apidoc/RestClient/getLiquidationOrders.js index 2d55e08..8c2b999 100644 --- a/examples/apidoc/RestClient/getLiquidationOrders.js +++ b/examples/apidoc/RestClient/getLiquidationOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/liquidation-orders // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2213 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLongShortContractRatio.js b/examples/apidoc/RestClient/getLongShortContractRatio.js index 895bbfd..682060f 100644 --- a/examples/apidoc/RestClient/getLongShortContractRatio.js +++ b/examples/apidoc/RestClient/getLongShortContractRatio.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/contracts/long-short-account-ratio-contract // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2279 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getLongShortRatio.js b/examples/apidoc/RestClient/getLongShortRatio.js index 170b358..0c8aa89 100644 --- a/examples/apidoc/RestClient/getLongShortRatio.js +++ b/examples/apidoc/RestClient/getLongShortRatio.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/contracts/long-short-account-ratio // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2288 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMMPConfig.js b/examples/apidoc/RestClient/getMMPConfig.js index 21e1ea4..5b750ea 100644 --- a/examples/apidoc/RestClient/getMMPConfig.js +++ b/examples/apidoc/RestClient/getMMPConfig.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/mmp-config // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L766 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getManagedSubAccountTransferHistory.js b/examples/apidoc/RestClient/getManagedSubAccountTransferHistory.js index 9142f7a..4363fe3 100644 --- a/examples/apidoc/RestClient/getManagedSubAccountTransferHistory.js +++ b/examples/apidoc/RestClient/getManagedSubAccountTransferHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/subaccount/managed-subaccount-bills // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2547 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMarginLendingRatio.js b/examples/apidoc/RestClient/getMarginLendingRatio.js index 5a2135a..b2c8f5d 100644 --- a/examples/apidoc/RestClient/getMarginLendingRatio.js +++ b/examples/apidoc/RestClient/getMarginLendingRatio.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/margin/loan-ratio // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2252 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMarkPrice.js b/examples/apidoc/RestClient/getMarkPrice.js index bb562e5..e964f31 100644 --- a/examples/apidoc/RestClient/getMarkPrice.js +++ b/examples/apidoc/RestClient/getMarkPrice.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/mark-price // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2041 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMarkPriceCandles.js b/examples/apidoc/RestClient/getMarkPriceCandles.js index 511b95d..51f5fa0 100644 --- a/examples/apidoc/RestClient/getMarkPriceCandles.js +++ b/examples/apidoc/RestClient/getMarkPriceCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/mark-price-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2143 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMarkPriceCandlesV2.js b/examples/apidoc/RestClient/getMarkPriceCandlesV2.js index 388b3c8..0a1072b 100644 --- a/examples/apidoc/RestClient/getMarkPriceCandlesV2.js +++ b/examples/apidoc/RestClient/getMarkPriceCandlesV2.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/mark-price-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2155 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMaxAvailableTradableAmount.js b/examples/apidoc/RestClient/getMaxAvailableTradableAmount.js index b0a2aca..4b5cede 100644 --- a/examples/apidoc/RestClient/getMaxAvailableTradableAmount.js +++ b/examples/apidoc/RestClient/getMaxAvailableTradableAmount.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/max-avail-size // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L384 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMaxBuySellAmount.js b/examples/apidoc/RestClient/getMaxBuySellAmount.js index d927983..c7fd497 100644 --- a/examples/apidoc/RestClient/getMaxBuySellAmount.js +++ b/examples/apidoc/RestClient/getMaxBuySellAmount.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/max-size // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L373 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMaxGridQuantity.js b/examples/apidoc/RestClient/getMaxGridQuantity.js index 0716d89..613b4db 100644 --- a/examples/apidoc/RestClient/getMaxGridQuantity.js +++ b/examples/apidoc/RestClient/getMaxGridQuantity.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/grid-quantity // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1155 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMaxLoan.js b/examples/apidoc/RestClient/getMaxLoan.js index 71db3be..1a80101 100644 --- a/examples/apidoc/RestClient/getMaxLoan.js +++ b/examples/apidoc/RestClient/getMaxLoan.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/max-loan // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L429 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMaxWithdrawals.js b/examples/apidoc/RestClient/getMaxWithdrawals.js index c173c3e..15401a5 100644 --- a/examples/apidoc/RestClient/getMaxWithdrawals.js +++ b/examples/apidoc/RestClient/getMaxWithdrawals.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/max-withdrawal // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L501 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMinMaxLimitPrice.js b/examples/apidoc/RestClient/getMinMaxLimitPrice.js index 2f058e6..3414c5b 100644 --- a/examples/apidoc/RestClient/getMinMaxLimitPrice.js +++ b/examples/apidoc/RestClient/getMinMaxLimitPrice.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/price-limit // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2021 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getMonthlyStatement.js b/examples/apidoc/RestClient/getMonthlyStatement.js index 3dd0492..659dd85 100644 --- a/examples/apidoc/RestClient/getMonthlyStatement.js +++ b/examples/apidoc/RestClient/getMonthlyStatement.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/monthly-statement // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2458 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getNonTradableAssets.js b/examples/apidoc/RestClient/getNonTradableAssets.js index 91aa1cf..e675742 100644 --- a/examples/apidoc/RestClient/getNonTradableAssets.js +++ b/examples/apidoc/RestClient/getNonTradableAssets.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/non-tradable-assets // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2368 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOneClickRepayCurrencyList.js b/examples/apidoc/RestClient/getOneClickRepayCurrencyList.js index 05969a9..013a9fa 100644 --- a/examples/apidoc/RestClient/getOneClickRepayCurrencyList.js +++ b/examples/apidoc/RestClient/getOneClickRepayCurrencyList.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/one-click-repay-currency-list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L875 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOneClickRepayHistory.js b/examples/apidoc/RestClient/getOneClickRepayHistory.js index c928c24..c423522 100644 --- a/examples/apidoc/RestClient/getOneClickRepayHistory.js +++ b/examples/apidoc/RestClient/getOneClickRepayHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/one-click-repay-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L899 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOpenInterest.js b/examples/apidoc/RestClient/getOpenInterest.js index d41205a..d10ec92 100644 --- a/examples/apidoc/RestClient/getOpenInterest.js +++ b/examples/apidoc/RestClient/getOpenInterest.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/open-interest // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2009 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOpenInterestAndVolumeExpiry.js b/examples/apidoc/RestClient/getOpenInterestAndVolumeExpiry.js index 0a4d682..38b732c 100644 --- a/examples/apidoc/RestClient/getOpenInterestAndVolumeExpiry.js +++ b/examples/apidoc/RestClient/getOpenInterestAndVolumeExpiry.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/option/open-interest-volume-expiry // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2329 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOpenInterestAndVolumeStrike.js b/examples/apidoc/RestClient/getOpenInterestAndVolumeStrike.js index cc9fca7..ae5a276 100644 --- a/examples/apidoc/RestClient/getOpenInterestAndVolumeStrike.js +++ b/examples/apidoc/RestClient/getOpenInterestAndVolumeStrike.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/option/open-interest-volume-strike // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2339 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOpenInterestHistory.js b/examples/apidoc/RestClient/getOpenInterestHistory.js index 5b842c8..0d45221 100644 --- a/examples/apidoc/RestClient/getOpenInterestHistory.js +++ b/examples/apidoc/RestClient/getOpenInterestHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/contracts/open-interest-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2227 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOptionMarketData.js b/examples/apidoc/RestClient/getOptionMarketData.js index 9933c66..c76f83e 100644 --- a/examples/apidoc/RestClient/getOptionMarketData.js +++ b/examples/apidoc/RestClient/getOptionMarketData.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/opt-summary // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2025 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOptionTickBands.js b/examples/apidoc/RestClient/getOptionTickBands.js index eb001d7..ec0ceaa 100644 --- a/examples/apidoc/RestClient/getOptionTickBands.js +++ b/examples/apidoc/RestClient/getOptionTickBands.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/instrument-tick-bands // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2069 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOptionTrades.js b/examples/apidoc/RestClient/getOptionTrades.js index a18907a..0ad2e4c 100644 --- a/examples/apidoc/RestClient/getOptionTrades.js +++ b/examples/apidoc/RestClient/getOptionTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/option-trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1749 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOptionTradesByInstrument.js b/examples/apidoc/RestClient/getOptionTradesByInstrument.js index 2d70ee9..b09a030 100644 --- a/examples/apidoc/RestClient/getOptionTradesByInstrument.js +++ b/examples/apidoc/RestClient/getOptionTradesByInstrument.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/option/instrument-family-trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1743 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOptionsOpenInterestAndVolume.js b/examples/apidoc/RestClient/getOptionsOpenInterestAndVolume.js index acaa22f..936b76b 100644 --- a/examples/apidoc/RestClient/getOptionsOpenInterestAndVolume.js +++ b/examples/apidoc/RestClient/getOptionsOpenInterestAndVolume.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/option/open-interest-volume // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2312 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOracle.js b/examples/apidoc/RestClient/getOracle.js index 948638c..ac60b1d 100644 --- a/examples/apidoc/RestClient/getOracle.js +++ b/examples/apidoc/RestClient/getOracle.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/open-oracle // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2185 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOrderBook.js b/examples/apidoc/RestClient/getOrderBook.js index d864eb2..0924c19 100644 --- a/examples/apidoc/RestClient/getOrderBook.js +++ b/examples/apidoc/RestClient/getOrderBook.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/books // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1668 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOrderDetails.js b/examples/apidoc/RestClient/getOrderDetails.js index 8a64a2e..0e90b8a 100644 --- a/examples/apidoc/RestClient/getOrderDetails.js +++ b/examples/apidoc/RestClient/getOrderDetails.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/order // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L806 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOrderHistory.js b/examples/apidoc/RestClient/getOrderHistory.js index c956078..fa2ce32 100644 --- a/examples/apidoc/RestClient/getOrderHistory.js +++ b/examples/apidoc/RestClient/getOrderHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/orders-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L817 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOrderHistoryArchive.js b/examples/apidoc/RestClient/getOrderHistoryArchive.js index 098365e..0690e2e 100644 --- a/examples/apidoc/RestClient/getOrderHistoryArchive.js +++ b/examples/apidoc/RestClient/getOrderHistoryArchive.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/orders-history-archive // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L824 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getOrderList.js b/examples/apidoc/RestClient/getOrderList.js index 24f357b..4ad6288 100644 --- a/examples/apidoc/RestClient/getOrderList.js +++ b/examples/apidoc/RestClient/getOrderList.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/orders-pending // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L810 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPMLimitation.js b/examples/apidoc/RestClient/getPMLimitation.js index 7417cdc..5e86461 100644 --- a/examples/apidoc/RestClient/getPMLimitation.js +++ b/examples/apidoc/RestClient/getPMLimitation.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/position-tiers // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L720 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPositionTiers.js b/examples/apidoc/RestClient/getPositionTiers.js index fa3d303..4d9af99 100644 --- a/examples/apidoc/RestClient/getPositionTiers.js +++ b/examples/apidoc/RestClient/getPositionTiers.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/position-tiers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2045 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPositions.js b/examples/apidoc/RestClient/getPositions.js index d418c6e..e44e6f1 100644 --- a/examples/apidoc/RestClient/getPositions.js +++ b/examples/apidoc/RestClient/getPositions.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/positions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L306 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPositionsHistory.js b/examples/apidoc/RestClient/getPositionsHistory.js index e5e8699..7530b08 100644 --- a/examples/apidoc/RestClient/getPositionsHistory.js +++ b/examples/apidoc/RestClient/getPositionsHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/positions-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L310 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPremiumHistory.js b/examples/apidoc/RestClient/getPremiumHistory.js index ff9dbc3..4a98042 100644 --- a/examples/apidoc/RestClient/getPremiumHistory.js +++ b/examples/apidoc/RestClient/getPremiumHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/premium-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2076 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPublicBlockTrades.js b/examples/apidoc/RestClient/getPublicBlockTrades.js index 47ebff8..cf8abf4 100644 --- a/examples/apidoc/RestClient/getPublicBlockTrades.js +++ b/examples/apidoc/RestClient/getPublicBlockTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/block-trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2206 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPublicBorrowHistory.js b/examples/apidoc/RestClient/getPublicBorrowHistory.js index 21f70e7..b4358c5 100644 --- a/examples/apidoc/RestClient/getPublicBorrowHistory.js +++ b/examples/apidoc/RestClient/getPublicBorrowHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/savings/lending-rate-history // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2764 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPublicBorrowInfo.js b/examples/apidoc/RestClient/getPublicBorrowInfo.js index cd4bdfe..be202cb 100644 --- a/examples/apidoc/RestClient/getPublicBorrowInfo.js +++ b/examples/apidoc/RestClient/getPublicBorrowInfo.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/savings/lending-rate-summary // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2760 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPublicRFQBlockTrades.js b/examples/apidoc/RestClient/getPublicRFQBlockTrades.js index a46c0e7..a32b0c1 100644 --- a/examples/apidoc/RestClient/getPublicRFQBlockTrades.js +++ b/examples/apidoc/RestClient/getPublicRFQBlockTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/public-trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1865 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getPutCallRatio.js b/examples/apidoc/RestClient/getPutCallRatio.js index c6ae2a8..2858b7a 100644 --- a/examples/apidoc/RestClient/getPutCallRatio.js +++ b/examples/apidoc/RestClient/getPutCallRatio.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/option/open-interest-volume-ratio // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2319 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getQuickMarginBorrowRepayHistory.js b/examples/apidoc/RestClient/getQuickMarginBorrowRepayHistory.js index a9fa8f3..08fd7fe 100644 --- a/examples/apidoc/RestClient/getQuickMarginBorrowRepayHistory.js +++ b/examples/apidoc/RestClient/getQuickMarginBorrowRepayHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/quick-margin-borrow-repay-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L518 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getQuoteProducts.js b/examples/apidoc/RestClient/getQuoteProducts.js index 3b5add3..b1a54cb 100644 --- a/examples/apidoc/RestClient/getQuoteProducts.js +++ b/examples/apidoc/RestClient/getQuoteProducts.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/maker-instrument-settings // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1793 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getRSIBackTesting.js b/examples/apidoc/RestClient/getRSIBackTesting.js index f94533d..e3120f1 100644 --- a/examples/apidoc/RestClient/getRSIBackTesting.js +++ b/examples/apidoc/RestClient/getRSIBackTesting.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/public/rsi-back-testing // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1147 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getRecurringBuyOrderDetails.js b/examples/apidoc/RestClient/getRecurringBuyOrderDetails.js index 8583c3c..8f444b4 100644 --- a/examples/apidoc/RestClient/getRecurringBuyOrderDetails.js +++ b/examples/apidoc/RestClient/getRecurringBuyOrderDetails.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/recurring/orders-algo-details // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1336 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getRecurringBuyOrderHistory.js b/examples/apidoc/RestClient/getRecurringBuyOrderHistory.js index b2c1b12..5308193 100644 --- a/examples/apidoc/RestClient/getRecurringBuyOrderHistory.js +++ b/examples/apidoc/RestClient/getRecurringBuyOrderHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/recurring/orders-algo-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1327 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getRecurringBuyOrders.js b/examples/apidoc/RestClient/getRecurringBuyOrders.js index 6094149..23a0a0c 100644 --- a/examples/apidoc/RestClient/getRecurringBuyOrders.js +++ b/examples/apidoc/RestClient/getRecurringBuyOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/recurring/orders-algo-pending // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1318 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getRecurringBuySubOrders.js b/examples/apidoc/RestClient/getRecurringBuySubOrders.js index 275e455..a6d6675 100644 --- a/examples/apidoc/RestClient/getRecurringBuySubOrders.js +++ b/examples/apidoc/RestClient/getRecurringBuySubOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/recurring/sub-orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1345 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getRequestedBillsHistoryLink.js b/examples/apidoc/RestClient/getRequestedBillsHistoryLink.js index fd9b32f..4f9c028 100644 --- a/examples/apidoc/RestClient/getRequestedBillsHistoryLink.js +++ b/examples/apidoc/RestClient/getRequestedBillsHistoryLink.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/bills-history-archive // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L353 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSavingBalance.js b/examples/apidoc/RestClient/getSavingBalance.js index 780498c..0dd6197 100644 --- a/examples/apidoc/RestClient/getSavingBalance.js +++ b/examples/apidoc/RestClient/getSavingBalance.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/savings/balance // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2731 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSignalBotEventHistory.js b/examples/apidoc/RestClient/getSignalBotEventHistory.js index e441c66..43ce804 100644 --- a/examples/apidoc/RestClient/getSignalBotEventHistory.js +++ b/examples/apidoc/RestClient/getSignalBotEventHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/event-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1282 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSignalBotHistory.js b/examples/apidoc/RestClient/getSignalBotHistory.js index 6db19e3..d2ff89c 100644 --- a/examples/apidoc/RestClient/getSignalBotHistory.js +++ b/examples/apidoc/RestClient/getSignalBotHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/orders-algo-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1236 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSignalBotOrder.js b/examples/apidoc/RestClient/getSignalBotOrder.js index 855e56d..959b990 100644 --- a/examples/apidoc/RestClient/getSignalBotOrder.js +++ b/examples/apidoc/RestClient/getSignalBotOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/orders-algo-details // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1219 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSignalBotPositionHistory.js b/examples/apidoc/RestClient/getSignalBotPositionHistory.js index df1dc44..8334ed4 100644 --- a/examples/apidoc/RestClient/getSignalBotPositionHistory.js +++ b/examples/apidoc/RestClient/getSignalBotPositionHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/positions-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1250 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSignalBotPositions.js b/examples/apidoc/RestClient/getSignalBotPositions.js index 75668f1..0501714 100644 --- a/examples/apidoc/RestClient/getSignalBotPositions.js +++ b/examples/apidoc/RestClient/getSignalBotPositions.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/positions // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1243 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSignalBotSubOrders.js b/examples/apidoc/RestClient/getSignalBotSubOrders.js index 9400cdd..ffc29d0 100644 --- a/examples/apidoc/RestClient/getSignalBotSubOrders.js +++ b/examples/apidoc/RestClient/getSignalBotSubOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/sub-orders // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1278 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSignals.js b/examples/apidoc/RestClient/getSignals.js index 9f26c98..d9c8ecc 100644 --- a/examples/apidoc/RestClient/getSignals.js +++ b/examples/apidoc/RestClient/getSignals.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/signals // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1173 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadActiveOrders.js b/examples/apidoc/RestClient/getSpreadActiveOrders.js index c4ee7df..09033c2 100644 --- a/examples/apidoc/RestClient/getSpreadActiveOrders.js +++ b/examples/apidoc/RestClient/getSpreadActiveOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/orders-pending // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1923 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadCandles.js b/examples/apidoc/RestClient/getSpreadCandles.js index 7aa16c1..169ec7d 100644 --- a/examples/apidoc/RestClient/getSpreadCandles.js +++ b/examples/apidoc/RestClient/getSpreadCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/sprd-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1966 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadHistoryCandles.js b/examples/apidoc/RestClient/getSpreadHistoryCandles.js index 199e4c5..4bb0530 100644 --- a/examples/apidoc/RestClient/getSpreadHistoryCandles.js +++ b/examples/apidoc/RestClient/getSpreadHistoryCandles.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/sprd-history-candles // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1970 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadOrder.js b/examples/apidoc/RestClient/getSpreadOrder.js index a142671..95c2176 100644 --- a/examples/apidoc/RestClient/getSpreadOrder.js +++ b/examples/apidoc/RestClient/getSpreadOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/order // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1916 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadOrderBook.js b/examples/apidoc/RestClient/getSpreadOrderBook.js index f0bcffa..cb6c3da 100644 --- a/examples/apidoc/RestClient/getSpreadOrderBook.js +++ b/examples/apidoc/RestClient/getSpreadOrderBook.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/books // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1949 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadOrdersArchive.js b/examples/apidoc/RestClient/getSpreadOrdersArchive.js index b5e26f1..518722e 100644 --- a/examples/apidoc/RestClient/getSpreadOrdersArchive.js +++ b/examples/apidoc/RestClient/getSpreadOrdersArchive.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/orders-history-archive // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1935 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadOrdersRecent.js b/examples/apidoc/RestClient/getSpreadOrdersRecent.js index e7d01f2..b44fafe 100644 --- a/examples/apidoc/RestClient/getSpreadOrdersRecent.js +++ b/examples/apidoc/RestClient/getSpreadOrdersRecent.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/orders-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1929 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadPublicTrades.js b/examples/apidoc/RestClient/getSpreadPublicTrades.js index 440a641..9506424 100644 --- a/examples/apidoc/RestClient/getSpreadPublicTrades.js +++ b/examples/apidoc/RestClient/getSpreadPublicTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/public-trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1960 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadTicker.js b/examples/apidoc/RestClient/getSpreadTicker.js index b1269d3..990dbf2 100644 --- a/examples/apidoc/RestClient/getSpreadTicker.js +++ b/examples/apidoc/RestClient/getSpreadTicker.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/sprd-ticker // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1956 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreadTrades.js b/examples/apidoc/RestClient/getSpreadTrades.js index 3f774f6..0a58880 100644 --- a/examples/apidoc/RestClient/getSpreadTrades.js +++ b/examples/apidoc/RestClient/getSpreadTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/trades // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1941 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSpreads.js b/examples/apidoc/RestClient/getSpreads.js index 18bf47f..e09075d 100644 --- a/examples/apidoc/RestClient/getSpreads.js +++ b/examples/apidoc/RestClient/getSpreads.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/spreads // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1945 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getStakingOffers.js b/examples/apidoc/RestClient/getStakingOffers.js index 89bd7a1..c1240ac 100644 --- a/examples/apidoc/RestClient/getStakingOffers.js +++ b/examples/apidoc/RestClient/getStakingOffers.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/offers // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2611 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getStakingOrderHistory.js b/examples/apidoc/RestClient/getStakingOrderHistory.js index 4b521a5..d2a6a0c 100644 --- a/examples/apidoc/RestClient/getStakingOrderHistory.js +++ b/examples/apidoc/RestClient/getStakingOrderHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/orders-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2673 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSubAccountBalances.js b/examples/apidoc/RestClient/getSubAccountBalances.js index 11c9361..4ab7d1e 100644 --- a/examples/apidoc/RestClient/getSubAccountBalances.js +++ b/examples/apidoc/RestClient/getSubAccountBalances.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/subaccount/balances // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2514 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSubAccountBorrowInterestAndLimit.js b/examples/apidoc/RestClient/getSubAccountBorrowInterestAndLimit.js index 563eebb..671bdd7 100644 --- a/examples/apidoc/RestClient/getSubAccountBorrowInterestAndLimit.js +++ b/examples/apidoc/RestClient/getSubAccountBorrowInterestAndLimit.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/subaccount/interest-limits // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2594 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSubAccountCustodyTradingList.js b/examples/apidoc/RestClient/getSubAccountCustodyTradingList.js index 6630c0f..1c47e2b 100644 --- a/examples/apidoc/RestClient/getSubAccountCustodyTradingList.js +++ b/examples/apidoc/RestClient/getSubAccountCustodyTradingList.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/users/entrust-subaccount-list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2575 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSubAccountFundingBalances.js b/examples/apidoc/RestClient/getSubAccountFundingBalances.js index f9d483d..626c281 100644 --- a/examples/apidoc/RestClient/getSubAccountFundingBalances.js +++ b/examples/apidoc/RestClient/getSubAccountFundingBalances.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/subaccount/balances // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2519 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSubAccountList.js b/examples/apidoc/RestClient/getSubAccountList.js index 398040b..8a45c12 100644 --- a/examples/apidoc/RestClient/getSubAccountList.js +++ b/examples/apidoc/RestClient/getSubAccountList.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/users/subaccount/list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2492 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSubAccountMaxWithdrawal.js b/examples/apidoc/RestClient/getSubAccountMaxWithdrawal.js index 2b74d22..ebcbab6 100644 --- a/examples/apidoc/RestClient/getSubAccountMaxWithdrawal.js +++ b/examples/apidoc/RestClient/getSubAccountMaxWithdrawal.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/subaccount/max-withdrawal // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2529 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSubAccountTransferHistory.js b/examples/apidoc/RestClient/getSubAccountTransferHistory.js index a1256e8..ee23898 100644 --- a/examples/apidoc/RestClient/getSubAccountTransferHistory.js +++ b/examples/apidoc/RestClient/getSubAccountTransferHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/subaccount/bills // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2536 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSupportCoin.js b/examples/apidoc/RestClient/getSupportCoin.js index a03ea12..756a0fe 100644 --- a/examples/apidoc/RestClient/getSupportCoin.js +++ b/examples/apidoc/RestClient/getSupportCoin.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/trading-data/support-coin // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2223 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSystemStatus.js b/examples/apidoc/RestClient/getSystemStatus.js index 3d6cd02..c650f0b 100644 --- a/examples/apidoc/RestClient/getSystemStatus.js +++ b/examples/apidoc/RestClient/getSystemStatus.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/system/status // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2831 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getSystemTime.js b/examples/apidoc/RestClient/getSystemTime.js index a105586..0acd75e 100644 --- a/examples/apidoc/RestClient/getSystemTime.js +++ b/examples/apidoc/RestClient/getSystemTime.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/time // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2037 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTakerFlow.js b/examples/apidoc/RestClient/getTakerFlow.js index 0539beb..78241b1 100644 --- a/examples/apidoc/RestClient/getTakerFlow.js +++ b/examples/apidoc/RestClient/getTakerFlow.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/option/taker-block-volume // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2350 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTakerVolume.js b/examples/apidoc/RestClient/getTakerVolume.js index e09d06c..52f4819 100644 --- a/examples/apidoc/RestClient/getTakerVolume.js +++ b/examples/apidoc/RestClient/getTakerVolume.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/taker-volume // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2236 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTicker.js b/examples/apidoc/RestClient/getTicker.js index 2a5ce0e..31c71c1 100644 --- a/examples/apidoc/RestClient/getTicker.js +++ b/examples/apidoc/RestClient/getTicker.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/ticker // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1662 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTickers.js b/examples/apidoc/RestClient/getTickers.js index b3067f5..36253e9 100644 --- a/examples/apidoc/RestClient/getTickers.js +++ b/examples/apidoc/RestClient/getTickers.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/tickers // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1655 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTopTradersAccountRatio.js b/examples/apidoc/RestClient/getTopTradersAccountRatio.js index 4d23b71..3b00232 100644 --- a/examples/apidoc/RestClient/getTopTradersAccountRatio.js +++ b/examples/apidoc/RestClient/getTopTradersAccountRatio.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/contracts/long-short-account-ratio-contract-top-trader // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2261 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTopTradersContractPositionRatio.js b/examples/apidoc/RestClient/getTopTradersContractPositionRatio.js index 242fe57..7d09cc1 100644 --- a/examples/apidoc/RestClient/getTopTradersContractPositionRatio.js +++ b/examples/apidoc/RestClient/getTopTradersContractPositionRatio.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rubik/stat/contracts/long-short-position-ratio-contract-top-trader // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2270 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTrades.js b/examples/apidoc/RestClient/getTrades.js index 1a910eb..94ce3e0 100644 --- a/examples/apidoc/RestClient/getTrades.js +++ b/examples/apidoc/RestClient/getTrades.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/market/trades // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1727 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getTransactionDetailsArchiveLink.js b/examples/apidoc/RestClient/getTransactionDetailsArchiveLink.js deleted file mode 100644 index 2a79ebc..0000000 --- a/examples/apidoc/RestClient/getTransactionDetailsArchiveLink.js +++ /dev/null @@ -1,19 +0,0 @@ -const { RestClient } = require('okx-api'); - - // ENDPOINT: /api/v5/trade/fills-archive - // METHOD: GET - // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L835 - -const client = new RestClient({ - apiKey: 'insert_api_key_here', - apiSecret: 'insert_api_secret_here', -}); - -client.getTransactionDetailsArchiveLink(params) - .then(response => { - console.log(response); - }) - .catch(error => { - console.error(error); - }); diff --git a/examples/apidoc/RestClient/getUnderlying.js b/examples/apidoc/RestClient/getUnderlying.js index 88e5894..ab7dd78 100644 --- a/examples/apidoc/RestClient/getUnderlying.js +++ b/examples/apidoc/RestClient/getUnderlying.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/underlying // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2057 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getUnitConvert.js b/examples/apidoc/RestClient/getUnitConvert.js index fa074cb..a42c42a 100644 --- a/examples/apidoc/RestClient/getUnitConvert.js +++ b/examples/apidoc/RestClient/getUnitConvert.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/convert-contract-coin // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2065 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getVIPInterestAccrued.js b/examples/apidoc/RestClient/getVIPInterestAccrued.js index e63c7e6..aa77061 100644 --- a/examples/apidoc/RestClient/getVIPInterestAccrued.js +++ b/examples/apidoc/RestClient/getVIPInterestAccrued.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/vip-interest-accrued // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L545 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getVIPInterestDeducted.js b/examples/apidoc/RestClient/getVIPInterestDeducted.js index 3cfaf84..8fda942 100644 --- a/examples/apidoc/RestClient/getVIPInterestDeducted.js +++ b/examples/apidoc/RestClient/getVIPInterestDeducted.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/vip-interest-deducted // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L549 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getVIPInterestRateAndLoanQuota.js b/examples/apidoc/RestClient/getVIPInterestRateAndLoanQuota.js index f9c4c50..35995c8 100644 --- a/examples/apidoc/RestClient/getVIPInterestRateAndLoanQuota.js +++ b/examples/apidoc/RestClient/getVIPInterestRateAndLoanQuota.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/public/vip-interest-rate-loan-quota // METHOD: GET // PUBLIC: YES - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2053 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getVIPLoanBorrowRepayHistory.js b/examples/apidoc/RestClient/getVIPLoanBorrowRepayHistory.js index 5079cf0..02dbf17 100644 --- a/examples/apidoc/RestClient/getVIPLoanBorrowRepayHistory.js +++ b/examples/apidoc/RestClient/getVIPLoanBorrowRepayHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/borrow-repay-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L541 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getVIPLoanOrder.js b/examples/apidoc/RestClient/getVIPLoanOrder.js index 619bcdb..3682baf 100644 --- a/examples/apidoc/RestClient/getVIPLoanOrder.js +++ b/examples/apidoc/RestClient/getVIPLoanOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/vip-loan-order-detail // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L561 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getVIPLoanOrders.js b/examples/apidoc/RestClient/getVIPLoanOrders.js index a97db84..bc93591 100644 --- a/examples/apidoc/RestClient/getVIPLoanOrders.js +++ b/examples/apidoc/RestClient/getVIPLoanOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/vip-loan-order-list // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L555 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/getWithdrawalHistory.js b/examples/apidoc/RestClient/getWithdrawalHistory.js index e82f664..a2ad693 100644 --- a/examples/apidoc/RestClient/getWithdrawalHistory.js +++ b/examples/apidoc/RestClient/getWithdrawalHistory.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/withdrawal-history // METHOD: GET // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2436 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/instantTriggerGridAlgoOrder.js b/examples/apidoc/RestClient/instantTriggerGridAlgoOrder.js index d282e6e..7eee4b5 100644 --- a/examples/apidoc/RestClient/instantTriggerGridAlgoOrder.js +++ b/examples/apidoc/RestClient/instantTriggerGridAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/order-instant-trigger // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1018 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/manualBorrowRepay.js b/examples/apidoc/RestClient/manualBorrowRepay.js index 453c30c..7684006 100644 --- a/examples/apidoc/RestClient/manualBorrowRepay.js +++ b/examples/apidoc/RestClient/manualBorrowRepay.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/spot-manual-borrow-repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L673 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/manualRenewFixedLoanBorrowOrder.js b/examples/apidoc/RestClient/manualRenewFixedLoanBorrowOrder.js index fe0d735..3932b43 100644 --- a/examples/apidoc/RestClient/manualRenewFixedLoanBorrowOrder.js +++ b/examples/apidoc/RestClient/manualRenewFixedLoanBorrowOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/manual-reborrow // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L613 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/placeAlgoOrder.js b/examples/apidoc/RestClient/placeAlgoOrder.js index b084a56..25aa311 100644 --- a/examples/apidoc/RestClient/placeAlgoOrder.js +++ b/examples/apidoc/RestClient/placeAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L936 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/placeGridAlgoOrder.js b/examples/apidoc/RestClient/placeGridAlgoOrder.js index 5e08398..a719f08 100644 --- a/examples/apidoc/RestClient/placeGridAlgoOrder.js +++ b/examples/apidoc/RestClient/placeGridAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L982 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/placeLendingOrder.js b/examples/apidoc/RestClient/placeLendingOrder.js index 1ea2533..1ecfcad 100644 --- a/examples/apidoc/RestClient/placeLendingOrder.js +++ b/examples/apidoc/RestClient/placeLendingOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/fixed-loan/lending-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2789 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/placeSignalBotSubOrder.js b/examples/apidoc/RestClient/placeSignalBotSubOrder.js index 04d059b..b1076c8 100644 --- a/examples/apidoc/RestClient/placeSignalBotSubOrder.js +++ b/examples/apidoc/RestClient/placeSignalBotSubOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/sub-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1267 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/positionBuilder.js b/examples/apidoc/RestClient/positionBuilder.js index 762dd2e..f288402 100644 --- a/examples/apidoc/RestClient/positionBuilder.js +++ b/examples/apidoc/RestClient/positionBuilder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/position-builder // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L700 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/purchaseETHStaking.js b/examples/apidoc/RestClient/purchaseETHStaking.js index 582cf89..9a582fd 100644 --- a/examples/apidoc/RestClient/purchaseETHStaking.js +++ b/examples/apidoc/RestClient/purchaseETHStaking.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/eth/purchase // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2693 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/redeemETHStaking.js b/examples/apidoc/RestClient/redeemETHStaking.js index 2222dd2..26a9414 100644 --- a/examples/apidoc/RestClient/redeemETHStaking.js +++ b/examples/apidoc/RestClient/redeemETHStaking.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/eth/redeem // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2700 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/redeemStake.js b/examples/apidoc/RestClient/redeemStake.js index dbde487..043e467 100644 --- a/examples/apidoc/RestClient/redeemStake.js +++ b/examples/apidoc/RestClient/redeemStake.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/redeem // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2636 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/reduceFixedLoanLiabilities.js b/examples/apidoc/RestClient/reduceFixedLoanLiabilities.js index 60cf827..45430fc 100644 --- a/examples/apidoc/RestClient/reduceFixedLoanLiabilities.js +++ b/examples/apidoc/RestClient/reduceFixedLoanLiabilities.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/reduce-liabilities // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L649 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/repayFixedLoanBorrowOrder.js b/examples/apidoc/RestClient/repayFixedLoanBorrowOrder.js index 0265d0c..ccd92b5 100644 --- a/examples/apidoc/RestClient/repayFixedLoanBorrowOrder.js +++ b/examples/apidoc/RestClient/repayFixedLoanBorrowOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/repay-borrowing-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L627 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/requestBillsHistoryDownloadLink.js b/examples/apidoc/RestClient/requestBillsHistoryDownloadLink.js index 141ffed..53d72b9 100644 --- a/examples/apidoc/RestClient/requestBillsHistoryDownloadLink.js +++ b/examples/apidoc/RestClient/requestBillsHistoryDownloadLink.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/bills-history-archive // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L343 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/resetBlockMmp.js b/examples/apidoc/RestClient/resetBlockMmp.js index fca8628..169de26 100644 --- a/examples/apidoc/RestClient/resetBlockMmp.js +++ b/examples/apidoc/RestClient/resetBlockMmp.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/mmp-reset // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1805 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/resetMMPStatus.js b/examples/apidoc/RestClient/resetMMPStatus.js index 6f7d425..fe6536b 100644 --- a/examples/apidoc/RestClient/resetMMPStatus.js +++ b/examples/apidoc/RestClient/resetMMPStatus.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/mmp-reset // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L754 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/resetSubAccountAPIKey.js b/examples/apidoc/RestClient/resetSubAccountAPIKey.js index fb26553..0b75f4c 100644 --- a/examples/apidoc/RestClient/resetSubAccountAPIKey.js +++ b/examples/apidoc/RestClient/resetSubAccountAPIKey.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/users/subaccount/modify-apikey // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2497 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/savingsPurchaseRedemption.js b/examples/apidoc/RestClient/savingsPurchaseRedemption.js index af9e087..d6dbd3c 100644 --- a/examples/apidoc/RestClient/savingsPurchaseRedemption.js +++ b/examples/apidoc/RestClient/savingsPurchaseRedemption.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/savings/purchase-redempt // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2735 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setAccountMode.js b/examples/apidoc/RestClient/setAccountMode.js index 26fa1e3..6111da7 100644 --- a/examples/apidoc/RestClient/setAccountMode.js +++ b/examples/apidoc/RestClient/setAccountMode.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-account-level // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L748 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setAutoLoan.js b/examples/apidoc/RestClient/setAutoLoan.js index 6010569..3bd8c0d 100644 --- a/examples/apidoc/RestClient/setAutoLoan.js +++ b/examples/apidoc/RestClient/setAutoLoan.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-auto-loan // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L744 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setAutoRepay.js b/examples/apidoc/RestClient/setAutoRepay.js index d012292..d47e53a 100644 --- a/examples/apidoc/RestClient/setAutoRepay.js +++ b/examples/apidoc/RestClient/setAutoRepay.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-auto-repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L687 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setCopytradingBatchLeverage.js b/examples/apidoc/RestClient/setCopytradingBatchLeverage.js index 7ff1515..79faf6c 100644 --- a/examples/apidoc/RestClient/setCopytradingBatchLeverage.js +++ b/examples/apidoc/RestClient/setCopytradingBatchLeverage.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/batch-set-leverage // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1519 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setCopytradingFirstCopy.js b/examples/apidoc/RestClient/setCopytradingFirstCopy.js index 224f9b7..84ea1ea 100644 --- a/examples/apidoc/RestClient/setCopytradingFirstCopy.js +++ b/examples/apidoc/RestClient/setCopytradingFirstCopy.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/first-copy-settings // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1478 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setCopytradingInstruments.js b/examples/apidoc/RestClient/setCopytradingInstruments.js index 80ef9ed..a4e56ea 100644 --- a/examples/apidoc/RestClient/setCopytradingInstruments.js +++ b/examples/apidoc/RestClient/setCopytradingInstruments.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/set-instruments // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1393 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setGreeksDisplayType.js b/examples/apidoc/RestClient/setGreeksDisplayType.js index d4b4a19..055e558 100644 --- a/examples/apidoc/RestClient/setGreeksDisplayType.js +++ b/examples/apidoc/RestClient/setGreeksDisplayType.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-greeks // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L487 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setIsolatedMode.js b/examples/apidoc/RestClient/setIsolatedMode.js index 014659a..d90ccf7 100644 --- a/examples/apidoc/RestClient/setIsolatedMode.js +++ b/examples/apidoc/RestClient/setIsolatedMode.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-isolated-mode // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L491 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setLendingRate.js b/examples/apidoc/RestClient/setLendingRate.js index 9fc63ec..2f4cb96 100644 --- a/examples/apidoc/RestClient/setLendingRate.js +++ b/examples/apidoc/RestClient/setLendingRate.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/savings/set-lending-rate // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2749 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setLeverage.js b/examples/apidoc/RestClient/setLeverage.js index 5d93f71..843ddb0 100644 --- a/examples/apidoc/RestClient/setLeverage.js +++ b/examples/apidoc/RestClient/setLeverage.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-leverage // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L368 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setMMPConfig.js b/examples/apidoc/RestClient/setMMPConfig.js index 2c5142d..74ce628 100644 --- a/examples/apidoc/RestClient/setMMPConfig.js +++ b/examples/apidoc/RestClient/setMMPConfig.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/mmp-config // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L762 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setPositionMode.js b/examples/apidoc/RestClient/setPositionMode.js index f79cfe6..5a14098 100644 --- a/examples/apidoc/RestClient/setPositionMode.js +++ b/examples/apidoc/RestClient/setPositionMode.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-position-mode // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L364 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setSignalInstruments.js b/examples/apidoc/RestClient/setSignalInstruments.js index cafb525..df85fe5 100644 --- a/examples/apidoc/RestClient/setSignalInstruments.js +++ b/examples/apidoc/RestClient/setSignalInstruments.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/set-instruments // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1208 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setSubAccountLoanAllocation.js b/examples/apidoc/RestClient/setSubAccountLoanAllocation.js index ba5469a..c36d4ca 100644 --- a/examples/apidoc/RestClient/setSubAccountLoanAllocation.js +++ b/examples/apidoc/RestClient/setSubAccountLoanAllocation.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/subaccount/set-loan-allocation // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2581 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/setSubAccountTransferOutPermission.js b/examples/apidoc/RestClient/setSubAccountTransferOutPermission.js index ecf2eab..ea9869a 100644 --- a/examples/apidoc/RestClient/setSubAccountTransferOutPermission.js +++ b/examples/apidoc/RestClient/setSubAccountTransferOutPermission.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/users/subaccount/set-transfer-out // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2564 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/smallAssetsConvert.js b/examples/apidoc/RestClient/smallAssetsConvert.js index 1c685c2..a4698c8 100644 --- a/examples/apidoc/RestClient/smallAssetsConvert.js +++ b/examples/apidoc/RestClient/smallAssetsConvert.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/convert-dust-assets // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2446 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/spotGridWithdrawIncome.js b/examples/apidoc/RestClient/spotGridWithdrawIncome.js index caa96d7..8abf77e 100644 --- a/examples/apidoc/RestClient/spotGridWithdrawIncome.js +++ b/examples/apidoc/RestClient/spotGridWithdrawIncome.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/withdraw-income // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1085 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/stopCopytradingCopy.js b/examples/apidoc/RestClient/stopCopytradingCopy.js index 18ef0ea..83e5505 100644 --- a/examples/apidoc/RestClient/stopCopytradingCopy.js +++ b/examples/apidoc/RestClient/stopCopytradingCopy.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/stop-copy-trading // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1494 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/stopCopytradingLeadTrading.js b/examples/apidoc/RestClient/stopCopytradingLeadTrading.js index 0bda04c..27164c0 100644 --- a/examples/apidoc/RestClient/stopCopytradingLeadTrading.js +++ b/examples/apidoc/RestClient/stopCopytradingLeadTrading.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/stop-lead-trading // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1452 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/stopGridAlgoOrder.js b/examples/apidoc/RestClient/stopGridAlgoOrder.js index d9b78a0..fa8f784 100644 --- a/examples/apidoc/RestClient/stopGridAlgoOrder.js +++ b/examples/apidoc/RestClient/stopGridAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/grid/stop-order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L998 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/stopRecurringBuyOrder.js b/examples/apidoc/RestClient/stopRecurringBuyOrder.js index de84062..9498267 100644 --- a/examples/apidoc/RestClient/stopRecurringBuyOrder.js +++ b/examples/apidoc/RestClient/stopRecurringBuyOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/recurring/stop-order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1309 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitCopytradingAlgoOrder.js b/examples/apidoc/RestClient/submitCopytradingAlgoOrder.js index e1ab674..df4e91c 100644 --- a/examples/apidoc/RestClient/submitCopytradingAlgoOrder.js +++ b/examples/apidoc/RestClient/submitCopytradingAlgoOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/algo-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1369 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitEasyConvert.js b/examples/apidoc/RestClient/submitEasyConvert.js index 4e56d98..bfce874 100644 --- a/examples/apidoc/RestClient/submitEasyConvert.js +++ b/examples/apidoc/RestClient/submitEasyConvert.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/easy-convert // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L856 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitFixedLoanBorrowOrder.js b/examples/apidoc/RestClient/submitFixedLoanBorrowOrder.js index a7f62cd..36117cd 100644 --- a/examples/apidoc/RestClient/submitFixedLoanBorrowOrder.js +++ b/examples/apidoc/RestClient/submitFixedLoanBorrowOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/borrowing-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L587 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitMultipleOrders.js b/examples/apidoc/RestClient/submitMultipleOrders.js index 3cda35c..e0901ec 100644 --- a/examples/apidoc/RestClient/submitMultipleOrders.js +++ b/examples/apidoc/RestClient/submitMultipleOrders.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/batch-orders // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L780 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitOneClickRepay.js b/examples/apidoc/RestClient/submitOneClickRepay.js index 85c5366..261ad77 100644 --- a/examples/apidoc/RestClient/submitOneClickRepay.js +++ b/examples/apidoc/RestClient/submitOneClickRepay.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/one-click-repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L888 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitOrder.js b/examples/apidoc/RestClient/submitOrder.js index a65738e..ed6c797 100644 --- a/examples/apidoc/RestClient/submitOrder.js +++ b/examples/apidoc/RestClient/submitOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L776 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitOrderPrecheck.js b/examples/apidoc/RestClient/submitOrderPrecheck.js index 31ba894..a619d36 100644 --- a/examples/apidoc/RestClient/submitOrderPrecheck.js +++ b/examples/apidoc/RestClient/submitOrderPrecheck.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/trade/order-precheck // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L926 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitQuickMarginBorrowRepay.js b/examples/apidoc/RestClient/submitQuickMarginBorrowRepay.js index 1970bc7..b8e7f79 100644 --- a/examples/apidoc/RestClient/submitQuickMarginBorrowRepay.js +++ b/examples/apidoc/RestClient/submitQuickMarginBorrowRepay.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/quick-margin-borrow-repay // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L509 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitRecurringBuyOrder.js b/examples/apidoc/RestClient/submitRecurringBuyOrder.js index 6ae53ff..8396d82 100644 --- a/examples/apidoc/RestClient/submitRecurringBuyOrder.js +++ b/examples/apidoc/RestClient/submitRecurringBuyOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/recurring/order-algo // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1294 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitSpreadOrder.js b/examples/apidoc/RestClient/submitSpreadOrder.js index 9f13669..50bcdad 100644 --- a/examples/apidoc/RestClient/submitSpreadOrder.js +++ b/examples/apidoc/RestClient/submitSpreadOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1889 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitStake.js b/examples/apidoc/RestClient/submitStake.js index 9bd7481..0a18943 100644 --- a/examples/apidoc/RestClient/submitStake.js +++ b/examples/apidoc/RestClient/submitStake.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/finance/staking-defi/purchase // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2620 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitWithdraw.js b/examples/apidoc/RestClient/submitWithdraw.js index 953d890..e9348ab 100644 --- a/examples/apidoc/RestClient/submitWithdraw.js +++ b/examples/apidoc/RestClient/submitWithdraw.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/withdrawal // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2416 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/submitWithdrawLightning.js b/examples/apidoc/RestClient/submitWithdrawLightning.js index d44e290..8b1a32b 100644 --- a/examples/apidoc/RestClient/submitWithdrawLightning.js +++ b/examples/apidoc/RestClient/submitWithdrawLightning.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/withdrawal-lightning // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2420 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/transferSubAccountBalance.js b/examples/apidoc/RestClient/transferSubAccountBalance.js index 485949f..16e2273 100644 --- a/examples/apidoc/RestClient/transferSubAccountBalance.js +++ b/examples/apidoc/RestClient/transferSubAccountBalance.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/asset/subaccount/transfer // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2557 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateBlockMmpConfig.js b/examples/apidoc/RestClient/updateBlockMmpConfig.js index 993ca56..bf8f98c 100644 --- a/examples/apidoc/RestClient/updateBlockMmpConfig.js +++ b/examples/apidoc/RestClient/updateBlockMmpConfig.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/mmp-config // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1813 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateBlockQuoteProducts.js b/examples/apidoc/RestClient/updateBlockQuoteProducts.js index 9169946..24ff0b3 100644 --- a/examples/apidoc/RestClient/updateBlockQuoteProducts.js +++ b/examples/apidoc/RestClient/updateBlockQuoteProducts.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/rfq/maker-instrument-settings // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1797 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateCopytradingCopySettings.js b/examples/apidoc/RestClient/updateCopytradingCopySettings.js index 6bfa919..1ddd830 100644 --- a/examples/apidoc/RestClient/updateCopytradingCopySettings.js +++ b/examples/apidoc/RestClient/updateCopytradingCopySettings.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/amend-copy-settings // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1486 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateCopytradingProfitSharing.js b/examples/apidoc/RestClient/updateCopytradingProfitSharing.js index 7b03159..fd48e9f 100644 --- a/examples/apidoc/RestClient/updateCopytradingProfitSharing.js +++ b/examples/apidoc/RestClient/updateCopytradingProfitSharing.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/copytrading/amend-profit-sharing-ratio // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1460 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateFixedLoanBorrowOrder.js b/examples/apidoc/RestClient/updateFixedLoanBorrowOrder.js index 92905c7..f04f2b3 100644 --- a/examples/apidoc/RestClient/updateFixedLoanBorrowOrder.js +++ b/examples/apidoc/RestClient/updateFixedLoanBorrowOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/fixed-loan/amend-borrowing-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L600 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateRiskOffsetAmount.js b/examples/apidoc/RestClient/updateRiskOffsetAmount.js index 84fad85..51530c4 100644 --- a/examples/apidoc/RestClient/updateRiskOffsetAmount.js +++ b/examples/apidoc/RestClient/updateRiskOffsetAmount.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-riskOffset-amt // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L704 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateRiskOffsetType.js b/examples/apidoc/RestClient/updateRiskOffsetType.js index 763a8aa..ae15335 100644 --- a/examples/apidoc/RestClient/updateRiskOffsetType.js +++ b/examples/apidoc/RestClient/updateRiskOffsetType.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/account/set-riskOffset-type // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L728 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateSignalMargin.js b/examples/apidoc/RestClient/updateSignalMargin.js index a4b765c..889572f 100644 --- a/examples/apidoc/RestClient/updateSignalMargin.js +++ b/examples/apidoc/RestClient/updateSignalMargin.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/margin-balance // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1192 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateSignalTPSL.js b/examples/apidoc/RestClient/updateSignalTPSL.js index 9944206..d6b9a38 100644 --- a/examples/apidoc/RestClient/updateSignalTPSL.js +++ b/examples/apidoc/RestClient/updateSignalTPSL.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/tradingBot/signal/amendTPSL // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1200 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/examples/apidoc/RestClient/updateSpreadOrder.js b/examples/apidoc/RestClient/updateSpreadOrder.js index d073db0..44187dd 100644 --- a/examples/apidoc/RestClient/updateSpreadOrder.js +++ b/examples/apidoc/RestClient/updateSpreadOrder.js @@ -5,7 +5,6 @@ const { RestClient } = require('okx-api'); // ENDPOINT: /api/v5/sprd/amend-order // METHOD: POST // PUBLIC: NO - // Link to function: https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1910 const client = new RestClient({ apiKey: 'insert_api_key_here', diff --git a/package-lock.json b/package-lock.json index cb691b8..e44b1ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "okx-api", - "version": "1.4.8", + "version": "1.4.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "okx-api", - "version": "1.4.8", + "version": "1.4.9", "license": "MIT", "dependencies": { "axios": "^1.6.7", diff --git a/package.json b/package.json index 7ad6197..2fc9d56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "okx-api", - "version": "1.4.8", + "version": "1.4.9", "description": "Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/rest-client.ts b/src/rest-client.ts index 9384340..aefc2f9 100644 --- a/src/rest-client.ts +++ b/src/rest-client.ts @@ -273,6 +273,75 @@ export class RestClient extends BaseRestClient { return this; } + /** + * + * Custom SDK functions + * + */ + + /** + * This method is used to get the latency and time sync between the client and the server. + * This is not official API endpoint and is only used for internal testing purposes. + * Use this method to check the latency and time sync between the client and the server. + * Final values might vary slightly, but it should be within few ms difference. + * If you have any suggestions or improvements to this measurement, please create an issue or pull request on GitHub. + */ + async fetchLatencySummary(): Promise { + const clientTimeReqStart = Date.now(); + const serverTime = await this.getServerTime(); + const clientTimeReqEnd = Date.now(); + console.log('serverTime', serverTime); + + const serverTimeMs = serverTime; + const roundTripTime = clientTimeReqEnd - clientTimeReqStart; + const estimatedOneWayLatency = Math.floor(roundTripTime / 2); + + // Adjust server time by adding estimated one-way latency + const adjustedServerTime = serverTimeMs + estimatedOneWayLatency; + + // Calculate time difference between adjusted server time and local time + const timeDifference = adjustedServerTime - clientTimeReqEnd; + + const result = { + localTime: clientTimeReqEnd, + serverTime: serverTimeMs, + roundTripTime, + estimatedOneWayLatency, + adjustedServerTime, + timeDifference, + }; + + console.log('Time synchronization results:'); + console.log(result); + + console.log( + `Your approximate latency to exchange server: + One way: ${estimatedOneWayLatency}ms. + Round trip: ${roundTripTime}ms. + ` + ); + + if (timeDifference > 500) { + console.warn( + `WARNING! Time difference between server and client clock is greater than 500ms. It is currently ${timeDifference}ms. + Consider adjusting your system clock to avoid unwanted clock sync errors! + Visit https://github.com/tiagosiebler/awesome-crypto-examples/wiki/Timestamp-for-this-request-is-outside-of-the-recvWindow for more information` + ); + } else { + console.log( + `Time difference between server and client clock is within acceptable range of 500ms. It is currently ${timeDifference}ms.` + ); + } + + return result; + } + + /** + * + * OKX misc endpoints + * + */ + async getServerTime(): Promise { const response = await this.get('/api/v5/public/time');