Heartbeats

Clients will receive regular heartbeats once connected. Heartbeats will come every 3 seconds. If the last heartbeat received by a client was more than 10 seconds ago, the client should assume that there is either a network problem or they are lagging behind in processing messages. The client should suspend all markets which it is receiving from the feed until it receives another heartbeat message. Additionally, if no messages at all have been received in a 10 second period, the client should assume there is a network problem, disconnect from the feed and attempt to open a new connection.

Below is an example of a heartbeat message::

{
  "mode": "push",
  "publish_time": "2025-03-20 10:05:18.924114",
  "type": "heartbeat",
  "msg": {
    "timestamp": "2025-03-20 10:05:18.924114"
  }
}

Last updated

Was this helpful?