@Tradehull_Imran Sir,
exception got in ce_pe_option_df ‘<’ not supported between instances of ‘int’ and ‘str’
while running the code
atm_ce_name, atm_pe_name, strike = tsl.ATM_Strike_Selection(nifty_FnO_stocks, “30-01-2025”)
1 Like
Hi @Arun_Rawat
use below code
CE_symbol_name, PE_symbol_name, strike_price = tsl.ATM_Strike_Selection(Underlying='ACC', Expiry=0)
- Expiry (int): The expiry to select.
- 0 - Current week/month (depending on expiry type)
- 1 - Next week/month (depending on expiry type)
- and so on for subsequent weeks/months.
2 Likes
Also, do post all 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.
1 Like
Ok, Sir I’ll check and update you.
Regards,
Arun
this works. Thanks Imran
1 Like