Get_quote Function usage

Hi @virender_singh

use below code

quote_data = tsl.get_quote(names = ['NIFTY 26 DEC 23950 CALL'])

chart      = tsl.get_historical_data(tradingsymbol = 'NIFTY 26 DEC 23950 CALL',exchange = 'NFO',timeframe="5")
chart      = chart.set_index(chart['timestamp'])

todays_chart = chart['2024-12-24 09:15:00+05:30':]



day_high = quote_data['NIFTY 26 DEC 23950 CALL']['ohlc']['high']
day_low  = quote_data['NIFTY 26 DEC 23950 CALL']['ohlc']['low']
volume_of_a_day_till_time  = todays_chart['volume'].sum()


Also, this was a good question,

Also, do post all your queries on this thread: Learn Algo Trading with Python | Codes | Youtube Series

This helps me keep track of questions and ensures other traders benefit as well, as they might be facing similar issues.