code is
CE_symbol_name, PE_symbol_name, CE_ITM_price, PE_ITM_price = tsl.ITM_Strike_Selection(Underlying=‘SENSEX’, Expiry=0, ITM_count=1)
sensex_data_ce = tsl.get_historical_data(tradingsymbol=‘CE_symbol_name’, exchange=‘BFO’, timeframe=“1”)
print(sensex_data_ce)
cmd outup is
C:\Users\seans\OneDrive\Desktop\advance algoseries\strategies _deploy>py testing_for_otm.py
Codebase Version 3
-----Logged into Dhan-----
reading existing file all_instrument 2025-09-03.csv
Got the instrument file
Exception in Getting OHLC data as Check the Tradingsymbol or Exchange
None
–Return-