Market Data Snapshot
CHANNELwss://wss.prime.kraken.com/ws/v1
market-data-snapshot
Request stream of MarketDataSnapshot messages. To stream security pricing with real-time bid/offer levels.
Subscribe Request
- Subscribe Schema
- Example
Request ID - will be echoed back in the response structure.
subscribe
Request type.
Array containing the MarketDataSnapshot stream configuration.
MarketDataSnapshot
Subscription name.
Security to request.
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
- 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 MarketDataSnapshot data.
Timestamp of update in ISO-8601 UTC format.
Security for update.
Online
, Offline
] Status of update.
Full list of Bids.
Limit price of the level.
Size on this level.
Full list of Offers.
Limit price of the level.
Size on this 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"
}
]
}
]
}