Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/tiagosiebler/bybit-api/llms.txt

Use this file to discover all available pages before exploring further.

RestClientV5 is the single unified REST client for every Bybit V5 endpoint. It covers public market data, authenticated trading, position management, account configuration, asset transfers, user administration, and specialised categories such as Earn, Broker, Institutional Lending, and P2P. All methods return typed Promise values, and authentication is handled automatically whenever you supply key and secret during construction.

Installation & Import

npm install bybit-api
import { RestClientV5 } from 'bybit-api';
Looking for the legacy Spot V3 client? The SDK also exports SpotClientV3 for backwards compatibility with Bybit’s older V3 Spot REST endpoints. Bybit has deprecated those endpoints in favour of the unified V5 API, so all new integrations should use RestClientV5 with category: 'spot' instead.
import { SpotClientV3 } from 'bybit-api'; // legacy — prefer RestClientV5

Constructor

const client = new RestClientV5(options?: RestClientOptions);
options
RestClientOptions
Configuration object for the REST client. All fields are optional.

Instantiation examples

import { RestClientV5 } from 'bybit-api';

const client = new RestClientV5();
The key and secret fields are only required when calling authenticated (🔒) endpoints. Public endpoints work without them.

Utility Methods

MethodAuthHTTPEndpointDescription
getServerTime()GET/v5/market/timeReturns current server timestamp.
getSystemStatus()🔒GET/v5/system/statusCheck Bybit system status.
fetchServerTime()Convenience helper – resolves to the server time as a Unix second number.
fetchLatencySummary()Measures round-trip latency and estimates clock offset.
requestDemoTradingFunds()🔒POST/v5/account/demo-apply-moneyRequest demo trading funds.
createDemoAccount()🔒POST/v5/user/create-demo-memberCreate a new demo sub-account.

Market Data

All market-data methods are public and do not require API credentials.
MethodAuthHTTPEndpointDescription
getKline(params)GET/v5/market/klineOHLCV kline/candlestick data.
getMarkPriceKline(params)GET/v5/market/mark-price-klineMark price kline data.
getIndexPriceKline(params)GET/v5/market/index-price-klineIndex price kline data.
getPremiumIndexPriceKline(params)GET/v5/market/premium-index-price-klinePremium index kline data.
getInstrumentsInfo(params)GET/v5/market/instruments-infoInstrument specifications for a category.
getOrderbook(params)GET/v5/market/orderbookOrder book snapshot.
getRPIOrderbook(params)GET/v5/market/rpi_orderbookRPI order book.
getTickers(params)GET/v5/market/tickersReal-time ticker for instruments.
getFundingRateHistory(params)GET/v5/market/funding/historyHistorical funding rates.
getPublicTradingHistory(params)GET/v5/market/recent-tradeRecent public trades.
getOpenInterest(params)GET/v5/market/open-interestOpen interest data.
getHistoricalVolatility(params)GET/v5/market/historical-volatilityHistorical volatility (options).
getInsurance(params)GET/v5/market/insuranceInsurance fund information.
getRiskLimit(params)GET/v5/market/risk-limitRisk limit tiers.
getOptionDeliveryPrice(params)GET/v5/market/delivery-priceOption delivery prices.
getDeliveryPrice(params)GET/v5/market/delivery-priceDelivery price (alias).
getNewDeliveryPrice(params)GET/v5/market/new-delivery-priceNew delivery price endpoint.
getLongShortRatio(params)GET/v5/market/account-ratioLong/short ratio.
getIndexPriceComponents(params)GET/v5/market/index-price-componentsComponents of an index price.
getOrderPriceLimit(params)GET/v5/market/price-limitOrder price limits for an instrument.
getADLAlert(params)GET/v5/market/adlAlertAuto-deleveraging alert data.
getFeeGroupStructure(params)GET/v5/market/fee-group-infoFee group structure data.

Example — fetch kline data

const klines = await client.getKline({
  category: 'linear',
  symbol: 'BTCUSDT',
  interval: '60',
  limit: 200,
});
console.log(klines.result.list);

Spread Trading

