Trade
CHANNELwss://wss.prime.kraken.com/ws/v1
tradeAuthentication Required
Request stream of Trade messages. Upon subscription, the server will return all Trade for this client as long as the optional constraints are satisfied. Server will also send a Trade update when the order receives more fills or new fills arrive on a new order.
Subscribe Request
- Subscribe Schema
- Example
Request ID - will be echoed back in the response structure.
subscribe
Request type.
Array containing the Trade stream configuration.
Trade
Subscription name.
If provided, the subscription will return trades that were executed after this time. An ISO-8601 UTC string of the form 2019-02-13T05:17:32.000000Z.
If provided, the subscription will return trades that were executed before this time.
If provided, Symbol of the security to get the orders for.
If provided, filter by OrderID.
If provided, filter by RFQID.
{
"reqid": 8,
"type": "subscribe",
"streams": [
{
"name": "Trade",
"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 Trade data.
Timestamp of the message.
Server assigned Order ID, will be a UUID.
Server assigned Trade ID, will be a UUID.
Buy
, Sell
] Trade side.
Transaction time.
Describes the specific execution (e.g. Pending Cancel) while OrdStatus will always identify the current order status (e.g. Partially Filled).
Currency of Quantity.
Order limit price, required when OrdType=Limit.
Trade quantity.
Trade amount.
Trade fee.
Fee currency.
Pending
, Confirmed
, Canceled
] Status of the trade.
Server assigned QuoteID for RFQ Orders.
Currency of Amount.
Server assigned RFQID for RFQ Orders.
The customer user associated with this trade.
{
"reqid": 8,
"type": "Trade",
"ts": "2021-09-14T22:29:32.255949Z",
"initial": true,
"seqNum": 1,
"data": [
{
"Timestamp": "2021-09-14T22:23:11.989845Z",
"Symbol": "BTC-USD",
"OrderID": "1b6b882b-e2fc-4774-ad2d-9db4df536f29",
"TradeID": "a0ec46f2-6d0e-451a-a4f1-2a0be7d32d26",
"Side": "Buy",
"TransactTime": "2021-09-14T22:23:11.964531Z",
"ExecType": "Trade",
"Currency": "BTC",
"Price": "47085.090668824440",
"Quantity": "0.20000000",
"Amount": "9417.02",
"Fee": "0",
"CustomerUser": "tom@company.com",
"TradeStatus": "Confirmed",
"AggressorSide": "Buy",
"AmountCurrency": "USD",
"DealtCurrency": "BTC"
}
]
}