Saltar al contenido principal

Referencia de la API de Órdenes

12 endpoints para la gestión del ciclo de vida de órdenes — crear, cancelar, marcar como pagado, liberar activos e historial. Incluye autenticación adaptiva (EP-13) y cadena de tres fallbacks (EP-16).

Autenticación Adaptiva — EP-13

getUserOrderDetail intenta primero autenticación HMAC completa. Si Binance responde con -1022 (firma inválida) o -1021 (timestamp fuera de ventana), reintenta con solo el X-MBX-APIKEY header. Este comportamiento cubre endpoints que no exigen firma según el entorno de mercado.

adaptive = intenta HMAC → falla -1021/-1022 → reintenta con api-key

Cadena de Tres Fallbacks — EP-16

listUserOrderHistory implementa una cadena de fallback para manejar variaciones de firma en distintas versiones del endpoint:

  1. Intenta con parámetros en query string + HMAC
  2. Si falla, intenta con payload en body + HMAC
  3. Si falla, reintenta con solo header X-MBX-APIKEY

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
← AdsMerchant →