Hello all,
Can anyone please explain the IOC trades such as How long it stays in exchange, which instrument support it and what is the DHAN API response structure for IOC trades.
Thanks in advance,
Mrinal
Hello all,
Can anyone please explain the IOC trades such as How long it stays in exchange, which instrument support it and what is the DHAN API response structure for IOC trades.
Thanks in advance,
Mrinal
API structure for Orders on Dhan is mentioned here - Orders - DhanHQ Ver 2.0 / API Document. You may see the validity option there.
It is really immediate, when the order is placed and submitted to exchange.
Ok, so I assume if in 1sec order not fulfilled then cancel the order.
Thanks,
Dear Pravin,
What is the response for a partially filled IOC order? I see there can be two methods
1: Read the response after placing order. But here there is no such response as part-traded, only { |orderStatus| enum string | Last updated status of the order
TRANSIT PENDING REJECTED CANCELLED TRADED EXPIRED}
So no way to find the part-fill order. In the 2nd one
2: We can poll for the order status which has options such as “part_traded” in order status.
Can we in any way identify a partially filled order through the 1st method, specifically for IOC orders or we have to poll for order status?
Thanks in advance,
Mrinal
For IOC orders, in case of partial trade, the rest of the quantity is already cancelled.
For the response after placing the order, yes, you will have to poll the Order details API to know the status or you can use Live Order Update (over websocket updates) for the same.