Order Updates
CHANNELwss://wss.prime.kraken.com/ws/v1
orderAuthentication Required
Request stream of Order updates. An Order update having a data field containing an array that has a similar structure to ExecutionReport.
Subscribe Request
- Subscribe Schema
- Example
Request ID - will be echoed back in the response structure.
subscribe
Request type.
Array containing the Order stream configuration.
Order
Subscription name.
If provided, the subscription will return orders that were submitted after this time. An ISO-8601 UTC string of the form 2019-02-13T05:17:32.000000Z.
If provided, the subscription will return orders that were submitted before this time.
If provided, Symbol of the security to get the orders for.
If provided, comma-separated Statuses of orders to include e.g. New,Filled.
If provided, filter by OrderID.
If provided, filter by RFQID.
{
"reqid": 7,
"type": "subscribe",
"streams": [
{
"name": "Order",
"StartDate": "2021-09-14T00:00:00.000000Z"
}
]
}
Response
- Response Schema
- Example
A number that relates this response to a request.
The type of message sent.
An ISO-8601 UTC string of the form 2019-02-13T05:17:32.000000Z
.
If this is initial data for a request, the initial flag will be set.
The sequence number for this response per request.
"Update" or "Remove" - tells the client if the given entity should be removed or added/updated.
Array of Order data with a similar structure to ExecutionReport.
Timestamp of the message.
Symbol of the order security.
Server assigned Order ID, will be a UUID.
Client assigned Order ID for the last request.
"Buy" or "Sell".
Describes the specific execution.
Identifies current status of order.
Order quantity.
Order type.
Currency of Quantity.
The customer user associated with this order.
{
"reqid": 7,
"type": "Order",
"ts": "2021-09-14T22:26:44.518538Z",
"initial": false,
"seqNum": 3,
"data": [
{
"Timestamp": "2021-09-14T22:26:44.505519Z",
"Symbol": "BTC-USD",
"OrderID": "b35b1c3b-a304-4224-919f-9db1319de188",
"ClOrdID": "d7635e40-15aa-11ec-b0a2-2554a9e1e7a4",
"SubmitTime": "2021-09-14T22:26:44.457050Z",
"ExecID": "c73fcf77-aaa1-46e7-9260-f625d6416646",
"Side": "Buy",
"ExecType": "New",
"OrdStatus": "New",
"OrderQty": "0.10000000",
"OrdType": "Market",
"Currency": "BTC",
"LeavesQty": "0.10000000",
"CumQty": "0",
"AvgPx": "0",
"TimeInForce": "FillOrKill",
"LastPx": "0",
"LastQty": "0",
"LastAmt": "0",
"LastFee": "0",
"CumAmt": "0",
"DecisionStatus": "Active",
"AmountCurrency": "USD",
"CustomerUser": "tom@company.com"
}
]
}