Error in fetching Order Status

chethanthewarrior
Today around 3 pm when trying to exit orders, multiple errors were observed which broke the algo flow.

1. 15:01:00 SELL NIFTY MAY 18750 CE NFO MIS 1800 / 1800 0.10 COMPLETE
#230525003936592
15:01:00 COMPLETE 15:01:00 15:01:00 1800 1800 0.1 0
15:01:00 OPEN 15:01:00 15:01:00 1800 250 0.1 0
15:01:00 OPEN 15:01:00 15:01:00 1800 0 0 0

But while fetching the order info(as observed in logs at our end)
order_id:230525003936592
Time when order_info, is called: 2023-05-25 15:01:01.123193
Couldn't find that `order_id`.
Couldn't find that `order_id`.
Couldn't find that `order_id`.
Couldn't find that `order_id`.
.
.
.

Time when order_info, is returned: 2023-05-25 15:01:14.935804
Time taken:
0:00:13.812611

It took 14s to update the order_info

2. 15:01:15 SELL NIFTY MAY 18750 CE NFO MIS 1800 / 1800 0.05
Again the same pattern was observed as 1.

3. 15:01:32 SELL NIFTY MAY 18750 CE NFO MIS 1800 / 1800 0.05 COMPLETE
Again the same pattern was observed as 1.

4. 15:01:50 SELL NIFTY MAY 18750 CE NFO MIS 300 / 300 0.05 COMPLETE
#230525003958720
15:01:50 COMPLETE 15:01:50 15:01:50 300 300 0.05 0
15:01:50 OPEN 15:01:50 15:01:50 300 0 0 0
15:01:50 OPEN PENDING — — 300 0 0 0

But in logs,
order_id:230525003958720
Time when order_info, is called: 2023-05-25 15:01:50.380184
Couldn't find that `order_id`.
Couldn't find that `order_id`.
Couldn't find that `order_id`.
Couldn't find that `order_id`.
.
.
.
Time when order_info, is returned: 2023-05-25 15:02:04.626621
Time taken:
0:00:14.246437
Here also, the Execution status was not COMPLETE and hence had to retry to check the status.

Wait Timer in Sec:1
Time when order_info, is called: 2023-05-25 15:02:05.626801
Time when order_info, is returned: 2023-05-25 15:02:05.751714
Time taken:
0:00:00.124913
CHECKING FOR ORDER EXECUTION STATUS
.
.
.
Wait Timer in Sec:10
Time when order_info, is called: 2023-05-25 15:02:15.544266
Time when order_info, is returned: 2023-05-25 15:02:15.635438
Time taken:
0:00:00.091172

Finally, the retry timer also expired.

Can you please let us know why the correct status was not updated through API during this time?
  • sujith
    Can you private message the api_key? We will check and get back to you.
Sign In or Register to comment.