Orders placing Query

shikhar_seth
shikhar_seth edited February 2024 in General
I want to know response format while placing the order
I am using /order:variety as method 'POST'

I am only getting order_id but not status as "success" as mentioned in reference doc.
Want to know if order is pending state due to any reason, will in that we won't get "success".
How can I know my order is placed?
Also do we get order_id in case of rejection status also?
  • sujith
    A 200 status for the order_place means order is placed successfully. It doesn't guarantee execution. Order will go through various in house systems, vendor systems, exchange lease lines, and then exchange.
    Once you get order id, you can fetch orderbook and find order with id and check the filled_quantity and status of the order to know if it is partially filled and check status for completed, canceled, rejected, lapsed, open, trigger_pending.
  • prasadmchury
    Based on Testing Carried out with Real Orders & as documented in Kite Connect 3, noticed Status in each ROW of the order status returned by kite.order_history(order_id) show Status like 'OPEN PENDING', 'OPEN', 'CANCEL PENDING', 'CANCELLED', 'COMPLETE' etc. In the Kite Connect documents additional status 'PUT ORDER REQ RECEIVED', 'VALIDATION PENDING' & so on are also mentioned. For ensuring ORDER was 'COMPLETE', I am planning to check order_id>1 + Status in each row. Do I need to check these various status in particular Row of order status returned by kite.order_history(order_id) e.g. 'COMPLETE' in 3rd Row or ROW count can change depending on additional status encountered. Thanks for help & guidance.
  • Sravanthi_bh
    You may refer to this thread for a similar discussion.
  • prasadmchury
    Thanks for the quick response Sravanthi. I went to threads mentioned by you. However my question remains unanswered. As mentioned earlier, as per documentation I understand there are various stages before actual order gets executed & during you may or may not encounter these stages. But in order to make program robust, I am planning to consider all stages & in this regards want to understand if different row entry will be created for even min-RMS, RMS, OMS. For now I am able to see only 'OPEN PENDING', 'OPEN', 'CANCEL PENDING', 'CANCELLED', 'COMPLETE'. Once again thanks for your help.
  • prasadmchury
    As per today's experience from running 'kite.order_history(order_id)' for first order there were total 4 ROWS. 1st for Open Pending, 2nd for Open, 3rd for Open & 4th for COMPLETE. For next order I got only 3 rows similar to previous testing. 1st for Open Pending, 2nd for Open & 3rd for COMPLETE. I can design code to handle such situations, but need to know if that is really required & what else can be expected.
  • Sravanthi_bh
    1. We have verified this at our end. The order status includes VALIDATION PENDING and PUT ORDER REQ RECEIVED for any order. You can enable debug mode to cross-check these statuses.

    2. For a complete order, statuses such as COMPLETE, OPEN, OPEN PENDING, VALIDATION PENDING, and PUT ORDER REQ RECEIVED will be observed. If you modify or cancel the order, additional statuses like MODIFY PENDING and CANCEL PENDING will be included.

    For more information, please check out the similar discussion here.

Sign In or Register to comment.