Send orders heartbeat
User
Orders heartbeat
Auto-cancel your orders if your client disconnects
POST
Send orders heartbeat
A safety mechanism: send a heartbeat with aDocumentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
timeout (in seconds). If the next heartbeat is not received within timeout seconds, all of your open orders are cancelled.
Use this endpoint in any client that places resting orders — if your process crashes or loses connectivity, the heartbeat ensures stale orders get pulled instead of staying on the book.
Request
POST /user/ordersHeartbeat
Cancel-after timeout, in seconds. Must be greater than
5.Response
The response is forwarded from the orders service:Errors
| Status | Meaning |
|---|---|
400 | timeout missing, not a number, or <= 5. |
503 | Orders service unreachable. |
Authorizations
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.
Body
application/json
Cancel-after timeout, in seconds.
Required range:
x >= 6Response
Heartbeat acknowledged. The response shape is forwarded from the orders service.