Ticker 24 hour subscription
REQUEST wss://ws.bitvavo.com/v2 ticker24h
Subscribes to ticker24h events. Every second, it returns an object with the best bids and asks in the last 24 hours.
Request
- Schema
- Example (body)
Body
- Array [
- ]
Set to subscribe to start or to unsubscribe to stop the subscription.
Possible values: [subscribe, unsubscribe]
channels object[]required
The events you want to subscribe to.
The channel to which you want to subscribe.
ticker24hThe markets for which you want stream the data.
["BTC-EUR"]{
"action": "subscribe",
"channels": [
{
"name": "ticker24h",
"markets": [
"BTC-EUR"
]
}
]
}
Response
- Ticker24h confirmation
- Ticker24h event
- Schema
- Example (body)
Schema
The returned event.
subscribedsubscriptions object
The object with all currently active subscriptions.
All markets for which to stream 24h ticker data.
["BTC-EUR"]{
"event": "subscribed",
"subscriptions": {
"ticker24h": [
"BTC-EUR"
]
}
}
- Schema
- Example (body)
Schema
The returned event.
ticker24hdata object
The object with the ticker data for the last 24 hours.
The market to which you subscribed.
BTC-EURThe Unix timestamp in milliseconds of when the ticker is created.
1566564813057The open price in the last 24 hours.
9072.9The highest offered price in the last 24 hours.
9263.6The lowest asked price in the last 24 hours.
9062.8The latest trade price in the last 24 hours.
9231.8The highest offered price at the moment.
9225The size of the highest offer.
1.14732373The lowest asked price at the moment.
9225.1The size of the lowest ask.
0.65371786The total traded volume in base currency in the last 24 hours.
85.70530211The total traded volume in quote currency in the last 24 hours.
785714.14{
"event": "ticker24h",
"data": {
"market": "BTC-EUR",
"timestamp": 1566564813057,
"open": "9072.9",
"high": "9263.6",
"low": "9062.8",
"last": "9231.8",
"bid": "9225",
"bidSize": "1.14732373",
"ask": "9225.1",
"askSize": "0.65371786",
"volume": "85.70530211",
"volumeQuote": "785714.14"
}
}