Here is code snippet in Python for getting 1minute data for 1 day.
get_quote_data(symbol='SBIN.NS', data_range='1d', data_interval='1m'):
res = requests.get('https://query1.finance.yahoo.com/v8/finance/chart/{symbol}?range={data_range}&interval={data_interval}'.format(**locals()))
data = res.json()
get_quote_data(symbol='SBIN.NS', data_range='1d', data_interval='1m'):
res = requests.get('https://query1.finance.yahoo.com/v8/finance/chart/{symbol}?range={data_range}&interval={data_interval}'.format(**locals()))
data = res.json()
https://query1.finance.yahoo.com/v8/finance/chart/{SBIN.NS}?range={1d}&interval={1M}'.f
ormat(**locals()))data = res.json()
something wrong. getting this message - json is not supported
{"chart":{"result":null,"error":{"code":"Bad Request","description":"Invalid input - interval={1M}'.format(**locals()))data = res.json() is not supported. Valid intervals: [1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo]"}}}
can you please post the sample url exactly as needed to get json in browser