Market Data
Public

Retrieves publicly available market data formatted for generating TradingView-compatible candle charts. The data includes open, high, low, close (OHLC) prices and volume for specified time intervals.

Use the chart_resolution parameter to specify the candle interval (e.g., 1m, 5m, 1h, 1d). This method provides the standard format used by TradingView and other charting platforms.

Note: For spot instruments routed to Coinbase Exchange, this call is not supported. Use Get product candles instead.

📖 Related Article: Spot Trading: Deribit and Coinbase-Routed Instruments

Try in API console

get/public/get_tradingview_chart_data

Request

  • Base URL
    https://test.deribit.com/api/v2
  • URL
    https://test.deribit.com/api/v2/public/get_tradingview_chart_data
  • Auth
    none declared

Query parameters

instrument_namestring required

Unique instrument identifier

Example:BTC-PERPETUAL

Instrument name

start_timestampinteger required

The timestamp (milliseconds since the Unix epoch)

Example:1536569522277

The earliest timestamp to return result from (milliseconds since the UNIX epoch)

end_timestampinteger required

The timestamp (milliseconds since the Unix epoch)

Example:1536569522277

The most recent timestamp to return result from (milliseconds since the UNIX epoch)

resolution'1' | '3' | '5' | '10' | '15' | '30' | '60' | '120' | '180' | '360' | '720' | '1D' | 'D' required

Chart bars resolution in minutes, or 1D / D for daily bars.

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request

Example response

{
  "result": {
    "ticks": [
      1536569522277
    ]
  }
}

Changes

    • breaking

      removed the enum value 1.00 from the query request parameter resolution

    • breaking

      removed the enum value 10.00 from the query request parameter resolution

    • breaking

      removed the enum value 120.00 from the query request parameter resolution

    • breaking

      removed the enum value 15.00 from the query request parameter resolution

    • breaking

      removed the enum value 180.00 from the query request parameter resolution

    • breaking

      removed the enum value 3.00 from the query request parameter resolution

    • breaking

      removed the enum value 30.00 from the query request parameter resolution

    • breaking

      removed the enum value 360.00 from the query request parameter resolution

    • breaking

      removed the enum value 5.00 from the query request parameter resolution

    • breaking

      removed the enum value 60.00 from the query request parameter resolution

    • breaking

      removed the enum value 720.00 from the query request parameter resolution

    • info

      added the new enum value 1 to the query request parameter resolution

    • info

      added the new enum value 10 to the query request parameter resolution

    • info

      added the new enum value 120 to the query request parameter resolution

    • info

      added the new enum value 15 to the query request parameter resolution

    • info

      added the new enum value 180 to the query request parameter resolution

    • info

      added the new enum value 3 to the query request parameter resolution

    • info

      added the new enum value 30 to the query request parameter resolution

    • info

      added the new enum value 360 to the query request parameter resolution

    • info

      added the new enum value 5 to the query request parameter resolution

    • info

      added the new enum value 60 to the query request parameter resolution

    • info

      added the new enum value 720 to the query request parameter resolution

    • info

      added the new enum value D to the query request parameter resolution