Skip to main content
The heartbeat keeps your session alive. Send a heartbeat with a 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

string
A client-generated identifier; echoed back on the response. If omitted, the server generates one.
number
required
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 a heartbeatAck containing the server’s clock and the active timeout.
string
Always heartbeatAck.
string
Current server time as RFC 3339 with nanosecond precision.
number
Echoes the requestTimeout you sent.

Errors

If requestTimeout is missing or <= 0, the server returns: