Can I use ChangeOrder to alter the quantity on an OCO order?
I am fixing someone else's code and trying to avoid rewriting it. Instead of putting out one OCO set with each partial fill, only one was put out on the first fill (hence the error).
Is quantity read-only or can I modify it and if I can, do you have any suggestions on what to use for quantity (i.e. position.quantity).
I can envision a situation where I get a partial fill on the entry (4 out of 10) and then a partial fill of that partial fill on an exit (2 of the 4) and then another fill on the entry, etc. What a mess that would be.
I suspect, I am going to have to use order lists but this is only a prototype and I don't want to spend a lot of time on it.
Any and all suggestions will be appreciated.
Best Regards,
Scott

Comment