Liking cljdoc? Tell your friends :D

Binance Spot V1 Endpoint Matrisi

Okuma Anahtarı

  • NONE: API key/imza yok.
  • TRADE, USER_DATA: X-MBX-APIKEY, timestamp, opsiyonel recvWindow ve signature gerekir.
  • “Weight 0/1” ifadesi 2026-04-02 kuralıdır: başarılı çağrı 0, başarısız çağrı belgelenmiş 1 weight tüketir.
  • Response finansal string'leri BigDecimal olarak normalize edilir; raw response ve bilinmeyen alanlar kaybedilmez.

Birincil kaynak: sabitlenmiş REST API belgesi.

Public ve Market REST

Public adMethod/pathSecurityParametrelerWeightData sourceTemel response / not
pingGET /api/v3/pingNONEYok1Memory{}
server-timeGET /api/v3/timeNONEYok1MemoryserverTime; clock offset girdisi
exchange-infoGET /api/v3/exchangeInfoNONEOpsiyonel symbol, symbols, permissions, showPermissionSets, symbolStatus; yasak kombinasyonlar doğrulanır20MemoryRate limits, symbols, filters ve izinler kayıpsız tutulur
depthGET /api/v3/depthNONEZorunlu symbol; opsiyonel limit (default 100, max 5000), symbolStatus5/25/50/250MemorylastUpdateId, bids, asks; weight limit aralığına bağlı
ticker-24hGET /api/v3/ticker/24hrNONEsymbol veya symbols; opsiyonel type=FULL|MINI, symbolStatus2/40/80MemoryTek symbol object, çok/all symbol array; paramsız çağrı pahalıdır
ticker-priceGET /api/v3/ticker/priceNONEsymbol veya symbols; opsiyonel symbolStatustek 2, çok/all 4MemorySon fiyat
book-tickerGET /api/v3/ticker/bookTickerNONEsymbol veya symbols; opsiyonel symbolStatustek 2, çok/all 4MemoryBest bid/ask price ve quantity

Dinamik market weight'leri

depth:

limitWeight
1–1005
101–50025
501–100050
1001–5000250

ticker-24h:

SeçimWeight
Tek symbol2
symbols 1–202
symbols 21–10040
symbols 101+ veya tüm semboller80

Account ve Trading REST

Public adMethod/pathSecurityZorunlu / önemli parametrelerWeight / order etkisiData sourceGüvenlik ve response notu
accountGET /api/v3/accountUSER_DATAtimestamp; opsiyonel omitZeroBalances, recvWindow20Memory → DatabaseBalance ve commission alanları decimal
my-tradesGET /api/v3/myTradesUSER_DATAsymbol, timestamp; opsiyonel orderId, startTime, endTime, fromId, limit, recvWindoworderId ile 5, aksi 20Memory → DatabasestartTimeendTime en fazla 24 saat
test-orderPOST /api/v3/order/testTRADENew order params + timestamp; opsiyonel computeCommissionRates1 veya commission hesabıyla 20; order count 0MemoryValidate eder, matching engine'e göndermez
new-orderPOST /api/v3/orderTRADEsymbol, side, type, timestamp; LIMIT: timeInForce,quantity,price; MARKET: quantity veya quoteOrderQtybaşarılı/başarısız 0/1; unfilled order count 1Matching EngineBenzersiz newClientOrderId; timeout/5xx unknown execution
query-orderGET /api/v3/orderUSER_DATAsymbol, timestamp, ayrıca orderId veya origClientOrderId4Memory → Databaseİki ID varsa önce orderId bulunur, client ID eşleşmesi kontrol edilir
cancel-orderDELETE /api/v3/orderTRADEsymbol, timestamp, ayrıca orderId veya origClientOrderId; opsiyonel cancelRestrictions, newClientOrderIdbaşarılı/başarısız 0/1Matching EngineEn hızlı yol yalnız orderId; timeout/5xx reconciliation ister
open-ordersGET /api/v3/openOrdersUSER_DATAtimestamp; opsiyonel symbol, recvWindowsymbol ile 6, all 80Memory → DatabaseParamsız çağrı pahalıdır

V1 order enum sınırı BUY|SELL ve MARKET|LIMIT'tir. Binance endpoint'i daha fazla order tipi desteklese de public connector sözleşmesi bunları kabul etmez.

REST Ortak Hataları

Code/statusAnlamConnector sonucu
-1001disconnectedtransport/API error; trading ise execution kanıtına göre unknown olabilir
-1003, HTTP 429/418rate limit / banretry metadata ile rate-limit error
-1006, -1007unexpected response / timeouttrading mutation için unknown-execution
-1013invalid message/filtervalidation/API rejection
-1015too many ordersorder rate-limit error
-1021invalid timestampclock error
-1022invalid signatureauth/encoding error
HTTP 5xxserver state unknowntrading mutation için unknown-execution

Resmî code kataloğu: Spot Errors.

Market WebSocket Streams

Kaynak: WebSocket Streams.

Public adStreamHızPayload / not
all-mini-tickers!miniTicker@arr1000 msSon intervalde değişen semboller; full snapshot değildir
symbol-ticker<symbol>@ticker1000 msTek sembol 24 saat rolling full ticker
book-ticker-stream<symbol>@bookTickerreal-timeBest bid/ask update
partial-depth<symbol>@depth5|10|201000 ms veya @100msTop N snapshot update; V1 full local order book kurmaz
lifecycleserverShutdown eventserver-drivenReconnect ve subscription restore

!ticker@arr kaldırılmıştır ve endpoint registry'ye eklenmeyecektir.

User Data Stream WebSocket API

Kaynaklar: WebSocket API ve User Data Stream.

Method/eventSecurityWeightV1 kullanımı
userDataStream.subscribe.signatureUSER_STREAM, signed2Birincil HMAC/Ed25519 subscription
userDataStream.unsubscribeConnection/session2Tek subscriptionId veya tüm subscriptions
session.subscriptionsConnection/session2Restore/diagnostic doğrulaması
session.logon + userDataStream.subscribeyalnız Ed25519 session2 + 2İkincil yol; V1 HMAC varsayılanı için zorunlu değil
executionReporteventOrder lifecycle ve reconciliation
outboundAccountPositioneventDeğişen 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