Candles subscription
REQUEST wss://ws.bitvavo.com/v2 candles
Subscribes to events that return data used to form candlestick charts.
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.
candlesThe markets for which you want to stream the data.
["BTC-EUR"]The time period for which to return the candlestick data.
Possible values: [1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d]
{
"action": "subscribe",
"channels": [
{
"name": "candles",
"markets": [
"BTC-EUR"
],
"interval": [
"1m"
]
}
]
}
Response
- Candles confirmation
- Candles event
- Schema
- Example (body)
Schema
The returned event.
subscribedsubscriptions object
The object with all currently active subscriptions.
candles object
The object with all current candles subscriptions.
The markets for which you want stream the data per interval.
["BTC-EUR"]{
"event": "subscribed",
"subscriptions": {
"candles": {
"1h": [
"BTC-EUR"
]
}
}
}
- Schema
- Example (body)
Schema
The returned event.
candlesThe markets for which you want stream the data.
BTC-EURThe time period for which to return the candlestick data.
1hAn array with the candlestick data for the specified time period. It contains a timestamp, open, high, low, close, and volume values in that order.
[["1538784000000","4999","5012","4999","5012","0.45"]]{
"event": "candles",
"market": "BTC-EUR",
"interval": "1h",
"candle": [
[
"1538784000000",
"4999",
"5012",
"4999",
"5012",
"0.45"
]
]
}