I placed the intraday IOC Limit order on BSE. The order ID is 240816000520774.
After placing the order, I chekced the filled quantity using Get Order Details API. It shows 0.
But in reality, filled quantity was 61.
Thank you for reaching out. This situation is unusual, and we’ll work on reproducing the issue and get back to you. In the meantime, if you could provide a screenshot or a short video demonstrating the problem, it would greatly assist us in debugging it more effectively.
I am getting this statement printed: “BSE Filled Quantity 0”. But order 240816000520774 has filled quantity as 61.
This is very important. API behavior has to be reliable and consistent.
Also, please let me know, if I am doing anything wrong.
Upon reviewing your code, it appears that you have placed a limit sell order and stored the order ID in the _order_id variable. Following this, you are making a call to the Get Order Details API.
The most likely reason for seeing filled_quantity as 0 is that your limit order has not yet been executed. According to the documentation, filled_quantity represents “the total quantity traded for this particular order.” Once your order is executed on the exchange, the quantity will be reflected in this field.
I placed an IOC (Immediate or Cancel) LIMIT order for a particular price 677.15.
IOC Limit orders are immediately filled for the best price or cancelled immediately.
Whatever happens, it has to be immediate.
In this buggy case, Order gets executed with filled quantity as 61 but get_order_api returned 0 as filled_quantity.
The filled_quantity indicates “the total quantity traded for this specific order.” If the order has been successfully executed, this value will be greater than zero. In the case of canceled or open orders, it will remain zero.
Here is an example of completed BSE IOC limit order