Onyx WebSocket API. Messages sent and received via WebSocket described in this documentation are encoded in JSON format. There is also a protobuf alternative (not documented here).
Accepts the following message:
{
"id": "string",
"client_timestamp": "string",
"received_timestamp": "string",
"method": "auth",
"token": "string"
}
Accepts the following message:
{
"id": "string",
"client_timestamp": "string",
"received_timestamp": "string",
"method": "subscribe",
"channel": {
"unspecified": {}
}
}
Accepts the following message:
{
"id": "string",
"client_timestamp": "string",
"received_timestamp": "string",
"method": "unsubscribe",
"channel": {
"unspecified": {}
}
}
Accepts the following message:
{
"id": "string",
"client_timestamp": "string",
"received_timestamp": "string",
"method": "order",
"client_order_id": "string",
"account_id": "string",
"symbol": {},
"amount": "string",
"price": "string",
"side": "unspecified",
"order_type": "unspecified",
"exchange": "unspecified"
}