Place orders at 9.15am and cancel or exit them at 3.00pm

sharangdeo
Hey, I'm looking for a suggestion on how to place orders (through the code I'm writing in Python) exactly at 9.15am and want to exit the orders at 3.00pm. I want to control the timings of the orders/positions on the place-order() and exit-order() zerodha call.
  • sujith
    For placing an order it is straightforward, you can use this method.
    For exit, you will have to fetch positions > check net positions and find the net quantity. If the product type is CO then you need to exit cover orders from the order book by canceling. If it is an MIS/CNC/NRML then you can check net quantity and place market orders with the appropriate transaction type.
Sign In or Register to comment.