MethodAuthHTTPEndpointDescription
getSpreadInstrumentsInfo(params)GET/v5/spread/instrumentSpread instrument specs.
getSpreadOrderbook(params)GET/v5/spread/orderbookSpread order book.
getSpreadTickers(params)GET/v5/spread/tickersSpread tickers.
getSpreadRecentTrades(params)GET/v5/spread/recent-tradeRecent spread trades.
getSpreadMaxQty(params)🔒GET/v5/spread/max-qtyMax order size for spread.
submitSpreadOrder(params)🔒POST/v5/spread/order/createPlace a spread order.
amendSpreadOrder(params)🔒POST/v5/spread/order/amendAmend a spread order.
cancelSpreadOrder(params)🔒POST/v5/spread/order/cancelCancel a spread order.
cancelAllSpreadOrders(params)🔒POST/v5/spread/order/cancel-allCancel all spread orders.
getSpreadOpenOrders(params)🔒GET/v5/spread/order/realtimeActive spread orders.
getSpreadOrderHistory(params)🔒GET/v5/spread/order/historyHistorical spread orders.
getSpreadTradeHistory(params)🔒GET/v5/spread/execution/listSpread execution history.

Orders

All order methods require a valid API key and secret.
MethodAuthHTTPEndpointDescription
submitOrder(params)🔒POST/v5/order/createPlace a new order.
amendOrder(params)🔒POST/v5/order/amendAmend an open order.
cancelOrder(params)🔒POST/v5/order/cancelCancel an open order.
getActiveOrders(params)🔒GET/v5/order/realtimeQuery active (open) orders.
cancelAllOrders(params)🔒POST/v5/order/cancel-allCancel all open orders.
getHistoricOrders(params)🔒GET/v5/order/historyHistorical order records.
getExecutionList(params)🔒GET/v5/execution/listTrade execution history.
batchSubmitOrders(category, orders)🔒POST/v5/order/create-batchPlace multiple orders in one request.
batchAmendOrders(category, orders)🔒POST/v5/order/amend-batchAmend multiple orders in one request.
batchCancelOrders(category, orders)🔒POST/v5/order/cancel-batchCancel multiple orders in one request.
getSpotBorrowCheck(params)🔒GET/v5/order/spot-borrow-checkCheck borrow quota before spot order.
setDisconnectCancelAllWindow(params)🔒POST/v5/order/disconnected-cancel-allSet DCP (disconnect cancel all) window.
setDisconnectCancelAllWindowV2(params)🔒POST/v5/order/disconnected-cancel-allV2 DCP window setter.
preCheckOrder(params)🔒POST/v5/order/pre-checkPre-flight order validation.

Example — place and cancel an order

// Submit a limit buy order
const order = await client.submitOrder({
  category: 'linear',
  symbol: 'BTCUSDT',
  side: 'Buy',
  orderType: 'Limit',
  qty: '0.01',
  price: '30000',
  timeInForce: 'GTC',
});

// Cancel the same order
await client.cancelOrder({
  category: 'linear',
  symbol: 'BTCUSDT',
  orderId: order.result.orderId,
});

Example — batch orders

const result = await client.batchSubmitOrders('linear', [
  { symbol: 'BTCUSDT', side: 'Buy', orderType: 'Limit', qty: '0.01', price: '29000', timeInForce: 'GTC' },
  { symbol: 'ETHUSDT', side: 'Sell', orderType: 'Limit', qty: '0.1', price: '2000', timeInForce: 'GTC' },
]);

Strategy Orders

MethodAuthHTTPEndpointDescription
createStrategyOrder(params)🔒POST/v5/strategy/createCreate a TWAP / algo strategy order.
getStrategyList(params)🔒GET/v5/strategy/listQuery active strategy list.
getStrategyOrderList(params)🔒GET/v5/strategy/order-listChild orders of a strategy.
stopStrategy(params)🔒POST/v5/strategy/stopStop a running strategy.

Positions

