Saltar al contenido principal

Orders API Reference

12 endpoints for the complete order lifecycle: place, cancel, mark paid, release coin, and history. Two endpoints use adaptive auth patterns and one uses a three-fallback chain for environment compatibility.

EP-13: Adaptive Auth Pattern

getUserOrderDetail attempts authentication in two stages to minimise signature overhead:

  1. Attempt 1 — unsigned: POST with X-MBX-APIKEY header only (no HMAC)
  2. On 401 / 403: retry with full HMAC-SHA256 signature (after time sync if -1021 / -1022)

EP-16: Three-Fallback Chain

listUserOrderHistory uses a three-stage fallback because Binance behaves differently across environments and API versions:

1.GET with startTimestamp / endTimestamp
2.GET with startTime / endTime (alias param names)
3.POST with same params (some environments reject GET for this endpoint)

Naming: adsNo (not advNo) in EP-11 and EP-18

Two order endpoints use adsNo to reference an ad, while the Ads controller uses advNo. The inconsistency is from Binance — using the wrong field name silently returns an error.

  • checkIfCanPlaceOrder (EP-11) → uses adsNo
  • placeOrder (EP-18) → uses adsNo
  • All Ads controller endpoints → use advNo / advNos

Endpoints

HMAC-SHA256From PDF
HMAC-SHA256From PDF
HMAC-SHA256From PDF
HMAC-SHA256From PDF
AdaptiveAutoP2P Verified
HMAC-SHA256From PDF
HMAC-SHA256AutoP2P Verified
HMAC-SHA256AutoP2P Verified
HMAC-SHA256From PDF
HMAC-SHA256From PDF
HMAC-SHA256From PDF
HMAC-SHA256From PDF
HMAC-SHA256From PDF

Related

Error Codes Reference·Rate Limiting Guide·Getting Started (Auth)
← AdsMerchant →