Liking cljdoc? Tell your friends :D

Binance Spot V1 Endpoint Matrix

English counterpart of BINANCE_ENDPOINT_MATRIX.md. | Türkçe

Legend

  • NONE: no API key or signature.
  • TRADE, USER_DATA: require X-MBX-APIKEY, timestamp, optional recvWindow, and signature.

Public and Market REST

Public nameMethod/pathSecurityParametersWeightData sourceMain response / note
pingGET /api/v3/pingNONENone1Memory{}
server-timeGET /api/v3/timeNONENone1MemoryserverTime; clock-offset input
exchange-infoGET /api/v3/exchangeInfoNONEOptional symbol, symbols, permissions, showPermissionSets, symbolStatus; forbidden combinations validated20MemoryRate limits, symbols, filters, and permissions preserved losslessly
depthGET /api/v3/depthNONERequired symbol; optional limit (default 100, max 5000), symbolStatus5/25/50/250MemorylastUpdateId, bids, asks; weight depends on limit
ticker-24hGET /api/v3/ticker/24hrNONEsymbol or symbols; optional type=FULL|MINI, symbolStatus2/40/80MemoryOne symbol object or multi/all array; parameterless is expensive
ticker-priceGET /api/v3/ticker/priceNONEsymbol or symbols; optional symbolStatusone 2, multi/all 4MemoryLatest price
book-tickerGET /api/v3/ticker/bookTickerNONEsymbol or symbols; optional symbolStatusone 2, multi/all 4MemoryBest bid/ask price and quantity

Dynamic Market Weights

Depth limitWeight
1–1005
101–50025
501–100050
1001–5000250
Ticker selectionWeight
One symbol2
symbols 1–202
symbols 21–10040
symbols 101+ or all symbols80

Account and Trading REST

Public nameMethod/pathSecurityRequired / important parametersWeight / order impactData sourceSafety and response note
accountGET /api/v3/accountUSER_DATAtimestamp; optional omitZeroBalances, recvWindow20Memory → DatabaseBalance and commission fields are decimal
my-tradesGET /api/v3/myTradesUSER_DATAsymbol, timestamp; optional orderId, startTime, endTime, fromId, limit, recvWindow5 with orderId, otherwise 20Memory → DatabasestartTimeendTime maximum 24 hours
test-orderPOST /api/v3/order/testTRADENew-order parameters + timestamp; optional computeCommissionRates1, or 20 with commission calculation; order count 0MemoryValidates without reaching matching engine
new-orderPOST /api/v3/orderTRADEsymbol, side, type, timestamp; LIMIT adds timeInForce,quantity,price; MARKET uses quantity or quoteOrderQtysuccessful/failed 0/1; unfilled count +1Matching EngineUnique newClientOrderId; timeout/5xx means unknown execution
query-orderGET /api/v3/orderUSER_DATAsymbol, timestamp, plus orderId or origClientOrderId4Memory → DatabaseWith both IDs, order ID is found first and client ID checked
cancel-orderDELETE /api/v3/orderTRADEsymbol, timestamp, plus orderId or origClientOrderId; optional cancelRestrictions, newClientOrderIdsuccessful/failed 0/1Matching EngineFastest with orderId only; timeout/5xx requires reconciliation
open-ordersGET /api/v3/openOrdersUSER_DATAtimestamp; optional symbol, recvWindow6 with symbol, otherwise 80Memory → DatabaseParameterless call is expensive

Common REST Errors

Code/statusMeaningConnector result
-1001disconnectedtransport/API error; trading may be unknown based on execution evidence
-1003, HTTP 429/418rate limit / banrate-limit error with retry metadata
-1006, -1007unexpected response / timeoutunknown-execution for trading mutation
-1013invalid message/filtervalidation/API rejection
-1015too many ordersorder rate-limit error
-1021invalid timestampclock error
-1022invalid signatureauthentication/encoding error
HTTP 5xxserver state unknownunknown-execution for trading mutation

Market WebSocket Streams

Public nameStreamFrequencyPayload / note
all-mini-tickers!miniTicker@arr1000 msOnly symbols changed in the interval; not a full snapshot
symbol-ticker<symbol>@ticker1000 msOne-symbol full rolling 24-hour ticker
book-ticker-stream<symbol>@bookTickerreal timeBest bid/ask update
partial-depth<symbol>@depth5|10|201000 ms or @100msTop-N snapshot update; V1 builds no full local book
lifecycleserverShutdown eventserver-drivenReconnect and restore subscriptions

User Data Stream WebSocket API

Method/eventSecurityWeightV1 use
userDataStream.subscribe.signatureUSER_STREAM, signed2Primary HMAC/Ed25519 subscription
userDataStream.unsubscribeConnection/session2One subscriptionId or all subscriptions
session.subscriptionsConnection/session2Restore/diagnostic verification
session.logon + userDataStream.subscribeEd25519 session only2 + 2Secondary path; not required for HMAC-default V1
executionReporteventOrder lifecycle and reconciliation
outboundAccountPositioneventChanged free/locked balances
balanceUpdateeventBalance delta
eventStreamTerminatedeventSubscription recovery

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close