MethodAuthHTTPEndpointDescription
getPositionInfo(params)🔒GET/v5/position/listQuery open positions.
setLeverage(params)🔒POST/v5/position/set-leverageSet leverage for a symbol.
switchIsolatedMargin(params)🔒POST/v5/position/switch-isolatedToggle between cross and isolated margin.
setTPSLMode(params)🔒POST/v5/position/set-tpsl-modeSet TP/SL mode (Full or Partial).
switchPositionMode(params)🔒POST/v5/position/switch-modeSwitch between one-way and hedge mode.
setRiskLimit(params)🔒POST/v5/position/set-risk-limitSet the risk limit tier.
setTradingStop(params)🔒POST/v5/position/trading-stopSet take-profit / stop-loss / trailing stop.
setAutoAddMargin(params)🔒POST/v5/position/set-auto-add-marginEnable or disable auto-add margin.
addOrReduceMargin(params)🔒POST/v5/position/add-marginManually add or reduce isolated margin.
getClosedPnL(params)🔒GET/v5/position/closed-pnlClosed profit & loss history.
getClosedOptionsPositions(params)🔒GET/v5/position/get-closed-positionsClosed options position records.
movePosition(params)🔒POST/v5/position/move-positionsMove a position between sub-accounts.
getMovePositionHistory(params)🔒GET/v5/position/move-historyHistory of position moves.
confirmNewRiskLimit(params)🔒POST/v5/position/confirm-pending-mmrConfirm a pending risk-limit change.

Example — set leverage

await client.setLeverage({
  category: 'linear',
  symbol: 'BTCUSDT',
  buyLeverage: '10',
  sellLeverage: '10',
});

Pre-Upgrade Data

These endpoints expose order/position history that existed before a unified account upgrade.
MethodAuthHTTPEndpointDescription
getPreUpgradeOrderHistory(params)🔒GET/v5/pre-upgrade/order/historyPre-upgrade order history.
getPreUpgradeTradeHistory(params)🔒GET/v5/pre-upgrade/execution/listPre-upgrade execution list.
getPreUpgradeClosedPnl(params)🔒GET/v5/pre-upgrade/position/closed-pnlPre-upgrade closed PnL.
getPreUpgradeTransactions(params)🔒GET/v5/pre-upgrade/account/transaction-logPre-upgrade transaction log.
getPreUpgradeOptionDeliveryRecord(params)🔒GET/v5/pre-upgrade/asset/delivery-recordPre-upgrade option delivery records.
getPreUpgradeUSDCSessionSettlements(params)🔒GET/v5/pre-upgrade/asset/settlement-recordPre-upgrade USDC session settlements.

Account

MethodAuthHTTPEndpointDescription
getWalletBalance(params)🔒GET/v5/account/wallet-balanceWallet balance by account type.
getTransferableAmount(params)🔒GET/v5/account/withdrawalTransferable coin amount.
getAccountInstrumentsInfo(params)🔒GET/v5/account/instruments-infoPer-account instrument settings.
upgradeToUnifiedAccount()🔒POST/v5/account/upgrade-to-utaUpgrade classic account to unified.
getBorrowHistory(params)🔒GET/v5/account/borrow-historyBorrow order history.
repayLiability(params)🔒POST/v5/account/quick-repaymentQuick-repay liability.
manualRepay(params)🔒POST/v5/account/repayManual liability repayment.
setCollateralCoin(params)🔒POST/v5/account/set-collateral-switchToggle collateral for a single coin.
batchSetCollateralCoin(params)🔒POST/v5/account/set-collateral-switch-batchToggle collateral for multiple coins.
getCollateralInfo(currency)🔒GET/v5/account/collateral-infoCollateral info for a currency.
getCoinGreeks(params)🔒GET/v5/asset/coin-greeksOption greeks for portfolio.
getFeeRate(params)🔒GET/v5/account/fee-rateMaker/taker fee rates.
getAccountInfo()🔒GET/v5/account/infoGeneral account information.
getDCPInfo()🔒GET/v5/account/query-dcp-infoDisconnect cancel policy info.
getTransactionLog(params)🔒GET/v5/account/transaction-logTransaction log (unified account).
getClassicTransactionLogs(params)🔒GET/v5/account/contract-transaction-logTransaction log (classic account).
getSMPGroup()🔒GET/v5/account/smp-groupSelf-match prevention group info.
setMarginMode(params)🔒POST/v5/account/set-margin-modeSet account margin mode.
setSpotHedging(params)🔒POST/v5/account/set-hedging-modeEnable/disable spot hedging.
setLimitPriceAction(params)🔒POST/v5/account/set-limit-px-actionConfigure limit price action.
getLimitPriceAction(params)🔒GET/v5/account/user-setting-configGet limit price action setting.
setDeltaNeutralMode(params)🔒POST/v5/account/set-delta-modeSet delta neutral mode.
setMMP(params)🔒POST/v5/account/mmp-modifyConfigure market maker protection.
resetMMP(params)🔒POST/v5/account/mmp-resetReset MMP.
getMMPState(params)🔒GET/v5/account/mmp-stateCurrent MMP state.
getOptionAssetInfo(params)🔒GET/v5/account/option-asset-infoOptions asset summary.
getPayInfo()🔒GET/v5/account/pay-infoPay account info.
getTradeInfoForAnalysis(params)🔒GET/v5/account/trade-info-for-analysisTrade analysis data.

