The heartbeat keeps your session alive. 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.
requestTimeout (in seconds) — if the server does not receive another heartbeat before that timeout elapses, all of your open orders are automatically cancelled.
You typically send heartbeats on a recurring interval (e.g. every 5s with a 10s timeout) for the lifetime of your connection.
Request
A client-generated identifier; echoed back on the response. If omitted, the server generates one.
Number of seconds the server should wait for the next heartbeat before cancelling all of your open orders. Must be greater than
0.Response
The server replies with aheartbeatAck containing the server’s clock and the active timeout.
Always
heartbeatAck.Current server time as RFC 3339 with nanosecond precision.
Echoes the
requestTimeout you sent.Errors
IfrequestTimeout is missing or <= 0, the server returns: