Skip to main content

Trade

CHANNEL

wss://ws.kraken.com

trade

Trade feed for a currency pair.

Subscription Request

MESSAGE BODY

event string required
Value: subscribe
pair array of strings required
Example: ["BTC/USD", "MATIC/GBP"]
The currency pairs for this request.
subscription object
name string required
Value: trade
reqid string
Optional client originated request identifier sent as acknowledgment in the response.

Subscription Snapshot and Update Response

MESSAGE BODY

array [
[0] channel_id integer deprecated
Deprecated Usage: Use 'channel_name' and 'pair'.
Channel identifier.
[1] trades array [
A list of trades.
[many] trade array [
[0] price string
Price.
[1] volume string
Volume.
[2] time string
Time, seconds since epoch.
[3] side string
Possible values: [buy, sell]
Taker side.
[4] order_type string
Possible values: [market, limit]
Taker order type.
[5] misc string
Miscellaneous.
]
]
[2] pair string
Example: "BTC/USD"
The symbol of the currency pair.
[3] channel_name string
Value: trade
The name of the channel.
]