SUB wss://test-api.synquote.com/ws
Receive notifications about order fills.
SUBSCRIBE
HEADER PARAMS
| msg_type string required Message type: add_subscriptions
|
| id number required The ID of the request. This is returned in the response header. |
| version integer required Version number: 1
|
BODY PARAMS
channel array of strings requiredtrading.fills.{account_id}.{instrument_id}Wildcards are supported, e.g. trading.fills.{account_id}.* can be used to receive notifications about all instruments.
|
Example
[
{
"msg_type":"add_subscriptions",
"id": 1002,
"version": 1
},
{
"channels": ["trading.fills.0x9f58498b98348b9bfbe53f0e18aa818a4be0ae49.ETH-PERPETUAL"]
}
]NOTIFICATION
order
object
| ||||||||||||||||||
updates
array of objects
|
Example
[
{
"msg_type":"trading.fills.0x9f58498b98348b9bfbe53f0e18aa818a4be0ae49.ETH-PERPETUAL",
"id": 4456,
"version": 1
},
{
"order": {
"account_id": "0x9f58498b98348b9bfbe53f0e18aa818a4be0ae49",
"transaction_ts": "1714629115912737987",
"client_order_id": "9306712610120155944",
"execution_type": "allow_cross",
"expiration": "1723269115",
"initial_size": "10",
"instrument_id": "ETH-PERPETUAL",
"limit_price": "0",
"nonce": "1714629115448",
"order_id": "9306712610120155944",
"order_type": "market",
"remaining_size": "0",
"side": "sell",
"signature": "0x89bdc6fcdd6434ebaa84a4f6f9f5913d3a3255ab2a53d3b9bdff2302fb3a3c6b1707256b364018d098c9b4d28d6799f8e322bbcc35f9d0e70f1310ec4d5497a01b",
"time_in_force": "fok",
"reduce_only": false,
"prev_order_type": "market"
},
"updates": [
{
"event_type": "fill",
"transaction_ts": "1714629115914498187",
"fill_price": "2915.1",
"fill_size": "10",
"fill_total_fee": "1.25",
"is_maker": false,
"is_liquidation": false,
"trade_pnl": "20.01",
"market_seqno": 123457,
"trade_id": "11416748077714502636"
}
]
}
]