Asset

MethodAuthHTTPEndpointDescription
getAssetOverview(params)🔒GET/v5/asset/asset-overviewOverview of all assets.
getPortfolioMarginInfo(params)🔒GET/v5/asset/portfolio-marginPortfolio margin details.
getTotalMembersAssets(params)🔒GET/v5/asset/total-members-assetsTotal asset value across members.
getFundingAccountTransactionHistory(params)🔒GET/v5/asset/fundinghistoryFunding account transaction log.
getDeliveryRecord(params)🔒GET/v5/asset/delivery-recordOption/futures delivery records.
getSettlementRecords(params)🔒GET/v5/asset/settlement-recordUSDC session settlement records.
getCoinExchangeRecords(params)🔒GET/v5/asset/exchange/order-recordCoin exchange records.
getCoinInfo(params)🔒GET/v5/asset/coin/query-infoCoin withdrawal/deposit configuration.
getSubUID(params)🔒GET/v5/asset/transfer/query-sub-member-listTransferable sub-UIDs.
getAssetInfo(params)🔒GET/v5/asset/transfer/query-asset-infoAsset info for a UID.
getAllCoinsBalance(params)🔒GET/v5/asset/transfer/query-account-coins-balanceAll coin balances for an account type.
getCoinBalance(params)🔒GET/v5/asset/transfer/query-account-coin-balanceBalance of a single coin.
getWithdrawableAmount(params)🔒GET/v5/asset/withdraw/withdrawable-amountMaximum withdrawable amount.
getTransferableCoinList(params)🔒GET/v5/asset/transfer/query-transfer-coin-listCoins available for internal transfer.
createInternalTransfer(params)🔒POST/v5/asset/transfer/inter-transferExecute an internal transfer.
getInternalTransferRecords(params)🔒GET/v5/asset/transfer/query-inter-transfer-listInternal transfer history.
enableUniversalTransferForSubUIDs(params)🔒POST/v5/asset/transfer/save-transfer-sub-memberEnable universal transfer for sub-UIDs.
createUniversalTransfer(params)🔒POST/v5/asset/transfer/universal-transferUniversal cross-account transfer.
getUniversalTransferRecords(params)🔒GET/v5/asset/transfer/query-universal-transfer-listUniversal transfer history.
getAllowedDepositCoinInfo(params)🔒GET/v5/asset/deposit/query-allowed-listAllowed deposit coins.
setDepositAccount(params)🔒POST/v5/asset/deposit/deposit-to-accountSet deposit target account.
getDepositRecords(params)🔒GET/v5/asset/deposit/query-recordDeposit history.
getSubAccountDepositRecords(params)🔒GET/v5/asset/deposit/query-sub-member-recordSub-account deposit history.
getInternalDepositRecords(params)🔒GET/v5/asset/deposit/query-internal-recordInternal deposit records.
getMasterDepositAddress(params)🔒GET/v5/asset/deposit/query-addressMaster account deposit address.
getSubDepositAddress(params)🔒GET/v5/asset/deposit/query-sub-member-addressSub-account deposit address.
querySubMemberAddress(params)🔒GET/v5/asset/deposit/query-sub-member-addressQuery sub-member deposit address.
getWithdrawalRecords(params)🔒GET/v5/asset/withdraw/query-recordWithdrawal history.
getWithdrawalAddressList(params)🔒GET/v5/asset/withdraw/query-addressSaved withdrawal addresses.
getExchangeEntities(params)🔒GET/v5/asset/withdraw/vasp/listTravel-rule VASP list.
submitWithdrawal(params)🔒POST/v5/asset/withdraw/createSubmit a withdrawal.
cancelWithdrawal(params)🔒POST/v5/asset/withdraw/cancelCancel a pending withdrawal.
getConvertCoins(params)🔒GET/v5/asset/exchange/query-coin-listCoins available for conversion.
requestConvertQuote(params)🔒POST/v5/asset/exchange/quote-applyRequest a conversion quote.
confirmConvertQuote(params)🔒POST/v5/asset/exchange/convert-executeConfirm and execute a conversion.
getConvertStatus(params)🔒GET/v5/asset/exchange/convert-result-queryConversion status.
getConvertHistory(params)🔒GET/v5/asset/exchange/query-convert-historyConversion history.
getSmallBalanceList(params)🔒GET/v5/asset/covert/small-balance-listSmall balances eligible for conversion.
getFiatTradingPairList(params)🔒GET/v5/fiat/query-coin-listFiat trading pair list.

