Suppose i have placed a order at 15:00:02:01, its current status is open Can i modify that order at 15:00:02:02 i.e can we modify orders in milliseconds ? if no, what is the minimum time we must before we can modify orders
You can place an order and fetch orderbook, once it shows up on orderbook you can modify order. Please note that one can only make 25 modifications for an order. Post that you will have to cancel and place order again or use GTT.
Hi Sujith, Thanks for the reply.I am using websocket.
I had placed order, instead of fetching the order-book i an listening on on_order_update. If i received a message on on_order_update with Status as open , can i modify the order? If yes suppose the above events happened in 10 milli second, can i place modify request in 10 millisecond? I am getting error in case of millisecond . Error is order id not present even after order is placed. If i am changing the time difference from millisecond to 1 second i am not getting the error.
Hi Sujith, Please ignore my above message Below is the scenario. i am modifying an open order which is at bid 1. Before request is send for modifying order it is getting filled so getting error kiteconnect.exceptions.OrderException: The order for ID (1877600770887540736) does not exist. Can we handle this
In kite.order_history('1877600770887540736') i can see my order is complete but i didn't received it on on_order_update , so i sent the modify order and gets error. I dont want to sent extra api hits so i am using on_order_update, which one to use can you please recommend
Kite Connect will not send order updates for placing an order. You will only receive order update if there is a partial fill or a status change of the order like TRIGGER_PENIDING to OPEN, OPEN to COMPLETE, etc.
Please note that one can only make 25 modifications for an order. Post that you will have to cancel and place order again or use GTT.
Thanks for the reply.I am using websocket.
I had placed order, instead of fetching the order-book i an listening on on_order_update. If i received a message on on_order_update with Status as open , can i modify the order?
If yes
suppose the above events happened in 10 milli second, can i place modify request in 10 millisecond?
I am getting error in case of millisecond . Error is order id not present even after order is placed.
If i am changing the time difference from millisecond to 1 second i am not getting the error.
Please ignore my above message
Below is the scenario.
i am modifying an open order which is at bid 1. Before request is send for modifying order it is getting filled so getting error
kiteconnect.exceptions.OrderException: The order for ID (1877600770887540736) does not exist.
Can we handle this
Thanks
kite.order_history('1877600770887540736') , are different from the orders that in on_order_update.
in order_history we have status as
[('OPEN PENDING', datetime.datetime(2025, 1, 10, 11, 48, 2)),
('OPEN', datetime.datetime(2025, 1, 10, 11, 48, 2)),
('MODIFY PENDING', datetime.datetime(2025, 1, 10, 11, 48, 4)),
('OPEN', datetime.datetime(2025, 1, 10, 11, 48, 4)),
('MODIFY PENDING', datetime.datetime(2025, 1, 10, 11, 48, 5)),
('OPEN', datetime.datetime(2025, 1, 10, 11, 48, 5)),
('MODIFY PENDING', datetime.datetime(2025, 1, 10, 11, 48, 5)),
('OPEN', datetime.datetime(2025, 1, 10, 11, 48, 6)),
('COMPLETE', datetime.datetime(2025, 1, 10, 11, 48, 6))]
While in order_update we only have status as "OPEN"
which order messages are not sent in order_update ?
I dont want to sent extra api hits so i am using on_order_update,
which one to use can you please recommend