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.
Public channel. Connect to: wss://wss.prime.kraken.com/ws/v1
Request stream of MarketDataSnapshot messages. To stream security pricing with real-time bid/offer levels.
Subscribe Request
Request ID - will be echoed back in the response structure.
Request type. Value: subscribe
Array containing the MarketDataSnapshot stream configuration.
Subscription name. Value: MarketDataSnapshot
Security to request (e.g. BTC-USD).
Optional throttle duration for updates, defaults to configured MinMarketDataThrottle. Valid time units are “ns”, “us”, “ms”, “s”.
Price increment for levels to enable price bucketing.
Maximum number of bid/offer levels to stream prices for.
A list of sizes to return price levels for; defaults to configured Security SizeBuckets.
{
"reqid": 5,
"type": "subscribe",
"streams": [
{
"name": "MarketDataSnapshot",
"Symbol": "BTC-USD"
}
]
}
Response
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 MarketDataSnapshot data.
Timestamp of update in ISO-8601 UTC format.
Status of update. Possible values: Online, Offline
Full list of Bids.
Limit price of the level.
Full list of Offers.
Limit price of the level.
{
"reqid": 5,
"type": "MarketDataSnapshot",
"ts": "2021-09-14T22:20:49.862930Z",
"initial": true,
"seqNum": 1,
"data": [
{
"Timestamp": "2021-09-14T22:20:49.860957Z",
"Symbol": "BTC-USD",
"Status": "Online",
"Bids": [
{
"Price": "46817.27965000",
"Size": "1.00000000"
},
{
"Price": "46816.08025000",
"Size": "2.00000000"
}
],
"Offers": [
{
"Price": "46868.59755873",
"Size": "1.00000000"
},
{
"Price": "46870.33345500",
"Size": "2.00000000"
}
]
}
]
}