Method Name
public/get_tradingview_chart_data
public/get_tradingview_chart_dataGet tradingview chart data (trades OHLCV candles from ClickHouse) by instrument name
DB: clickhouse read replica
Parameters
| end_timestampintegerrequired End timestamp in UTC seconds |
| instrument_namestringrequired Instrument name |
| periodstringrequired Period in seconds enum 6030090018003600144002880086400604800 |
| start_timestampintegerrequired Start timestamp in UTC seconds |
Response
| idstring or integerrequired |
| resultarray of objectsrequired |
| result[].close_pricestringrequired Close price |
| result[].high_pricestringrequired High price |
| result[].low_pricestringrequired Low price |
| result[].open_pricestringrequired Open price |
| result[].timestampintegerrequired Timestamp of the bucket start |
| result[].timestamp_bucketintegerrequired Timestamp bucket; this value is regularly spaced out with period seconds between data points |
| result[].volume_contractsstringrequired Volume in contracts |
| result[].volume_usdstringrequired Volume in USD (notional) |
Example
{request_example_shell}{request_example_javascript}{request_example_python}The above command returns JSON structured like this:
{response_example_json}