Skip to main content
POST
Send orders heartbeat
Un mecanismo de seguridad: envía un heartbeat con un timeout (en segundos). Si el siguiente heartbeat no se recibe en timeout segundos, se cancelan todas tus órdenes abiertas. Usa este endpoint en cualquier cliente que coloque órdenes en espera: si tu proceso se cae o pierde conectividad, el heartbeat asegura que las órdenes obsoletas se retiren en lugar de quedarse en el libro.

Solicitud

POST /user/ordersHeartbeat
integer
requerido
Timeout de cancelación, en segundos. Debe ser mayor que 5.

Respuesta

La respuesta se reenvía desde el servicio de órdenes:

Errores

Autorizaciones

Authorization
string
header
requerido

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

Cuerpo

application/json
timeout
integer
requerido

Cancel-after timeout, in seconds.

Rango requerido: x >= 6

Respuesta

Heartbeat acknowledged. The response shape is forwarded from the orders service.