From d303bf5de0c374f0268cf2fefad3cf8a078ba506 Mon Sep 17 00:00:00 2001 From: JJ-Cro Date: Tue, 10 Dec 2024 13:10:24 +0100 Subject: [PATCH 1/2] v1.4.13 feat(): added new endpoints, updated request/response types --- package-lock.json | 4 +- package.json | 2 +- src/rest-client.ts | 90 +++++++++++++++++- src/types/rest/request/simple-earn.ts | 2 +- src/types/rest/request/trade.ts | 15 +-- src/types/rest/response/index.ts | 1 + .../rest/response/private-flexible-loan.ts | 92 +++++++++++++++++++ src/types/rest/response/private-funding.ts | 49 ++++++---- 8 files changed, 224 insertions(+), 31 deletions(-) create mode 100644 src/types/rest/response/private-flexible-loan.ts diff --git a/package-lock.json b/package-lock.json index 7e80d11..5df4fc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "okx-api", - "version": "1.4.12", + "version": "1.4.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "okx-api", - "version": "1.4.12", + "version": "1.4.13", "license": "MIT", "dependencies": { "axios": "^1.6.7", diff --git a/package.json b/package.json index 5307ae5..ba5a4f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "okx-api", - "version": "1.4.12", + "version": "1.4.13", "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 d747685..52f5424 100644 --- a/src/rest-client.ts +++ b/src/rest-client.ts @@ -252,6 +252,17 @@ import { Announcement, } from './types'; import { ASSET_BILL_TYPE } from './constants'; +import { + AccruedInterestItem, + AccruedInterestRequest, + AdjustCollateralRequest, + CollateralAssetsResponse, + LoanHistoryItem, + LoanHistoryRequest, + LoanInfo, + MaxLoanRequest, + MaxLoanResponse, +} from './types/rest/response/private-flexible-loan'; export class RestClient extends BaseRestClient { /** @@ -498,12 +509,14 @@ export class RestClient extends BaseRestClient { getMaxLoan( instId: string, mgnMode: MarginMode, - mgnCcy?: string + mgnCcy?: string, + ccy?: string ): Promise { return this.getPrivate('/api/v5/account/max-loan', { instId, mgnMode, mgnCcy, + ccy, }); } @@ -814,6 +827,26 @@ export class RestClient extends BaseRestClient { return this.postPrivate('/api/v5/account/set-auto-loan', params); } + presetAccountLevelSwitch(params: { + acctLv: '2' | '3' | '4'; + lever?: string; + riskOffsetType?: '1' | '2' | '3' | '4'; + }): Promise { + return this.postPrivate( + '/api/v5/account/account-level-switch-preset', + params + ); + } + + getAccountSwitchPrecheck(params: { + acctLv: '1' | '2' | '3' | '4'; + }): Promise { + return this.getPrivate( + '/api/v5/account/set-account-switch-precheck', + params + ); + } + setAccountMode(params: { acctLv: AccountLevel; }): Promise { @@ -2869,7 +2902,10 @@ export class RestClient extends BaseRestClient { } amendLendingOrder(params: LendingOrder): Promise { - return this.postPrivate('/api/v5/finance/fixed-loan/lending-order', params); + return this.postPrivate( + '/api/v5/finance/fixed-loan/amend-lending-order', + params + ); } getLendingOrders(params: GetLendingOrderListRequest): Promise { @@ -2886,6 +2922,56 @@ export class RestClient extends BaseRestClient { ); } + /** + * + * Financial product - Flexible loan endpoints + * + */ + + getBorrowableCurrencies(): Promise< + { + borrowCcy: string; + }[] + > { + return this.get('/api/v5/finance/flexible-loan/borrow-currencies'); + } + + getCollateralAssets(params?: { + ccy?: string; + }): Promise { + return this.get('/api/v5/finance/flexible-loan/collateral-assets', params); + } + + getMaxLoanAmount(params: MaxLoanRequest): Promise { + return this.postPrivate('/api/v5/finance/flexible-loan/max-loan', params); + } + + adjustCollateral(params: AdjustCollateralRequest): Promise<[]> { + return this.postPrivate( + '/api/v5/finance/flexible-loan/adjust-collateral', + params + ); + } + + getLoanInfo(): Promise { + return this.getPrivate('/api/v5/finance/flexible-loan/loan-info'); + } + getLoanHistory(params?: LoanHistoryRequest): Promise { + return this.getPrivate( + '/api/v5/finance/flexible-loan/loan-history', + params + ); + } + + getAccruedInterest( + params?: AccruedInterestRequest + ): Promise { + return this.getPrivate( + '/api/v5/finance/flexible-loan/interest-accrued', + params + ); + } + /** * * Affiliate endpoints diff --git a/src/types/rest/request/simple-earn.ts b/src/types/rest/request/simple-earn.ts index 8bf9e48..cf9e9ea 100644 --- a/src/types/rest/request/simple-earn.ts +++ b/src/types/rest/request/simple-earn.ts @@ -11,7 +11,7 @@ export interface GetLendingOrderListRequest { export interface LendingOrder { ccy: string; amt: string; - rate: string; + rate?: string; term: '30D'; autoRenewal?: boolean; } diff --git a/src/types/rest/request/trade.ts b/src/types/rest/request/trade.ts index 40049f8..0dcf516 100644 --- a/src/types/rest/request/trade.ts +++ b/src/types/rest/request/trade.ts @@ -45,29 +45,32 @@ export interface AlgoOrderRequest { tag?: string; reduceOnly?: boolean; tgtCcy?: string; - tpTriggerPx?: numberInString; tpTriggerPxType?: PriceTriggerType; tpOrdPx?: numberInString; - + tpOrdKind?: string; slTriggerPx?: numberInString; slTriggerPxType?: PriceTriggerType; slOrdPx?: numberInString; - + cxlOnClosePos?: boolean; triggerPx?: numberInString; triggerPxType?: PriceTriggerType; orderPx?: numberInString; - + chaseType?: string; + chaseVal?: numberInString; + maxChaseType?: string; + maxChaseVal?: numberInString; callbackRatio?: numberInString; callbackSpread?: numberInString; activePx?: numberInString; - pxVar?: numberInString; pxSpread?: numberInString; szLimit?: numberInString; pxLimit?: numberInString; - timeInterval?: string; + quickMgnType?: string; + closeFraction?: numberInString; + attachAlgoOrds?: AlgoTriggerOrder[]; } export interface AmendOrderRequest { diff --git a/src/types/rest/response/index.ts b/src/types/rest/response/index.ts index c2624f1..58cb217 100644 --- a/src/types/rest/response/index.ts +++ b/src/types/rest/response/index.ts @@ -8,3 +8,4 @@ export * from './private-signal-bot'; export * from './private-recurring-buy'; export * from './private-copy-trading'; export * from './private-spread-trading'; +export * from './private-flexible-loan'; diff --git a/src/types/rest/response/private-flexible-loan.ts b/src/types/rest/response/private-flexible-loan.ts new file mode 100644 index 0000000..1c30c9b --- /dev/null +++ b/src/types/rest/response/private-flexible-loan.ts @@ -0,0 +1,92 @@ +export interface CollateralAsset { + ccy: string; + amt: string; + notionalUsd: string; +} + +export interface CollateralAssetsResponse { + assets: CollateralAsset[]; +} + +export interface SupplementaryCollateral { + ccy: string; + amt: string; +} + +export interface MaxLoanRequest { + borrowCcy: string; + supCollateral?: SupplementaryCollateral[]; +} + +export interface MaxLoanResponse { + borrowCcy: string; + maxLoan: string; + notionalUsd: string; + remainingQuota: string; +} + +export interface AdjustCollateralRequest { + type: 'add' | 'reduce'; + collateralCcy: string; + collateralAmt: string; +} + +export interface LoanCurrencyData { + ccy: string; + amt: string; +} + +export interface RiskWarningData { + instId: string; + liqPx: string; +} + +export interface LoanInfo { + loanNotionalUsd: string; + loanData: LoanCurrencyData[]; + collateralNotionalUsd: string; + collateralData: LoanCurrencyData[]; + riskWarningData: RiskWarningData; + curLTV: string; + marginCallLTV: string; + liqLTV: string; +} + +export interface LoanHistoryRequest { + type?: + | 'borrowed' + | 'repaid' + | 'collateral_locked' + | 'collateral_released' + | 'forced_repayment_buy' + | 'forced_repayment_sell' + | 'forced_liquidation' + | 'partial_liquidation'; + after?: string; + before?: string; + limit?: string; +} + +export interface LoanHistoryItem { + refId: string; + type: string; + ccy: string; + amt: string; + ts: string; +} + +export interface AccruedInterestRequest { + ccy?: string; + after?: string; + before?: string; + limit?: string; +} + +export interface AccruedInterestItem { + refId: string; + ccy: string; + loan: string; + interest: string; + interestRate: string; + ts: string; +} diff --git a/src/types/rest/response/private-funding.ts b/src/types/rest/response/private-funding.ts index 914690e..d6e73f6 100644 --- a/src/types/rest/response/private-funding.ts +++ b/src/types/rest/response/private-funding.ts @@ -1,25 +1,36 @@ import { ASSET_BILL_TYPE } from '../../../constants'; export interface FundingCurrency { - canDep: boolean; - canInternal: boolean; - canWd: boolean; - ccy: string; - chain: string; - logoLink: string; - mainNet: boolean; - fee: string; - maxWd: string; - minDep: string; - minDepArrivalConfirm: string; - minWd: string; - minWdUnlockConfirm: string; - name: string; - needTag: boolean; - usedWdQuota: string; - wdQuota: string; - wdTickSz: string; - burningFeeRate: string; + ccy: string; // Currency code (e.g., "BTC") + name: string; // Currency name + logoLink: string; // Currency logo URL + chain: string; // Chain name (e.g., "BTC-Bitcoin") + ctAddr: string; // Contract address + canDep: boolean; // Deposit availability + canWd: boolean; // Withdrawal availability + canInternal: boolean; // Internal transfer availability + depEstOpenTime: string; // Estimated deposit opening time (timestamp) + wdEstOpenTime: string; // Estimated withdrawal opening time (timestamp) + minDep: string; // Minimum deposit amount + minWd: string; // Minimum withdrawal amount + minInternal: string; // Minimum internal transfer amount + maxWd: string; // Maximum withdrawal amount per transaction + wdTickSz: string; // Withdrawal precision (decimal places) + wdQuota: string; // 24h withdrawal limit in USD + usedWdQuota: string; // Used withdrawal quota in USD + fee: string; // Fixed withdrawal fee + minFee: string; // Minimum withdrawal fee (deprecated) + maxFee: string; // Maximum withdrawal fee (deprecated) + minFeeForCtAddr: string; // Minimum contract address withdrawal fee (deprecated) + maxFeeForCtAddr: string; // Maximum contract address withdrawal fee (deprecated) + burningFeeRate: string; // Burning fee rate (e.g., "0.05" for 5%) + mainNet: boolean; // Is main network + needTag: boolean; // Requires tag/memo for withdrawal + minDepArrivalConfirm: string; // Min confirmations for deposit credit + minWdUnlockConfirm: string; // Min confirmations for withdrawal unlock + depQuotaFixed: string; // Fixed deposit limit in USD + usedDepQuotaFixed: string; // Used fixed deposit quota in USD + depQuoteDailyLayer2: string; // Layer2 daily deposit limit } export interface FundingBalance { From 3f8b891baf8702872435e9afc3c331f7bc04a5fb Mon Sep 17 00:00:00 2001 From: JJ-Cro Date: Tue, 10 Dec 2024 13:59:18 +0100 Subject: [PATCH 2/2] chore(): updated okx examples and endpoint map --- docs/endpointFunctionList.md | 693 +++++++++--------- .../apidoc/RestClient/adjustCollateral.js | 21 + .../apidoc/RestClient/amendLendingOrder.js | 2 +- .../RestClient/getAccountSwitchPrecheck.js | 21 + .../apidoc/RestClient/getAccruedInterest.js | 21 + .../RestClient/getBorrowableCurrencies.js | 21 + .../apidoc/RestClient/getCollateralAssets.js | 21 + examples/apidoc/RestClient/getLoanHistory.js | 21 + examples/apidoc/RestClient/getLoanInfo.js | 21 + .../apidoc/RestClient/getMaxLoanAmount.js | 21 + .../RestClient/presetAccountLevelSwitch.js | 21 + 11 files changed, 541 insertions(+), 343 deletions(-) create mode 100644 examples/apidoc/RestClient/adjustCollateral.js create mode 100644 examples/apidoc/RestClient/getAccountSwitchPrecheck.js create mode 100644 examples/apidoc/RestClient/getAccruedInterest.js create mode 100644 examples/apidoc/RestClient/getBorrowableCurrencies.js create mode 100644 examples/apidoc/RestClient/getCollateralAssets.js create mode 100644 examples/apidoc/RestClient/getLoanHistory.js create mode 100644 examples/apidoc/RestClient/getLoanInfo.js create mode 100644 examples/apidoc/RestClient/getMaxLoanAmount.js create mode 100644 examples/apidoc/RestClient/presetAccountLevelSwitch.js diff --git a/docs/endpointFunctionList.md b/docs/endpointFunctionList.md index 172452c..809ee93 100644 --- a/docs/endpointFunctionList.md +++ b/docs/endpointFunctionList.md @@ -48,345 +48,354 @@ 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#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#L938) | :closed_lock_with_key: | GET | `/api/v5/trade/easy-convert-history` | -| [getOneClickRepayCurrencyList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L946) | :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#L959) | :closed_lock_with_key: | POST | `/api/v5/trade/one-click-repay` | -| [getOneClickRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L970) | :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#L974) | :closed_lock_with_key: | POST | `/api/v5/trade/mass-cancel` | -| [cancelAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L986) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-all-after` | -| [getAccountRateLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L993) | :closed_lock_with_key: | GET | `/api/v5/trade/account-rate-limit` | -| [submitOrderPrecheck()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L997) | :closed_lock_with_key: | POST | `/api/v5/trade/order-precheck` | -| [placeAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1007) | :closed_lock_with_key: | POST | `/api/v5/trade/order-algo` | -| [cancelAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1011) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-algos` | -| [amendAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1017) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-algos` | -| [cancelAdvanceAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1023) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-advance-algos` | -| [getAlgoOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1029) | :closed_lock_with_key: | GET | `/api/v5/trade/order-algo` | -| [getAlgoOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1035) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-pending` | -| [getAlgoOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1041) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-history` | -| [placeGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1053) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/order-algo` | -| [amendGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1057) | :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#L1069) | :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#L1073) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/close-position` | -| [cancelGridContractCloseOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1079) | :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#L1089) | :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#L1101) | :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#L1108) | :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#L1115) | :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#L1125) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/sub-orders` | -| [getGridAlgoOrderPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1146) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/positions` | -| [spotGridWithdrawIncome()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1156) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/withdraw-income` | -| [computeGridMarginBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1162) | :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#L1174) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/margin-balance` | -| [adjustGridInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1186) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/adjust-investment` | -| [getGridAIParameter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1197) | | GET | `/api/v5/tradingBot/grid/ai-param` | -| [computeGridMinInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1211) | | POST | `/api/v5/tradingBot/grid/min-investment` | -| [getRSIBackTesting()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1218) | | GET | `/api/v5/tradingBot/public/rsi-back-testing` | -| [getMaxGridQuantity()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1226) | | GET | `/api/v5/tradingBot/grid/grid-quantity` | -| [createSignal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1240) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/create-signal` | -| [getSignals()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1244) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/signals` | -| [createSignalBot()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1248) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/order-algo` | -| [cancelSignalBots()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1254) | :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#L1263) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/margin-balance` | -| [updateSignalTPSL()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1271) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/amendTPSL` | -| [setSignalInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1279) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/set-instruments` | -| [getSignalBotOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1290) | :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#L1300) | :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#L1307) | :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#L1314) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions` | -| [getSignalBotPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1321) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions-history` | -| [closeSignalBotPosition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1330) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/close-position` | -| [placeSignalBotSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1338) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/sub-order` | -| [cancelSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1342) | :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#L1349) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/sub-orders` | -| [getSignalBotEventHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1353) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/event-history` | -| [submitRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1365) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/order-algo` | -| [amendRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1371) | :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#L1380) | :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#L1389) | :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#L1398) | :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#L1407) | :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#L1416) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/sub-orders` | -| [getCopytradingSubpositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1428) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-subpositions` | -| [getCopytradingSubpositionsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1434) | :closed_lock_with_key: | GET | `/api/v5/copytrading/subpositions-history` | -| [submitCopytradingAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1440) | :closed_lock_with_key: | POST | `/api/v5/copytrading/algo-order` | -| [closeCopytradingSubposition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1446) | :closed_lock_with_key: | POST | `/api/v5/copytrading/close-subposition` | -| [getCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1455) | :closed_lock_with_key: | GET | `/api/v5/copytrading/instruments` | -| [setCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1464) | :closed_lock_with_key: | POST | `/api/v5/copytrading/set-instruments` | -| [getCopytradingProfitDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1476) | :closed_lock_with_key: | GET | `/api/v5/copytrading/profit-sharing-details` | -| [getCopytradingTotalProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1485) | :closed_lock_with_key: | GET | `/api/v5/copytrading/total-profit-sharing` | -| [getCopytradingUnrealizedProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1491) | :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#L1500) | :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#L1512) | :closed_lock_with_key: | POST | `/api/v5/copytrading/apply-lead-trading` | -| [stopCopytradingLeadTrading()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1523) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-lead-trading` | -| [updateCopytradingProfitSharing()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1531) | :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#L1545) | :closed_lock_with_key: | GET | `/api/v5/copytrading/config` | -| [setCopytradingFirstCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1549) | :closed_lock_with_key: | POST | `/api/v5/copytrading/first-copy-settings` | -| [updateCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1557) | :closed_lock_with_key: | POST | `/api/v5/copytrading/amend-copy-settings` | -| [stopCopytradingCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1565) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-copy-trading` | -| [getCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1577) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-settings` | -| [getCopytradingBatchLeverageInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1584) | :closed_lock_with_key: | GET | `/api/v5/copytrading/batch-leverage-info` | -| [setCopytradingBatchLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1590) | :closed_lock_with_key: | POST | `/api/v5/copytrading/batch-set-leverage` | -| [getCopytradingMyLeadTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1596) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-lead-traders` | -| [getCopytradingLeadTradersHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1602) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders-history` | -| [getCopytradingConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1608) | | GET | `/api/v5/copytrading/public-config` | -| [getCopytradingLeadRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1614) | | GET | `/api/v5/copytrading/public-lead-traders` | -| [getCopytradingLeadWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1620) | | GET | `/api/v5/copytrading/public-weekly-pnl` | -| [getCopytradingLeadDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1627) | | GET | `/api/v5/copytrading/public-pnl` | -| [getCopytradingLeadStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1633) | | GET | `/api/v5/copytrading/public-stats` | -| [getCopytradingLeadPreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1639) | | GET | `/api/v5/copytrading/public-preference-currency` | -| [getCopytradingLeadOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1646) | | GET | `/api/v5/copytrading/public-current-subpositions` | -| [getCopytradingLeadPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1652) | | GET | `/api/v5/copytrading/public-subpositions-history` | -| [getCopyTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1658) | | GET | `/api/v5/copytrading/public-copy-traders` | -| [getCopytradingLeadPrivateRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1664) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders` | -| [getCopytradingLeadPrivateWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1670) | :closed_lock_with_key: | GET | `/api/v5/copytrading/weekly-pnl` | -| [getCopytradingPLeadPrivateDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1677) | :closed_lock_with_key: | GET | `/api/v5/copytrading/pnl` | -| [geCopytradingLeadPrivateStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1683) | :closed_lock_with_key: | GET | `/api/v5/copytrading/stats` | -| [getCopytradingLeadPrivatePreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1689) | :closed_lock_with_key: | GET | `/api/v5/copytrading/preference-currency` | -| [getCopytradingLeadPrivateOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1696) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-current-subpositions` | -| [getCopytradingLeadPrivatePositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1705) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-subpositions-history` | -| [getCopyTradersPrivate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1714) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-traders` | -| [getTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1726) | | GET | `/api/v5/market/tickers` | -| [getTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1733) | | GET | `/api/v5/market/ticker` | -| [getOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1739) | | GET | `/api/v5/market/books` | -| [getFullOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1743) | | GET | `/api/v5/market/books-full` | -| [getCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1758) | | GET | `/api/v5/market/candles` | -| [getCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1770) | | GET | `/api/v5/market/candles` | -| [getHistoricCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1782) | | GET | `/api/v5/market/history-candles` | -| [getHistoricCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1794) | | GET | `/api/v5/market/history-candles` | -| [getTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1798) | | GET | `/api/v5/market/trades` | -| [getHistoricTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1802) | | GET | `/api/v5/market/history-trades` | -| [getOptionTradesByInstrument()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1814) | | GET | `/api/v5/market/option/instrument-family-trades` | -| [getOptionTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1820) | | GET | `/api/v5/public/option-trades` | -| [get24hrTotalVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1824) | | GET | `/api/v5/market/platform-24-volume` | -| [getBlockCounterParties()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1834) | :closed_lock_with_key: | GET | `/api/v5/rfq/counterparties` | -| [createBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1838) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-rfq` | -| [cancelBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1842) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-rfq` | -| [cancelMultipleBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1848) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-rfqs` | -| [cancelAllRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1854) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-rfqs` | -| [executeBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1858) | :closed_lock_with_key: | POST | `/api/v5/rfq/execute-quote` | -| [getQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1864) | :closed_lock_with_key: | GET | `/api/v5/rfq/maker-instrument-settings` | -| [updateBlockQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1868) | :closed_lock_with_key: | POST | `/api/v5/rfq/maker-instrument-settings` | -| [resetBlockMmp()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1876) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-reset` | -| [updateBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1884) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-config` | -| [getBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1890) | :closed_lock_with_key: | GET | `/api/v5/rfq/mmp-config` | -| [createBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1893) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-quote` | -| [cancelBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1899) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-quote` | -| [cancelMultipleBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1905) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-quotes` | -| [cancelAllBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1911) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-quotes` | -| [cancelAllBlockAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1915) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-after` | -| [getBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1924) | :closed_lock_with_key: | GET | `/api/v5/rfq/rfqs` | -| [getBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1928) | :closed_lock_with_key: | GET | `/api/v5/rfq/quotes` | -| [getBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1932) | :closed_lock_with_key: | GET | `/api/v5/rfq/trades` | -| [getPublicRFQBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1936) | | GET | `/api/v5/rfq/public-trades` | -| [getBlockTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1940) | | GET | `/api/v5/market/block-tickers` | -| [getBlockTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1944) | | GET | `/api/v5/market/block-ticker` | -| [getBlockPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1948) | | GET | `/api/v5/public/block-trades` | -| [submitSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1960) | :closed_lock_with_key: | POST | `/api/v5/sprd/order` | -| [cancelSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1966) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-order` | -| [cancelAllSpreadOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1973) | :closed_lock_with_key: | POST | `/api/v5/sprd/mass-cancel` | -| [updateSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1981) | :closed_lock_with_key: | POST | `/api/v5/sprd/amend-order` | -| [getSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1987) | :closed_lock_with_key: | GET | `/api/v5/sprd/order` | -| [getSpreadActiveOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1994) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-pending` | -| [getSpreadOrdersRecent()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2000) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history` | -| [getSpreadOrdersArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2006) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history-archive` | -| [getSpreadTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2012) | :closed_lock_with_key: | GET | `/api/v5/sprd/trades` | -| [getSpreads()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2016) | | GET | `/api/v5/sprd/spreads` | -| [getSpreadOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2020) | | GET | `/api/v5/sprd/books` | -| [getSpreadTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2027) | | GET | `/api/v5/market/sprd-ticker` | -| [getSpreadPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2031) | | GET | `/api/v5/sprd/public-trades` | -| [getSpreadCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2037) | | GET | `/api/v5/market/sprd-candles` | -| [getSpreadHistoryCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2041) | | GET | `/api/v5/market/sprd-history-candles` | -| [cancelSpreadAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2047) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-all-after` | -| [getInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2062) | | GET | `/api/v5/public/instruments` | -| [getDeliveryExerciseHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2076) | | GET | `/api/v5/public/delivery-exercise-history` | -| [getOpenInterest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2080) | | GET | `/api/v5/public/open-interest` | -| [getFundingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2084) | | GET | `/api/v5/public/funding-rate` | -| [getFundingRateHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2088) | | GET | `/api/v5/public/funding-rate-history` | -| [getMinMaxLimitPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2092) | | GET | `/api/v5/public/price-limit` | -| [getOptionMarketData()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2096) | | GET | `/api/v5/public/opt-summary` | -| [getEstimatedDeliveryExercisePrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2100) | | GET | `/api/v5/public/estimated-price` | -| [getDiscountRateAndInterestFreeQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2104) | | GET | `/api/v5/public/discount-rate-interest-free-quota` | -| [getSystemTime()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2108) | | GET | `/api/v5/public/time` | -| [getMarkPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2112) | | GET | `/api/v5/public/mark-price` | -| [getPositionTiers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2116) | | GET | `/api/v5/public/position-tiers` | -| [getInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2120) | | GET | `/api/v5/public/interest-rate-loan-quota` | -| [getVIPInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2124) | | GET | `/api/v5/public/vip-interest-rate-loan-quota` | -| [getUnderlying()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2128) | | GET | `/api/v5/public/underlying` | -| [getInsuranceFund()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2132) | | GET | `/api/v5/public/insurance-fund` | -| [getUnitConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2136) | | GET | `/api/v5/public/convert-contract-coin` | -| [getOptionTickBands()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2140) | | GET | `/api/v5/public/instrument-tick-bands` | -| [getPremiumHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2147) | | GET | `/api/v5/public/premium-history` | -| [getIndexTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2151) | | GET | `/api/v5/market/index-tickers` | -| [getIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2166) | | GET | `/api/v5/market/index-candles` | -| [getIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2178) | | GET | `/api/v5/market/index-candles` | -| [getHistoricIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2190) | | GET | `/api/v5/market/history-index-candles` | -| [getHistoricIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2202) | | GET | `/api/v5/market/history-index-candles` | -| [getMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2214) | | GET | `/api/v5/market/mark-price-candles` | -| [getMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2226) | | GET | `/api/v5/market/mark-price-candles` | -| [getHistoricMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2238) | | GET | `/api/v5/market/historic-mark-price-candles` | -| [getHistoricMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2250) | | GET | `/api/v5/market/history-mark-price-candles` | -| [getOracle()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2256) | | GET | `/api/v5/market/open-oracle` | -| [getExchangeRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2260) | | GET | `/api/v5/market/exchange-rate` | -| [getIndexComponents()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2264) | | GET | `/api/v5/market/index-components` | -| [getEconomicCalendar()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2268) | :closed_lock_with_key: | GET | `/api/v5/public/economic-calendar` | -| [getPublicBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2277) | | GET | `/api/v5/market/block-trades` | -| [getLiquidationOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2284) | | GET | `/api/v5/public/liquidation-orders` | -| [getSupportCoin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2294) | | GET | `/api/v5/rubik/stat/trading-data/support-coin` | -| [getOpenInterestHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2298) | | GET | `/api/v5/rubik/stat/contracts/open-interest-history` | -| [getTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2307) | | GET | `/api/v5/rubik/stat/taker-volume` | -| [getContractTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2317) | | GET | `/api/v5/rubik/stat/taker-volume-contract` | -| [getMarginLendingRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2323) | | GET | `/api/v5/rubik/stat/margin/loan-ratio` | -| [getTopTradersAccountRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2332) | | 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#L2341) | | 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#L2350) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio-contract` | -| [getLongShortRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2359) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio` | -| [getContractsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2371) | | GET | `/api/v5/rubik/stat/contracts/open-interest-volume` | -| [getOptionsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2383) | | GET | `/api/v5/rubik/stat/option/open-interest-volume` | -| [getPutCallRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2390) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-ratio` | -| [getOpenInterestAndVolumeExpiry()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2400) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-expiry` | -| [getOpenInterestAndVolumeStrike()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2410) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-strike` | -| [getTakerFlow()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2421) | | GET | `/api/v5/rubik/stat/option/taker-block-volume` | -| [getCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2431) | :closed_lock_with_key: | GET | `/api/v5/asset/currencies` | -| [getBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2435) | :closed_lock_with_key: | GET | `/api/v5/asset/balances` | -| [getNonTradableAssets()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2439) | :closed_lock_with_key: | GET | `/api/v5/asset/non-tradable-assets` | -| [getAccountAssetValuation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2443) | :closed_lock_with_key: | GET | `/api/v5/asset/asset-valuation` | -| [fundsTransfer()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2447) | :closed_lock_with_key: | POST | `/api/v5/asset/transfer` | -| [getFundsTransferState()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2452) | :closed_lock_with_key: | GET | `/api/v5/asset/transfer-state` | -| [getAssetBillsDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2460) | :closed_lock_with_key: | GET | `/api/v5/asset/bills` | -| [getLightningDeposits()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2471) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-lightning` | -| [getDepositAddress()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2479) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-address` | -| [getDepositHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2483) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-history` | -| [submitWithdraw()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2487) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal` | -| [submitWithdrawLightning()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2491) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal-lightning` | -| [cancelWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2503) | :closed_lock_with_key: | POST | `/api/v5/asset/cancel-withdrawal` | -| [getWithdrawalHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2507) | :closed_lock_with_key: | GET | `/api/v5/asset/withdrawal-history` | -| [getDepositWithdrawStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2511) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-withdraw-status` | -| [smallAssetsConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2520) | :closed_lock_with_key: | POST | `/api/v5/asset/convert-dust-assets` | -| [getExchanges()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2524) | | GET | `/api/v5/asset/exchange-list` | -| [applyForMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2528) | :closed_lock_with_key: | POST | `/api/v5/asset/monthly-statement` | -| [getMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2532) | :closed_lock_with_key: | GET | `/api/v5/asset/monthly-statement` | -| [getConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2536) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currencies` | -| [getConvertCurrencyPair()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2540) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currency-pair` | -| [estimateConvertQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2547) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/estimate-quote` | -| [convertTrade()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2551) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/trade` | -| [getConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2555) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/history` | -| [getSubAccountList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2566) | :closed_lock_with_key: | GET | `/api/v5/users/subaccount/list` | -| [resetSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2571) | :closed_lock_with_key: | POST | `/api/v5/users/subaccount/modify-apikey` | -| [getSubAccountBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2588) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/balances` | -| [getSubAccountFundingBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2593) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/balances` | -| [getSubAccountMaxWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2603) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/max-withdrawal` | -| [getSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2610) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/bills` | -| [getManagedSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2621) | :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#L2631) | :closed_lock_with_key: | POST | `/api/v5/asset/subaccount/transfer` | -| [setSubAccountTransferOutPermission()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2638) | :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#L2649) | :closed_lock_with_key: | GET | `/api/v5/users/entrust-subaccount-list` | -| [setSubAccountLoanAllocation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2655) | :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#L2668) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/interest-limits` | -| [getStakingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2685) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/offers` | -| [submitStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2694) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/purchase` | -| [redeemStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2710) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/redeem` | -| [cancelStakingRequest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2723) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/cancel` | -| [getActiveStakingOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2734) | :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#L2747) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/orders-history` | -| [getETHStakingProductInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2767) | | GET | `/api/v5/finance/staking-defi/eth/product-info` | -| [purchaseETHStaking()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2771) | :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#L2778) | :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#L2782) | :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#L2786) | :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#L2799) | | GET | `/api/v5/finance/staking-defi/eth/apy-history` | -| [getSavingBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2809) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/balance` | -| [savingsPurchaseRedemption()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2813) | :closed_lock_with_key: | POST | `/api/v5/finance/savings/purchase-redempt` | -| [setLendingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2827) | :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#L2834) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/lending-history` | -| [getPublicBorrowInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2838) | | GET | `/api/v5/finance/savings/lending-rate-summary` | -| [getPublicBorrowHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2842) | | GET | `/api/v5/finance/savings/lending-rate-history` | -| [getLendingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2852) | | GET | `/api/v5/finance/fixed-loan/lending-offers` | -| [getLendingAPYHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2856) | | GET | `/api/v5/finance/fixed-loan/lending-apy-history` | -| [getLendingVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2860) | | GET | `/api/v5/finance/fixed-loan/pending-lending-volume` | -| [placeLendingOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2867) | :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#L2871) | :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#L2875) | :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#L2882) | :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#L2895) | :closed_lock_with_key: | GET | `/api/v5/affiliate/invitee/detail` | -| [getAffiliateRebateInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2899) | :closed_lock_with_key: | GET | `/api/v5/users/partner/if-rebate` | -| [getSystemStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2909) | | GET | `/api/v5/system/status` | -| [getAnnouncements()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2921) | | GET | `/api/v5/support/announcements` | -| [getAnnouncementTypes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2930) | | GET | `/api/v5/support/announcement-types` | -| [getBrokerAccountInformation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2949) | :closed_lock_with_key: | GET | `/api/v5/broker/nd/info` | -| [createSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2953) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/create-subaccount` | -| [deleteSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2962) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/delete-subaccount` | -| [createSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2966) | :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#L376) | :closed_lock_with_key: | GET | `/api/v5/account/instruments` | +| [getBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L382) | :closed_lock_with_key: | GET | `/api/v5/account/balance` | +| [getPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L386) | :closed_lock_with_key: | GET | `/api/v5/account/positions` | +| [getPositionsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L390) | :closed_lock_with_key: | GET | `/api/v5/account/positions-history` | +| [getAccountPositionRisk()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L396) | :closed_lock_with_key: | GET | `/api/v5/account/account-position-risk` | +| [getBills()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L405) | :closed_lock_with_key: | GET | `/api/v5/account/bills` | +| [getBillsArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L410) | :closed_lock_with_key: | GET | `/api/v5/account/bills-archive` | +| [requestBillsHistoryDownloadLink()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L423) | :closed_lock_with_key: | POST | `/api/v5/account/bills-history-archive` | +| [getRequestedBillsHistoryLink()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L433) | :closed_lock_with_key: | GET | `/api/v5/account/bills-history-archive` | +| [getAccountConfiguration()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L440) | :closed_lock_with_key: | GET | `/api/v5/account/config` | +| [setPositionMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L444) | :closed_lock_with_key: | POST | `/api/v5/account/set-position-mode` | +| [setLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L448) | :closed_lock_with_key: | POST | `/api/v5/account/set-leverage` | +| [getMaxBuySellAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L453) | :closed_lock_with_key: | GET | `/api/v5/account/max-size` | +| [getMaxAvailableTradableAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L464) | :closed_lock_with_key: | GET | `/api/v5/account/max-avail-size` | +| [changePositionMargin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L474) | :closed_lock_with_key: | POST | `/api/v5/account/position/margin-balance` | +| [getLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L483) | :closed_lock_with_key: | GET | `/api/v5/account/leverage-info` | +| [getLeverageV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L490) | :closed_lock_with_key: | GET | `/api/v5/account/leverage-info` | +| [getLeverageEstimatedInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L498) | :closed_lock_with_key: | GET | `/api/v5/account/adjust-leverage-info` | +| [getMaxLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L509) | :closed_lock_with_key: | GET | `/api/v5/account/max-loan` | +| [getFeeRates()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L527) | :closed_lock_with_key: | GET | `/api/v5/account/trade-fee` | +| [getFeeRatesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L543) | :closed_lock_with_key: | GET | `/api/v5/account/trade-fee` | +| [getInterestAccrued()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L553) | :closed_lock_with_key: | GET | `/api/v5/account/interest-accrued` | +| [getInterestRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L565) | :closed_lock_with_key: | GET | `/api/v5/account/interest-rate` | +| [setGreeksDisplayType()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L569) | :closed_lock_with_key: | POST | `/api/v5/account/set-greeks` | +| [setIsolatedMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L573) | :closed_lock_with_key: | POST | `/api/v5/account/set-isolated-mode` | +| [getMaxWithdrawals()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L583) | :closed_lock_with_key: | GET | `/api/v5/account/max-withdrawal` | +| [getAccountRiskState()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L587) | :closed_lock_with_key: | GET | `/api/v5/account/risk-state` | +| [submitQuickMarginBorrowRepay()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L591) | :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#L600) | :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#L609) | :closed_lock_with_key: | POST | `/api/v5/account/borrow-repay` | +| [getVIPLoanBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L623) | :closed_lock_with_key: | GET | `/api/v5/account/borrow-repay-history` | +| [getVIPInterestAccrued()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L627) | :closed_lock_with_key: | GET | `/api/v5/account/vip-interest-accrued` | +| [getVIPInterestDeducted()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L631) | :closed_lock_with_key: | GET | `/api/v5/account/vip-interest-deducted` | +| [getVIPLoanOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L637) | :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#L643) | :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#L649) | :closed_lock_with_key: | GET | `/api/v5/account/interest-limits` | +| [getFixedLoanBorrowLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L656) | :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#L660) | :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#L669) | :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#L682) | :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#L695) | :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#L709) | :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#L720) | :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#L731) | :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#L746) | :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#L755) | :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#L769) | :closed_lock_with_key: | POST | `/api/v5/account/set-auto-repay` | +| [getBorrowRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L777) | :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#L782) | :closed_lock_with_key: | POST | `/api/v5/account/position-builder` | +| [updateRiskOffsetAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L786) | :closed_lock_with_key: | POST | `/api/v5/account/set-riskOffset-amt` | +| [getGreeks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L798) | :closed_lock_with_key: | GET | `/api/v5/account/greeks` | +| [getPMLimitation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L802) | :closed_lock_with_key: | GET | `/api/v5/account/position-tiers` | +| [updateRiskOffsetType()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L810) | :closed_lock_with_key: | POST | `/api/v5/account/set-riskOffset-type` | +| [activateOption()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L818) | :closed_lock_with_key: | POST | `/api/v5/account/activate-option` | +| [setAutoLoan()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L826) | :closed_lock_with_key: | POST | `/api/v5/account/set-auto-loan` | +| [presetAccountLevelSwitch()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L830) | :closed_lock_with_key: | POST | `/api/v5/account/account-level-switch-preset` | +| [getAccountSwitchPrecheck()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L841) | :closed_lock_with_key: | GET | `/api/v5/account/set-account-switch-precheck` | +| [setAccountMode()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L850) | :closed_lock_with_key: | POST | `/api/v5/account/set-account-level` | +| [resetMMPStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L856) | :closed_lock_with_key: | POST | `/api/v5/account/mmp-reset` | +| [setMMPConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L864) | :closed_lock_with_key: | POST | `/api/v5/account/mmp-config` | +| [getMMPConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L868) | :closed_lock_with_key: | GET | `/api/v5/account/mmp-config` | +| [submitOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L878) | :closed_lock_with_key: | POST | `/api/v5/trade/order` | +| [submitMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L882) | :closed_lock_with_key: | POST | `/api/v5/trade/batch-orders` | +| [cancelOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L886) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-order` | +| [cancelMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L890) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-batch-orders` | +| [amendOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L896) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-order` | +| [amendMultipleOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L900) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-batch-orders` | +| [closePositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L904) | :closed_lock_with_key: | POST | `/api/v5/trade/close-position` | +| [getOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L908) | :closed_lock_with_key: | GET | `/api/v5/trade/order` | +| [getOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L912) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-pending` | +| [getOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L919) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-history` | +| [getOrderHistoryArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L926) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-history-archive` | +| [getFills()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L935) | :closed_lock_with_key: | GET | `/api/v5/trade/fills` | +| [getFillsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L942) | :closed_lock_with_key: | GET | `/api/v5/trade/fills-history` | +| [getEasyConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L947) | :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#L958) | :closed_lock_with_key: | POST | `/api/v5/trade/easy-convert` | +| [getEasyConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L971) | :closed_lock_with_key: | GET | `/api/v5/trade/easy-convert-history` | +| [getOneClickRepayCurrencyList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L979) | :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#L992) | :closed_lock_with_key: | POST | `/api/v5/trade/one-click-repay` | +| [getOneClickRepayHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1003) | :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#L1007) | :closed_lock_with_key: | POST | `/api/v5/trade/mass-cancel` | +| [cancelAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1019) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-all-after` | +| [getAccountRateLimit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1026) | :closed_lock_with_key: | GET | `/api/v5/trade/account-rate-limit` | +| [submitOrderPrecheck()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1030) | :closed_lock_with_key: | POST | `/api/v5/trade/order-precheck` | +| [placeAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1040) | :closed_lock_with_key: | POST | `/api/v5/trade/order-algo` | +| [cancelAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1044) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-algos` | +| [amendAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1050) | :closed_lock_with_key: | POST | `/api/v5/trade/amend-algos` | +| [cancelAdvanceAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1056) | :closed_lock_with_key: | POST | `/api/v5/trade/cancel-advance-algos` | +| [getAlgoOrderDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1062) | :closed_lock_with_key: | GET | `/api/v5/trade/order-algo` | +| [getAlgoOrderList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1068) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-pending` | +| [getAlgoOrderHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1074) | :closed_lock_with_key: | GET | `/api/v5/trade/orders-algo-history` | +| [placeGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1086) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/order-algo` | +| [amendGridAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1090) | :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#L1102) | :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#L1106) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/close-position` | +| [cancelGridContractCloseOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1112) | :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#L1122) | :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#L1134) | :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#L1141) | :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#L1148) | :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#L1158) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/sub-orders` | +| [getGridAlgoOrderPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1179) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/grid/positions` | +| [spotGridWithdrawIncome()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1189) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/withdraw-income` | +| [computeGridMarginBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1195) | :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#L1207) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/margin-balance` | +| [adjustGridInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1219) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/grid/adjust-investment` | +| [getGridAIParameter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1230) | | GET | `/api/v5/tradingBot/grid/ai-param` | +| [computeGridMinInvestment()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1244) | | POST | `/api/v5/tradingBot/grid/min-investment` | +| [getRSIBackTesting()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1251) | | GET | `/api/v5/tradingBot/public/rsi-back-testing` | +| [getMaxGridQuantity()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1259) | | GET | `/api/v5/tradingBot/grid/grid-quantity` | +| [createSignal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1273) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/create-signal` | +| [getSignals()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1277) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/signals` | +| [createSignalBot()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1281) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/order-algo` | +| [cancelSignalBots()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1287) | :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#L1296) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/margin-balance` | +| [updateSignalTPSL()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1304) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/amendTPSL` | +| [setSignalInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1312) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/set-instruments` | +| [getSignalBotOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1323) | :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#L1333) | :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#L1340) | :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#L1347) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions` | +| [getSignalBotPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1354) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/positions-history` | +| [closeSignalBotPosition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1363) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/close-position` | +| [placeSignalBotSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1371) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/signal/sub-order` | +| [cancelSubOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1375) | :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#L1382) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/sub-orders` | +| [getSignalBotEventHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1386) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/signal/event-history` | +| [submitRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1398) | :closed_lock_with_key: | POST | `/api/v5/tradingBot/recurring/order-algo` | +| [amendRecurringBuyOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1404) | :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#L1413) | :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#L1422) | :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#L1431) | :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#L1440) | :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#L1449) | :closed_lock_with_key: | GET | `/api/v5/tradingBot/recurring/sub-orders` | +| [getCopytradingSubpositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1461) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-subpositions` | +| [getCopytradingSubpositionsHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1467) | :closed_lock_with_key: | GET | `/api/v5/copytrading/subpositions-history` | +| [submitCopytradingAlgoOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1473) | :closed_lock_with_key: | POST | `/api/v5/copytrading/algo-order` | +| [closeCopytradingSubposition()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1479) | :closed_lock_with_key: | POST | `/api/v5/copytrading/close-subposition` | +| [getCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1488) | :closed_lock_with_key: | GET | `/api/v5/copytrading/instruments` | +| [setCopytradingInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1497) | :closed_lock_with_key: | POST | `/api/v5/copytrading/set-instruments` | +| [getCopytradingProfitDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1509) | :closed_lock_with_key: | GET | `/api/v5/copytrading/profit-sharing-details` | +| [getCopytradingTotalProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1518) | :closed_lock_with_key: | GET | `/api/v5/copytrading/total-profit-sharing` | +| [getCopytradingUnrealizedProfit()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1524) | :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#L1533) | :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#L1545) | :closed_lock_with_key: | POST | `/api/v5/copytrading/apply-lead-trading` | +| [stopCopytradingLeadTrading()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1556) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-lead-trading` | +| [updateCopytradingProfitSharing()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1564) | :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#L1578) | :closed_lock_with_key: | GET | `/api/v5/copytrading/config` | +| [setCopytradingFirstCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1582) | :closed_lock_with_key: | POST | `/api/v5/copytrading/first-copy-settings` | +| [updateCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1590) | :closed_lock_with_key: | POST | `/api/v5/copytrading/amend-copy-settings` | +| [stopCopytradingCopy()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1598) | :closed_lock_with_key: | POST | `/api/v5/copytrading/stop-copy-trading` | +| [getCopytradingCopySettings()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1610) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-settings` | +| [getCopytradingBatchLeverageInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1617) | :closed_lock_with_key: | GET | `/api/v5/copytrading/batch-leverage-info` | +| [setCopytradingBatchLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1623) | :closed_lock_with_key: | POST | `/api/v5/copytrading/batch-set-leverage` | +| [getCopytradingMyLeadTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1629) | :closed_lock_with_key: | GET | `/api/v5/copytrading/current-lead-traders` | +| [getCopytradingLeadTradersHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1635) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders-history` | +| [getCopytradingConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1641) | | GET | `/api/v5/copytrading/public-config` | +| [getCopytradingLeadRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1647) | | GET | `/api/v5/copytrading/public-lead-traders` | +| [getCopytradingLeadWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1653) | | GET | `/api/v5/copytrading/public-weekly-pnl` | +| [getCopytradingLeadDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1660) | | GET | `/api/v5/copytrading/public-pnl` | +| [getCopytradingLeadStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1666) | | GET | `/api/v5/copytrading/public-stats` | +| [getCopytradingLeadPreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1672) | | GET | `/api/v5/copytrading/public-preference-currency` | +| [getCopytradingLeadOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1679) | | GET | `/api/v5/copytrading/public-current-subpositions` | +| [getCopytradingLeadPositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1685) | | GET | `/api/v5/copytrading/public-subpositions-history` | +| [getCopyTraders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1691) | | GET | `/api/v5/copytrading/public-copy-traders` | +| [getCopytradingLeadPrivateRanks()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1697) | :closed_lock_with_key: | GET | `/api/v5/copytrading/lead-traders` | +| [getCopytradingLeadPrivateWeeklyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1703) | :closed_lock_with_key: | GET | `/api/v5/copytrading/weekly-pnl` | +| [getCopytradingPLeadPrivateDailyPnl()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1710) | :closed_lock_with_key: | GET | `/api/v5/copytrading/pnl` | +| [geCopytradingLeadPrivateStats()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1716) | :closed_lock_with_key: | GET | `/api/v5/copytrading/stats` | +| [getCopytradingLeadPrivatePreferences()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1722) | :closed_lock_with_key: | GET | `/api/v5/copytrading/preference-currency` | +| [getCopytradingLeadPrivateOpenPositions()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1729) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-current-subpositions` | +| [getCopytradingLeadPrivatePositionHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1738) | :closed_lock_with_key: | GET | `/api/v5/copytrading/performance-subpositions-history` | +| [getCopyTradersPrivate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1747) | :closed_lock_with_key: | GET | `/api/v5/copytrading/copy-traders` | +| [getTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1759) | | GET | `/api/v5/market/tickers` | +| [getTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1766) | | GET | `/api/v5/market/ticker` | +| [getOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1772) | | GET | `/api/v5/market/books` | +| [getFullOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1776) | | GET | `/api/v5/market/books-full` | +| [getCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1791) | | GET | `/api/v5/market/candles` | +| [getCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1803) | | GET | `/api/v5/market/candles` | +| [getHistoricCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1815) | | GET | `/api/v5/market/history-candles` | +| [getHistoricCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1827) | | GET | `/api/v5/market/history-candles` | +| [getTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1831) | | GET | `/api/v5/market/trades` | +| [getHistoricTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1835) | | GET | `/api/v5/market/history-trades` | +| [getOptionTradesByInstrument()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1847) | | GET | `/api/v5/market/option/instrument-family-trades` | +| [getOptionTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1853) | | GET | `/api/v5/public/option-trades` | +| [get24hrTotalVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1857) | | GET | `/api/v5/market/platform-24-volume` | +| [getBlockCounterParties()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1867) | :closed_lock_with_key: | GET | `/api/v5/rfq/counterparties` | +| [createBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1871) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-rfq` | +| [cancelBlockRFQ()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1875) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-rfq` | +| [cancelMultipleBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1881) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-rfqs` | +| [cancelAllRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1887) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-rfqs` | +| [executeBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1891) | :closed_lock_with_key: | POST | `/api/v5/rfq/execute-quote` | +| [getQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1897) | :closed_lock_with_key: | GET | `/api/v5/rfq/maker-instrument-settings` | +| [updateBlockQuoteProducts()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1901) | :closed_lock_with_key: | POST | `/api/v5/rfq/maker-instrument-settings` | +| [resetBlockMmp()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1909) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-reset` | +| [updateBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1917) | :closed_lock_with_key: | POST | `/api/v5/rfq/mmp-config` | +| [getBlockMmpConfig()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1923) | :closed_lock_with_key: | GET | `/api/v5/rfq/mmp-config` | +| [createBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1926) | :closed_lock_with_key: | POST | `/api/v5/rfq/create-quote` | +| [cancelBlockQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1932) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-quote` | +| [cancelMultipleBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1938) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-batch-quotes` | +| [cancelAllBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1944) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-quotes` | +| [cancelAllBlockAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1948) | :closed_lock_with_key: | POST | `/api/v5/rfq/cancel-all-after` | +| [getBlockRFQs()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1957) | :closed_lock_with_key: | GET | `/api/v5/rfq/rfqs` | +| [getBlockQuotes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1961) | :closed_lock_with_key: | GET | `/api/v5/rfq/quotes` | +| [getBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1965) | :closed_lock_with_key: | GET | `/api/v5/rfq/trades` | +| [getPublicRFQBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1969) | | GET | `/api/v5/rfq/public-trades` | +| [getBlockTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1973) | | GET | `/api/v5/market/block-tickers` | +| [getBlockTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1977) | | GET | `/api/v5/market/block-ticker` | +| [getBlockPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1981) | | GET | `/api/v5/public/block-trades` | +| [submitSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1993) | :closed_lock_with_key: | POST | `/api/v5/sprd/order` | +| [cancelSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L1999) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-order` | +| [cancelAllSpreadOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2006) | :closed_lock_with_key: | POST | `/api/v5/sprd/mass-cancel` | +| [updateSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2014) | :closed_lock_with_key: | POST | `/api/v5/sprd/amend-order` | +| [getSpreadOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2020) | :closed_lock_with_key: | GET | `/api/v5/sprd/order` | +| [getSpreadActiveOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2027) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-pending` | +| [getSpreadOrdersRecent()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2033) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history` | +| [getSpreadOrdersArchive()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2039) | :closed_lock_with_key: | GET | `/api/v5/sprd/orders-history-archive` | +| [getSpreadTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2045) | :closed_lock_with_key: | GET | `/api/v5/sprd/trades` | +| [getSpreads()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2049) | | GET | `/api/v5/sprd/spreads` | +| [getSpreadOrderBook()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2053) | | GET | `/api/v5/sprd/books` | +| [getSpreadTicker()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2060) | | GET | `/api/v5/market/sprd-ticker` | +| [getSpreadPublicTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2064) | | GET | `/api/v5/sprd/public-trades` | +| [getSpreadCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2070) | | GET | `/api/v5/market/sprd-candles` | +| [getSpreadHistoryCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2074) | | GET | `/api/v5/market/sprd-history-candles` | +| [cancelSpreadAllAfter()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2080) | :closed_lock_with_key: | POST | `/api/v5/sprd/cancel-all-after` | +| [getInstruments()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2095) | | GET | `/api/v5/public/instruments` | +| [getDeliveryExerciseHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2109) | | GET | `/api/v5/public/delivery-exercise-history` | +| [getOpenInterest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2113) | | GET | `/api/v5/public/open-interest` | +| [getFundingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2117) | | GET | `/api/v5/public/funding-rate` | +| [getFundingRateHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2121) | | GET | `/api/v5/public/funding-rate-history` | +| [getMinMaxLimitPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2125) | | GET | `/api/v5/public/price-limit` | +| [getOptionMarketData()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2129) | | GET | `/api/v5/public/opt-summary` | +| [getEstimatedDeliveryExercisePrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2133) | | GET | `/api/v5/public/estimated-price` | +| [getDiscountRateAndInterestFreeQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2137) | | GET | `/api/v5/public/discount-rate-interest-free-quota` | +| [getSystemTime()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2141) | | GET | `/api/v5/public/time` | +| [getMarkPrice()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2145) | | GET | `/api/v5/public/mark-price` | +| [getPositionTiers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2149) | | GET | `/api/v5/public/position-tiers` | +| [getInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2153) | | GET | `/api/v5/public/interest-rate-loan-quota` | +| [getVIPInterestRateAndLoanQuota()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2157) | | GET | `/api/v5/public/vip-interest-rate-loan-quota` | +| [getUnderlying()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2161) | | GET | `/api/v5/public/underlying` | +| [getInsuranceFund()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2165) | | GET | `/api/v5/public/insurance-fund` | +| [getUnitConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2169) | | GET | `/api/v5/public/convert-contract-coin` | +| [getOptionTickBands()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2173) | | GET | `/api/v5/public/instrument-tick-bands` | +| [getPremiumHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2180) | | GET | `/api/v5/public/premium-history` | +| [getIndexTickers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2184) | | GET | `/api/v5/market/index-tickers` | +| [getIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2199) | | GET | `/api/v5/market/index-candles` | +| [getIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2211) | | GET | `/api/v5/market/index-candles` | +| [getHistoricIndexCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2223) | | GET | `/api/v5/market/history-index-candles` | +| [getHistoricIndexCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2235) | | GET | `/api/v5/market/history-index-candles` | +| [getMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2247) | | GET | `/api/v5/market/mark-price-candles` | +| [getMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2259) | | GET | `/api/v5/market/mark-price-candles` | +| [getHistoricMarkPriceCandles()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2271) | | GET | `/api/v5/market/historic-mark-price-candles` | +| [getHistoricMarkPriceCandlesV2()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2283) | | GET | `/api/v5/market/history-mark-price-candles` | +| [getOracle()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2289) | | GET | `/api/v5/market/open-oracle` | +| [getExchangeRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2293) | | GET | `/api/v5/market/exchange-rate` | +| [getIndexComponents()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2297) | | GET | `/api/v5/market/index-components` | +| [getEconomicCalendar()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2301) | :closed_lock_with_key: | GET | `/api/v5/public/economic-calendar` | +| [getPublicBlockTrades()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2310) | | GET | `/api/v5/market/block-trades` | +| [getLiquidationOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2317) | | GET | `/api/v5/public/liquidation-orders` | +| [getSupportCoin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2327) | | GET | `/api/v5/rubik/stat/trading-data/support-coin` | +| [getOpenInterestHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2331) | | GET | `/api/v5/rubik/stat/contracts/open-interest-history` | +| [getTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2340) | | GET | `/api/v5/rubik/stat/taker-volume` | +| [getContractTakerVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2350) | | GET | `/api/v5/rubik/stat/taker-volume-contract` | +| [getMarginLendingRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2356) | | GET | `/api/v5/rubik/stat/margin/loan-ratio` | +| [getTopTradersAccountRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2365) | | 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#L2374) | | 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#L2383) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio-contract` | +| [getLongShortRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2392) | | GET | `/api/v5/rubik/stat/contracts/long-short-account-ratio` | +| [getContractsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2404) | | GET | `/api/v5/rubik/stat/contracts/open-interest-volume` | +| [getOptionsOpenInterestAndVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2416) | | GET | `/api/v5/rubik/stat/option/open-interest-volume` | +| [getPutCallRatio()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2423) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-ratio` | +| [getOpenInterestAndVolumeExpiry()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2433) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-expiry` | +| [getOpenInterestAndVolumeStrike()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2443) | | GET | `/api/v5/rubik/stat/option/open-interest-volume-strike` | +| [getTakerFlow()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2454) | | GET | `/api/v5/rubik/stat/option/taker-block-volume` | +| [getCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2464) | :closed_lock_with_key: | GET | `/api/v5/asset/currencies` | +| [getBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2468) | :closed_lock_with_key: | GET | `/api/v5/asset/balances` | +| [getNonTradableAssets()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2472) | :closed_lock_with_key: | GET | `/api/v5/asset/non-tradable-assets` | +| [getAccountAssetValuation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2476) | :closed_lock_with_key: | GET | `/api/v5/asset/asset-valuation` | +| [fundsTransfer()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2480) | :closed_lock_with_key: | POST | `/api/v5/asset/transfer` | +| [getFundsTransferState()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2485) | :closed_lock_with_key: | GET | `/api/v5/asset/transfer-state` | +| [getAssetBillsDetails()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2493) | :closed_lock_with_key: | GET | `/api/v5/asset/bills` | +| [getLightningDeposits()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2504) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-lightning` | +| [getDepositAddress()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2512) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-address` | +| [getDepositHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2516) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-history` | +| [submitWithdraw()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2520) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal` | +| [submitWithdrawLightning()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2524) | :closed_lock_with_key: | POST | `/api/v5/asset/withdrawal-lightning` | +| [cancelWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2536) | :closed_lock_with_key: | POST | `/api/v5/asset/cancel-withdrawal` | +| [getWithdrawalHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2540) | :closed_lock_with_key: | GET | `/api/v5/asset/withdrawal-history` | +| [getDepositWithdrawStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2544) | :closed_lock_with_key: | GET | `/api/v5/asset/deposit-withdraw-status` | +| [smallAssetsConvert()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2553) | :closed_lock_with_key: | POST | `/api/v5/asset/convert-dust-assets` | +| [getExchanges()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2557) | | GET | `/api/v5/asset/exchange-list` | +| [applyForMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2561) | :closed_lock_with_key: | POST | `/api/v5/asset/monthly-statement` | +| [getMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2565) | :closed_lock_with_key: | GET | `/api/v5/asset/monthly-statement` | +| [getConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2569) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currencies` | +| [getConvertCurrencyPair()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2573) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/currency-pair` | +| [estimateConvertQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2580) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/estimate-quote` | +| [convertTrade()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2584) | :closed_lock_with_key: | POST | `/api/v5/asset/convert/trade` | +| [getConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2588) | :closed_lock_with_key: | GET | `/api/v5/asset/convert/history` | +| [getSubAccountList()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2599) | :closed_lock_with_key: | GET | `/api/v5/users/subaccount/list` | +| [resetSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2604) | :closed_lock_with_key: | POST | `/api/v5/users/subaccount/modify-apikey` | +| [getSubAccountBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2621) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/balances` | +| [getSubAccountFundingBalances()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2626) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/balances` | +| [getSubAccountMaxWithdrawal()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2636) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/max-withdrawal` | +| [getSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2643) | :closed_lock_with_key: | GET | `/api/v5/asset/subaccount/bills` | +| [getManagedSubAccountTransferHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2654) | :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#L2664) | :closed_lock_with_key: | POST | `/api/v5/asset/subaccount/transfer` | +| [setSubAccountTransferOutPermission()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2671) | :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#L2682) | :closed_lock_with_key: | GET | `/api/v5/users/entrust-subaccount-list` | +| [setSubAccountLoanAllocation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2688) | :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#L2701) | :closed_lock_with_key: | GET | `/api/v5/account/subaccount/interest-limits` | +| [getStakingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2718) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/offers` | +| [submitStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2727) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/purchase` | +| [redeemStake()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2743) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/redeem` | +| [cancelStakingRequest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2756) | :closed_lock_with_key: | POST | `/api/v5/finance/staking-defi/cancel` | +| [getActiveStakingOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2767) | :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#L2780) | :closed_lock_with_key: | GET | `/api/v5/finance/staking-defi/orders-history` | +| [getETHStakingProductInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2800) | | GET | `/api/v5/finance/staking-defi/eth/product-info` | +| [purchaseETHStaking()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2804) | :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#L2811) | :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#L2815) | :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#L2819) | :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#L2832) | | GET | `/api/v5/finance/staking-defi/eth/apy-history` | +| [getSavingBalance()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2842) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/balance` | +| [savingsPurchaseRedemption()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2846) | :closed_lock_with_key: | POST | `/api/v5/finance/savings/purchase-redempt` | +| [setLendingRate()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2860) | :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#L2867) | :closed_lock_with_key: | GET | `/api/v5/finance/savings/lending-history` | +| [getPublicBorrowInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2871) | | GET | `/api/v5/finance/savings/lending-rate-summary` | +| [getPublicBorrowHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2875) | | GET | `/api/v5/finance/savings/lending-rate-history` | +| [getLendingOffers()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2885) | | GET | `/api/v5/finance/fixed-loan/lending-offers` | +| [getLendingAPYHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2889) | | GET | `/api/v5/finance/fixed-loan/lending-apy-history` | +| [getLendingVolume()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2893) | | GET | `/api/v5/finance/fixed-loan/pending-lending-volume` | +| [placeLendingOrder()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2900) | :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#L2904) | :closed_lock_with_key: | POST | `/api/v5/finance/fixed-loan/amend-lending-order` | +| [getLendingOrders()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2911) | :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#L2918) | :closed_lock_with_key: | GET | `/api/v5/finance/fixed-loan/lending-sub-orders` | +| [getBorrowableCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2931) | | GET | `/api/v5/finance/flexible-loan/borrow-currencies` | +| [getCollateralAssets()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2939) | | GET | `/api/v5/finance/flexible-loan/collateral-assets` | +| [getMaxLoanAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2945) | :closed_lock_with_key: | POST | `/api/v5/finance/flexible-loan/max-loan` | +| [adjustCollateral()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2949) | :closed_lock_with_key: | POST | `/api/v5/finance/flexible-loan/adjust-collateral` | +| [getLoanInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2956) | :closed_lock_with_key: | GET | `/api/v5/finance/flexible-loan/loan-info` | +| [getLoanHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2959) | :closed_lock_with_key: | GET | `/api/v5/finance/flexible-loan/loan-history` | +| [getAccruedInterest()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2966) | :closed_lock_with_key: | GET | `/api/v5/finance/flexible-loan/interest-accrued` | +| [getInviteeDetail()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2981) | :closed_lock_with_key: | GET | `/api/v5/affiliate/invitee/detail` | +| [getAffiliateRebateInfo()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2985) | :closed_lock_with_key: | GET | `/api/v5/users/partner/if-rebate` | +| [getSystemStatus()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2995) | | GET | `/api/v5/system/status` | +| [getAnnouncements()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L3007) | | GET | `/api/v5/support/announcements` | +| [getAnnouncementTypes()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L3016) | | GET | `/api/v5/support/announcement-types` | +| [getBrokerAccountInformation()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L3035) | :closed_lock_with_key: | GET | `/api/v5/broker/nd/info` | +| [createSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L3039) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/create-subaccount` | +| [deleteSubAccount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L3048) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/delete-subaccount` | +| [createSubAccountAPIKey()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L3052) | :closed_lock_with_key: | POST | `/api/v5/broker/nd/subaccount/apikey` | \ No newline at end of file diff --git a/examples/apidoc/RestClient/adjustCollateral.js b/examples/apidoc/RestClient/adjustCollateral.js new file mode 100644 index 0000000..1873847 --- /dev/null +++ b/examples/apidoc/RestClient/adjustCollateral.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/finance/flexible-loan/adjust-collateral + // METHOD: POST + // PUBLIC: NO + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.adjustCollateral(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/amendLendingOrder.js b/examples/apidoc/RestClient/amendLendingOrder.js index 9c6accf..81613ef 100644 --- a/examples/apidoc/RestClient/amendLendingOrder.js +++ b/examples/apidoc/RestClient/amendLendingOrder.js @@ -2,7 +2,7 @@ const { RestClient } = require('okx-api'); // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange // This OKX API SDK is available on npm via "npm install okx-api" - // ENDPOINT: /api/v5/finance/fixed-loan/lending-order + // ENDPOINT: /api/v5/finance/fixed-loan/amend-lending-order // METHOD: POST // PUBLIC: NO diff --git a/examples/apidoc/RestClient/getAccountSwitchPrecheck.js b/examples/apidoc/RestClient/getAccountSwitchPrecheck.js new file mode 100644 index 0000000..d6d51c8 --- /dev/null +++ b/examples/apidoc/RestClient/getAccountSwitchPrecheck.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/account/set-account-switch-precheck + // METHOD: GET + // PUBLIC: NO + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.getAccountSwitchPrecheck(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getAccruedInterest.js b/examples/apidoc/RestClient/getAccruedInterest.js new file mode 100644 index 0000000..fdbbf6f --- /dev/null +++ b/examples/apidoc/RestClient/getAccruedInterest.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/finance/flexible-loan/interest-accrued + // METHOD: GET + // PUBLIC: NO + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.getAccruedInterest(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getBorrowableCurrencies.js b/examples/apidoc/RestClient/getBorrowableCurrencies.js new file mode 100644 index 0000000..03c191d --- /dev/null +++ b/examples/apidoc/RestClient/getBorrowableCurrencies.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/finance/flexible-loan/borrow-currencies + // METHOD: GET + // PUBLIC: YES + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.getBorrowableCurrencies(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getCollateralAssets.js b/examples/apidoc/RestClient/getCollateralAssets.js new file mode 100644 index 0000000..99f3e13 --- /dev/null +++ b/examples/apidoc/RestClient/getCollateralAssets.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/finance/flexible-loan/collateral-assets + // METHOD: GET + // PUBLIC: YES + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.getCollateralAssets(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanHistory.js b/examples/apidoc/RestClient/getLoanHistory.js new file mode 100644 index 0000000..737a024 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanHistory.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/finance/flexible-loan/loan-history + // METHOD: GET + // PUBLIC: NO + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.getLoanHistory(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getLoanInfo.js b/examples/apidoc/RestClient/getLoanInfo.js new file mode 100644 index 0000000..ab5dc42 --- /dev/null +++ b/examples/apidoc/RestClient/getLoanInfo.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/finance/flexible-loan/loan-info + // METHOD: GET + // PUBLIC: NO + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.getLoanInfo(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/getMaxLoanAmount.js b/examples/apidoc/RestClient/getMaxLoanAmount.js new file mode 100644 index 0000000..481f65f --- /dev/null +++ b/examples/apidoc/RestClient/getMaxLoanAmount.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/finance/flexible-loan/max-loan + // METHOD: POST + // PUBLIC: NO + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.getMaxLoanAmount(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); diff --git a/examples/apidoc/RestClient/presetAccountLevelSwitch.js b/examples/apidoc/RestClient/presetAccountLevelSwitch.js new file mode 100644 index 0000000..58924eb --- /dev/null +++ b/examples/apidoc/RestClient/presetAccountLevelSwitch.js @@ -0,0 +1,21 @@ +const { RestClient } = require('okx-api'); + + // This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange + // This OKX API SDK is available on npm via "npm install okx-api" + // ENDPOINT: /api/v5/account/account-level-switch-preset + // METHOD: POST + // PUBLIC: NO + +const client = new RestClient({ + apiKey: 'apiKeyHere', + apiSecret: 'apiSecretHere', + apiPass: 'apiPassHere', +}); + +client.presetAccountLevelSwitch(params) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + });