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 October 2025
    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
  • sam_zerodha
    Weekly Tuesday Nearest available Tuesday (that is not the last Tuesday of the month). NIFTY + YY + M (1st letter) + DD NIFTY25O07
    How about those months for which first letter of the month is similar? Like for June and July or March and May etc.
  • sujith
    You may refer to this thread.
Sign In or Register to comment.