REST API

View as Markdown

Public Endpoints

EndpointMethodPathDescription
Service versionGET/v1/versionGet service version information
Server timeGET/v1/timeGet server time
User loginPOST/v1/public/user/loginUse username and password to obtain accessToken
Refresh TokenPOST/v1/public/user/refresh-tokenRefresh login state via Cookie
Agent Ticket exchangePOST/v1/public/agent-sso/exchange-ticketExchange an agent entrance ticket for login state
Agent Embed Token exchangePOST/v1/public/agent-sso/exchange-embed-tokenExchange an embedded trading short-lived token for login state
Symbol configurationGET/v1/public/market/symbolsGet symbols, trading rules, and fee tier configuration
Funding rate configurationGET/v1/public/market/funding-rateQuery funding rate configuration
Current funding rateGET/v1/public/market/funding-rate/currentPaginate current funding rates
Funding rate historyGET/v1/public/market/funding-rate/historyQuery funding rate history
KlinesGET/v1/public/market/klinesQuery trade price, index price, or mark price Klines
PnL leaderboardGET/v1/public/leaderboard/pnlQuery 7 / 30 / 90 day PnL leaderboard

Private User Endpoints

Unless otherwise specified, the following endpoints can use JWT or API Key signing.

EndpointMethodPathPermissionDescription
User infoGET/v1/private/user/infoReadQuery current user profile
User assetsGET/v1/private/user/assetReadQuery wallet balance and margin usage
Create listenKeyPOST/v1/private/user/listen-keyReadCreate private WebSocket authentication key
Renew listenKeyPUT/v1/private/user/listen-keyReadExtend listenKey validity
Close listenKeyDELETE/v1/private/user/listen-keyReadClose listenKey
Account change logsGET/v1/private/user/account-change-logReadQuery fund movement records
30-day volume statisticsGET/v1/private/user/volume-statsReadQuery recent 30-day trading volume and fees
Balance historyGET/v1/private/user/balance-historyReadQuery balance history
Trade overviewGET/v1/private/user/trade-overviewReadQuery PnL, volume, and asset trend
Asset overview summaryGET/v1/private/user/asset/overview/summaryReadQuery asset summary metrics
Asset overview trendGET/v1/private/user/asset/overview/trendReadQuery asset trend
Save favorite symbolsPOST/v1/private/user/favorite-symbolsReadOverwrite favorite symbols
Get favorite symbolsGET/v1/private/user/favorite-symbolsReadQuery favorite symbols
LogoutPOST/v1/private/user/logoutJWT + CookieClear login state

API Key Management Endpoints

API Key management endpoints only accept JWT.

EndpointMethodPathDescription
Create API KeyPOST/v1/private/user/api-key/createCreate API Key; apiSecret is returned only once
API Key listGET/v1/private/user/api-key/listQuery current user’s API Keys
Update API KeyPUT/v1/private/user/api-key/updateUpdate label, permissions, IP whitelist, and status
Delete API KeyPOST/v1/private/user/api-key/deleteDelete a specified API Key
Delete all API KeysPOST/v1/private/user/api-key/delete-allDelete all API Keys of the current user

Order Endpoints

Order endpoints require trade permission.

EndpointMethodPathDescription
Query single orderGET/v1/private/orderExact query by symbol + orderId/clientOrderId
Place orderPOST/v1/private/order/placeLimit or market order
Place condition orderPOST/v1/private/order/place-conditionStop loss, take profit, trailing stop, and other condition orders
Place strategy orderPOST/v1/private/order/place-strategyOTO / OCO / OTOCO strategy order
Batch place ordersPOST/v1/private/order/batch-placeSubmit multiple normal orders
Cancel orderPOST/v1/private/order/cancelCancel a specified normal order
Amend orderPOST/v1/private/order/moveModify normal pending order price and quantity
Batch amend ordersPOST/v1/private/order/batch-moveBatch modify normal pending orders for the same symbol
Batch cancel ordersPOST/v1/private/order/batch-cancelBatch cancel normal orders
Cancel allPOST/v1/private/order/batch-cancel-allBatch cancel orders by type
Cancel condition orderPOST/v1/private/order/cancel-conditionCancel a specified condition order
Current normal ordersGET/v1/private/order/currentQuery current normal pending orders
Current condition ordersGET/v1/private/order/current-conditionQuery current untriggered condition orders
Historical normal ordersGET/v1/private/order/historyPaginate historical normal orders
Historical condition ordersGET/v1/private/order/history-conditionPaginate historical condition orders
Trade recordsGET/v1/private/order/tradesPaginate trade records
Strategy order detailGET/v1/private/order/strategyQuery strategy order and sub-orders

Position Endpoints

Position endpoints require trade permission.

EndpointMethodPathDescription
Set margin modePOST/v1/private/position/margin-modeSwitch isolated / cross margin
Set leveragePOST/v1/private/position/leverageSet symbol leverage
Position settingsGET/v1/private/position/settingsQuery leverage and margin mode for a symbol
Current positionsGET/v1/private/position/positionsQuery current positions
Position historyGET/v1/private/position/historyQuery historical positions and close records