Skip to main content
{
    "method": "subscribe",
    "params": {
        "channel": "trade",
        "symbol": [
            "MATIC/USD"
        ],
        "snapshot": true
    }
}
{
    "channel": "trade",
    "type": "snapshot",
    "data": [
        {
            "symbol": "MATIC/USD",
            "side": "buy",
            "price": 0.5147,
            "qty": 6423.46326,
            "ord_type": "limit",
            "trade_id": 4665846,
            "timestamp": "2023-09-25T07:48:36.925533Z"
        },
        {
            "symbol": "MATIC/USD",
            "side": "buy",
            "price": 0.5147,
            "qty": 1136.19677815,
            "ord_type": "limit",
            "trade_id": 4665847,
            "timestamp": "2023-09-25T07:49:36.925603Z"
        }
    ]
}
{
    "method": "unsubscribe",
    "params": {
        "channel": "trade",
        "symbol": [
            "MATIC/USD"
        ],
        "snapshot": true
    }
}

Documentation Index

Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

WSSws.kraken.com/v2trade
The trade channel generates a trade event when orders are matched in the book. Multiple trades may be batched in a single message but that does not mean that these trades resulted from a single taker order. The feed accepts a list of symbols for subscription.

Subscribe

method
string
required
Value: subscribe
params
object
required
req_id
integer
Optional client originated request identifier sent as acknowledgment in the response.

Snapshot / Update

The snapshot and update responses share the same schema. An update message is streamed on a trade event. The snapshot reflects the most recent 50 trades.
channel
string
Value: trade
type
string
One of: snapshot, update
data
object[]
A list of trade events.

Unsubscribe

method
string
required
Value: unsubscribe
params
object
required
req_id
integer
Optional client originated request identifier sent as acknowledgment in the response.