Message Format
WebSocket API message format
Messages received from the WebSocket API will be JSON objects with the following similar format:
Property | Type | Description |
---|---|---|
| int | The sequence number that the message was sent in |
| string | The corresponding WebSocket feed that the message was sent to |
| int | The UNIX timestamp (in nanoseconds) |
| JSON | The payload parameter will be a JSON string that contains then data |
Please note that the sequence
number sent by the WebSocket is not guaranteed to be in ascending order. If you detect any gaps or incorrect ordering you should reconnect.
Example Message
Last updated