PUB wss://test-api.synquote.com/ws
Returns a list of open orders for an account.
REQUEST
HEADER PARAMS
| msg_type string required Message type: get_orders
|
| id number required The ID of the request. This is returned in the response header. |
| version integer required Version number: 1
|
BODY PARAMS
| account_id string required The account for which to get open orders. |
| instrument_id string The instrument for which to receive open orders. |
| order_id string The order ID for which to receive open orders. |
| client_order_id string The client order ID for which to receive open orders. |
Example
[
{
"msg_type":"get_orders",
"id": 1002,
"version": 1
},
{
"account_id": "0x9f58498b98348b9BFbE53F0E18AA818a4Be0aE49",
"instrument_id": "ETH-PERPETUAL"
}
]RESPONSE
array of objects
|
Example
[
{
"msg_type":"get_orders_response",
"id": 1002,
"version": 1
},
[
{
"account_id": "0x9f58498b98348b9bfbe53f0e18aa818a4be0ae49",
"transaction_ts": "1714612305576158821",
"client_order_id": "11145708517292646282",
"execution_type": "allow_cross",
"expiration": "1723252305",
"initial_size": "10",
"instrument_id": "ETH-PERPETUAL",
"limit_price": "2920",
"nonce": "1714612305478",
"order_id": "11145708517292646282",
"order_type": "limit",
"remaining_size": "10",
"side": "buy",
"signature": "0xba06176617f104fc21028b897d0455a4cb637510b6048dc4c0bbe1cd72a675b8374fe56b2c3f0ae3b2d28c809be6d466b57bb8c273e44d4c61a67c18112aefc61b",
"time_in_force": "gtc",
"reduce_only": false,
"prev_order_type": "limit"
}
]
]