tsl = Tradehull(client_code,token_id) # tradehull_support_library
#previous_hist_data = tsl.get_historical_data(‘HDFCBANK’,‘NSE’,12)
#intraday_hist_data = tsl.get_intraday_data(‘HDFCBANK’,‘NSE’,1)
#print(“intraday_hist_data”, previous_hist_data)
#ce_name, pe_name, strike = tsl.ATM_Strike_Selection(‘NIFTY’,‘31-10-2024’)
otm_ce_name, otm_pe_name, ce_OTM_strike, pe_OTM_strike = tsl.OTM_Strike_Selection(‘HDFCBANK’,‘31-10-2024’,3)
print(“OTM STRICK PRICE”, pe_OTM_strike)
print(“ce_name”, otm_ce_name)
print(“pe_name”, otm_pe_name)
ce_name, pe_name, ce_ITM_strike, pe_ITM_strike = tsl.ITM_Strike_Selection(‘HDFCBANK’,‘31-10-2024’, 4)
print(“ITM STRICK PRICE”, pe_ITM_strike)
print(“pe_name”, pe_name)
print(“ce_name”, ce_name)