I am trying to accomplish the following:
- If the order is completely filled, create an OCO immediately with stop loss and profit targets.
- I have this accomplished using CreateOrder and then Submit but how to accomplish the next 2 points?
- If the order is PARTIALLY filled, create an OCO immediately with stop loss and profit targets.
- Then update the quantities of the OCO set once the order is completely filled to match the proper size?
Had a few issues before where the order was only partially filled and therefore just sitting there without any risk management and looking for a solution so that there is always an OCO with accurate sizes no matter what.
Thank you kindly!
Comment