How to write code to place order for weekly and Monthly expiry through one single python script

nirav_b
I am trying to place an order from Algo (Python Script) and I see its taking only monthly expiry in order placement (oct 2025) ..How to write a code which can place order for 07th October 2025 as well as Oct 2025 (monthly expiry)
  • sujith
    You can find the right tradingsymbol from the instruments master and place the order.
  • nirav_b
    nirav_b edited 4:39AM
    Thank You...I downloaded CSV file and observed following....Rule
    Day Calculation Symbol Format Example
    Weekly Tuesday Nearest available Tuesday (that is not the last Tuesday of the month). NIFTY + YY + M (1st letter) + DD NIFTY25O07
    Monthly Last Tuesday The last Tuesday of the month. NIFTY + YY + MMM (3 letters) NIFTY25OCT
Sign In or Register to comment.