Continue Paged Stream
REQUESTwss://wss.prime.kraken.com/ws/v1
page
If you request a stream that is paged, the data on the stream will be delivered with a next
field populated. If given this field, request the next set of data with the below structure. Response continues as with the original stream.
Request
- Request Schema
- Example
reqid number required
The request ID to continue the page, must match the original request ID.
type string required
Value:
page
Request type for continuing the paged stream.
data array [ required]
Stream request data to continue.
name string required
Subscription name to continue the page.
after string required
Delivered next value from the paged stream payload.
{
"reqid": 1,
"type": "page",
"data": [
{
"name": "Security",
"after": "eyJUaW1lc3RhbXAiOiIyMDIxLTA5LTE0VDIyOjExOjQ3LjUxMjE2OFoifQ=="
}
]
}
Response
The response structure remains the same as the original subscription, with additional data continuing from where the previous page ended.
- Response Schema
- Example
Same structure as the original subscription response, with continuing data and potentially another next
field if more pages are available.
{
"reqid": 1,
"seqNum": 2,
"type": "Security",
"action": "Update",
"data": [
{
"Timestamp": "2021-09-14T22:11:47.512168Z",
"UpdateAction": "Update",
"SecurityID": 3,
"Symbol": "LTC-USD",
"MinPriceIncrement": "0.01",
"MinSizeIncrement": "0.00000001",
"MinAmtIncrement": "0.01",
"MinimumSize": "0.00000001",
"MaximumSize": "10000000",
"QuoteCurrency": "USD",
"BaseCurrency": "LTC"
}
],
"next": "eyJUaW1lc3RhbXAiOiIyMDIxLTA5LTE0VDIyOjExOjQ3LjUxMjE2OFoifQ==",
"ts": "2021-09-14T22:11:47.512168Z"
}