User & Sub-Accounts

MethodAuthHTTPEndpointDescription
createSubMember(params)🔒POST/v5/user/create-sub-memberCreate a new sub-account.
createSubUIDAPIKey(params)🔒POST/v5/user/create-sub-apiCreate API key for sub-account.
getSubUIDList(params)🔒GET/v5/user/query-sub-membersList sub-accounts (paginated).
getSubUIDListUnlimited(params)🔒GET/v5/user/submembersList all sub-accounts (unlimited).
setSubUIDFrozenState(params)🔒POST/v5/user/frozen-sub-memberFreeze or unfreeze a sub-account.
getQueryApiKey()🔒GET/v5/user/query-apiQuery current API key info.
getSubAccountAllApiKeys(params)🔒GET/v5/user/sub-apikeysAll API keys for a sub-account.
getUIDWalletType(params)🔒GET/v5/user/get-member-typeAccount wallet type.
updateMasterApiKey(params)🔒POST/v5/user/update-apiUpdate master account API key.
updateSubApiKey(params)🔒POST/v5/user/update-sub-apiUpdate sub-account API key.
deleteSubMember(params)🔒POST/v5/user/del-submemberDelete a sub-account.
deleteMasterApiKey(params)🔒POST/v5/user/delete-apiDelete master API key.
deleteSubApiKey(params)🔒POST/v5/user/delete-sub-apiDelete sub-account API key.
getAffiliateUserList(params)🔒GET/v5/affiliate/aff-user-listAffiliate user list.
getAffiliateSubAffiliateList(params)🔒GET/v5/affiliate/affiliate-sub-listSub-affiliate list.
getAffiliateUserInfo(params)🔒GET/v5/user/aff-customer-infoAffiliate customer info.
getFriendReferrals(params)🔒GET/v5/user/invitation/referralsFriend referral list.
signAgreement(params)🔒POST/v5/user/agreementSign a user agreement.

Earn

The Earn section covers staking, fixed-term products, advance earn, liquidity mining, token earn, and portfolio wealth management (PWM).
MethodAuthHTTPEndpointDescription
getEarnProduct(params)GET/v5/earn/productList available earn products.
submitStakeRedeem(params)🔒POST/v5/earn/place-orderStake or redeem an earn product.
getEarnOrderHistory(params)🔒GET/v5/earn/orderEarn order history.
getEarnPosition(params)🔒GET/v5/earn/positionCurrent earn positions.
modifyEarnPosition(params)🔒POST/v5/earn/position/modifyModify an earn position.
getEarnYieldHistory(params)🔒GET/v5/earn/yieldDaily yield history.
getEarnAprHistory(params)GET/v5/earn/apr-historyAPR history for earn products.
getFixedTermEarnProduct(params)GET/v5/earn/fixed-term/productFixed-term earn products.
submitFixedTermEarnOrder(params)🔒POST/v5/earn/fixed-term/place-orderSubscribe to fixed-term earn.
redeemFixedTermEarn(params)🔒POST/v5/earn/fixed-term/redeemRedeem fixed-term earn.
getAdvanceEarnProduct(params)GET/v5/earn/advance/productAdvance earn products.
submitAdvanceEarnPlaceOrder(params)🔒POST/v5/earn/advance/place-orderPlace an advance earn order.
getLiquidityMiningProduct(params)GET/v5/earn/liquidity-mining/productLiquidity mining products.
getEarnTokenProduct(params)GET/v5/earn/token/productToken earn products.
submitEarnTokenOrder(params)🔒POST/v5/earn/token/place-orderPlace a token earn order.
getPwmInvestmentPlanList(params)🔒GET/v5/earn/pwm/investment-plan/listPWM investment plan list.
subscribePwmInvestmentPlan(params)🔒POST/v5/earn/pwm/investment-plan/subscribeSubscribe to a PWM plan.
The full list of Earn and PWM methods (30+) is available in the endpoint function list on GitHub.

