TradingView API
Lists asset open/close/high/low prices for different resolutions and timestamps range
Required query parameters:
symbol - asset code/id (ex: BTC, ETH)
resolution - 1M (as 30 days), 1W (as 7 days), 3D (as 3 days), 1D (as 1 day), 480 (as 8 hours), 240 (as 4 hours), 120 (as 2 hours), 60 (as 1 hour), 30 (as 30 mins), 15 (as 15 mins), 5 (as 5 mins), 1 (as 1m)
from_timestamp - timestamp value of from datetime
to_timestamp - timestamp value of to datetime
Example: /api/public/tradingview/chart/?symbol=BTC&resolution=1D&from_timestamp=1582703568&to_timestamp=1614326028
GET /api/public/tradingview/chart/?format=api
{
"s": "no_data"
}