Support Board
Date/Time: Sun, 19 May 2024 15:32:44 +0000
Post From: Order is finished
[2019-03-06 11:32:57] |
User942837 - Posts: 108 |
Hi, sorry for cross posting but the DTC Protocol forum doesn't seem to be monitored frequently. I am trying to cancel and flatten a bracket order thru DTC protocol that was already filled. For unfilled orders, I send the clientOrderId of the parentOrder and the oco orders are automatically cancelled. When the bracket order is filled I am getting the cancellation rejected with reason Order is finished. What is the right procedure to flatten a bracket order in which the parent order is Filled. Do I issue 1) 2 separate cancel requests for the STOP and TARGET orders 2) and then issue a market order that makes the position of the original bracket order as 0? For 1, what serverOrderIds do I use? Thank you |