Spot Margin Trading

MethodAuthHTTPEndpointDescription
getVIPMarginData(params)GET/v5/spot-margin-trade/dataVIP margin data.
getHistoricalInterestRate(params)🔒GET/v5/spot-margin-trade/interest-rate-historyHistorical interest rates.
toggleSpotMarginTrade(params)🔒POST/v5/spot-margin-trade/switch-modeEnable or disable spot margin.
setSpotMarginLeverage(params)🔒POST/v5/spot-margin-trade/set-leverageSet spot margin leverage.
getSpotMarginState(params)🔒GET/v5/spot-margin-trade/stateCurrent spot margin state.
manualBorrow(params)🔒POST/v5/account/borrowManually borrow funds.
manualRepayWithoutConversion(params)🔒POST/v5/account/no-convert-repayRepay without coin conversion.
getSpotMarginCoinInfo(params)🔒GET/v5/spot-cross-margin-trade/pledge-tokenCross margin collateral coins.
spotMarginBorrow(params)🔒POST/v5/spot-cross-margin-trade/loanBorrow via cross margin.
spotMarginRepay(params)🔒POST/v5/spot-cross-margin-trade/repayRepay cross margin loan.
toggleSpotCrossMarginTrade(params)🔒POST/v5/spot-cross-margin-trade/switchToggle cross margin trading.

Crypto Loan

MethodAuthHTTPEndpointDescription
getCollateralCoins(params)GET/v5/crypto-loan/collateral-dataAvailable collateral coins.
getBorrowableCoins(params)GET/v5/crypto-loan/loanable-dataAvailable borrowable coins.
getAccountBorrowCollateralLimit(params)🔒GET/v5/crypto-loan/borrowable-collateralisable-numberBorrowable and collateralisable limits.
borrowCryptoLoan(params)🔒POST/v5/crypto-loan/borrowBorrow a crypto loan.
repayCryptoLoan(params)🔒POST/v5/crypto-loan/repayRepay a crypto loan.
getUnpaidLoanOrders(params)🔒GET/v5/crypto-loan/ongoing-ordersActive loan orders.
getRepaymentHistory(params)🔒GET/v5/crypto-loan/repayment-historyLoan repayment history.
getCompletedLoanOrderHistory(params)🔒GET/v5/crypto-loan/borrow-historyCompleted loan history.
adjustCollateralAmount(params)🔒POST/v5/crypto-loan/adjust-ltvAdjust loan-to-value ratio.
borrowFlexible(params)🔒POST/v5/crypto-loan-flexible/borrowBorrow via flexible loan.
repayFlexible(params)🔒POST/v5/crypto-loan-flexible/repayRepay flexible loan.

Institutional Lending

MethodAuthHTTPEndpointDescription
getInstitutionalLendingProductInfo(params)GET/v5/ins-loan/product-infosInstitutional loan products.
getInstitutionalLendingMarginCoinInfo(params)GET/v5/ins-loan/ensure-tokensMargin coin info.
getInstitutionalLendingLoanOrders(params)🔒GET/v5/ins-loan/loan-orderInstitutional loan orders.
getInstitutionalLendingRepayOrders(params)🔒GET/v5/ins-loan/repaid-historyRepayment history.
getInstitutionalLendingLTV(params)🔒GET/v5/ins-loan/ltvCurrent LTV.
bindOrUnbindUID(params)🔒POST/v5/ins-loan/association-uidBind/unbind UID to institutional loan.
repayInstitutionalLoan(params)🔒POST/v5/ins-loan/repay-loanRepay institutional loan.

Broker

