{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"chart.trades.BTC-PERPETUAL.(resolution)"
]
}
}{
"data": {
"volume": 0.05219351,
"tick": 1573645080000,
"open": 8869.79,
"low": 8788.25,
"high": 8870.31,
"cost": 460,
"close": 8791.25
}
}chart.trades.(instrument_name).(resolution)
Publicly available market data used to generate a TradingView trade candle chart.
During a single resolution period, many events can be sent, each with updated values for the recent period.
Notice: When there is no trade during the requested resolution period (e.g. 1 minute), a filling sample is generated which uses data from the last available trade candle (open and close values).
Note: For spot instruments routed to Coinbase Exchange, this channel is not supported. Use Get product candles instead.
๐ Related Article: Spot Trading: Deribit and Coinbase-Routed Instruments
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"chart.trades.BTC-PERPETUAL.(resolution)"
]
}
}{
"data": {
"volume": 0.05219351,
"tick": 1573645080000,
"open": 8869.79,
"low": 8788.25,
"high": 8870.31,
"cost": 460,
"close": 8791.25
}
}The name of the instrument
Chart bars resolution given in full minutes or keyword 1D (only some specific resolutions are supported)
Allowed values: 1, 3, 5, 10, 15, ... (total 12 values)
1, 3, 5, 10, 15, 30, 60, 120, 180, 360, 720, 1DClient sends subscription request to subscribe to notification channel. Please refer to Notification page for more information.
Server sends subscription notification data
The timestamp (milliseconds since the Unix epoch)
Volume data for the candle
Cost data for the candle
The open price for the candle'
The close price for the candle
The highest price level for the candle
The lowest price level for the candle
Related topics
NotificationsSpot Trading: Deribit and Coinbase-Routed InstrumentsOptions Data Collectiontrades.(instrument_name).(interval) user.trades.(instrument_name).(interval)Was this page helpful?