MethodAuthHTTPEndpointDescription
getExchangeBrokerEarnings(params)🔒GET/v5/broker/earnings-infoBroker earnings info.
getExchangeBrokerAccountInfo()🔒GET/v5/broker/account-infoBroker account summary.
getBrokerSubAccountDeposits(params)🔒GET/v5/broker/asset/query-sub-member-deposit-recordSub-account deposit records.
getBrokerVoucherSpec(params)🔒POST/v5/broker/award/infoVoucher specification.
issueBrokerVoucher(params)🔒POST/v5/broker/award/distribute-awardIssue a broker voucher.
getBrokerIssuedVoucher(params)🔒POST/v5/broker/award/distribution-recordIssued voucher records.
setBrokerRateLimit(params)🔒POST/v5/broker/apilimit/setSet broker rate limit for a sub-account.
getBrokerRateLimitCap(params)🔒GET/v5/broker/apilimit/query-capBroker rate limit cap.
getAllBrokerRateLimits(params)🔒GET/v5/broker/apilimit/query-allAll broker rate limit entries.

P2P

MethodAuthHTTPEndpointDescription
getP2PAccountCoinsBalance(params)🔒GET/v5/asset/transfer/query-account-coins-balanceP2P account coin balances.
getP2POnlineAds(params)🔒POST/v5/p2p/item/onlineBrowse online P2P ads.
createP2PAd(params)🔒POST/v5/p2p/item/createCreate a P2P ad.
cancelP2PAd(params)🔒POST/v5/p2p/item/cancelCancel a P2P ad.
updateP2PAd(params)🔒POST/v5/p2p/item/updateUpdate a P2P ad.
getP2POrders(params)🔒POST/v5/p2p/order/simplifyListList P2P orders.
getP2POrderDetail(params)🔒POST/v5/p2p/order/infoP2P order detail.
markP2POrderAsPaid(params)🔒POST/v5/p2p/order/payMark an order as paid.
releaseP2POrder(params)🔒POST/v5/p2p/order/finishRelease crypto for a P2P order.
sendP2POrderMessage(params)🔒POST/v5/p2p/order/message/sendSend an order chat message.
getP2PUserInfo(params)🔒POST/v5/p2p/user/personal/infoP2P user profile.

RFQ (Request for Quote)

MethodAuthHTTPEndpointDescription
createRFQ(params)🔒POST/v5/rfq/create-rfqCreate a new RFQ.
getRFQConfig(params)🔒GET/v5/rfq/configRFQ configuration.
cancelRFQ(params)🔒POST/v5/rfq/cancel-rfqCancel an RFQ.
cancelAllRFQ(params)🔒POST/v5/rfq/cancel-all-rfqCancel all RFQs.
createRFQQuote(params)🔒POST/v5/rfq/create-quoteCreate a quote on an RFQ.
executeRFQQuote(params)🔒POST/v5/rfq/execute-quoteExecute a quote.
cancelRFQQuote(params)🔒POST/v5/rfq/cancel-quoteCancel a quote.
cancelAllRFQQuotes(params)🔒POST/v5/rfq/cancel-all-quotesCancel all quotes.
getRFQRealtimeInfo(params)🔒GET/v5/rfq/rfq-realtimeReal-time RFQ data.
getRFQHistory(params)🔒GET/v5/rfq/rfq-listRFQ history.
getRFQTrades(params)🔒GET/v5/rfq/trade-listRFQ trade list.

Alpha Trading

MethodAuthHTTPEndpointDescription
getAlphaTradeQuote(params)🔒POST/v5/alpha/trade/quoteGet alpha trade quote.
executeAlphaTradePurchase(params)🔒POST/v5/alpha/trade/purchaseExecute alpha purchase.
executeAlphaTradeRedeem(params)🔒POST/v5/alpha/trade/redeemExecute alpha redemption.
getAlphaBizTokenList(params)🔒POST/v5/alpha/trade/biz-token-listBusiness token list.

API Rate Limits

MethodAuthHTTPEndpointDescription
setApiRateLimit(params)🔒POST/v5/apilimit/setSet custom rate limit.
queryApiRateLimit(params)🔒GET/v5/apilimit/queryQuery current rate limit.
getRateLimitCap(params)🔒GET/v5/apilimit/query-capRate limit cap.
getAllRateLimits(params)🔒GET/v5/apilimit/query-allAll rate limit entries.

Types Reference

TypeScript interfaces for all request and response shapes.

WebsocketClient

Real-time data subscriptions via WebSocket.

WebsocketAPIClient

Promise-based order management over WebSocket.

Full Endpoint List

Complete auto-generated endpoint → method mapping on GitHub.

Build docs developers (and LLMs) love