I have been test trading a moc system in the US with one instance of an API while still using it for my ASX mean reversion on another. On two occasions I have had the API not close my US positions with moc orders. I am 95% certain that I set all the preferences correct on the API both times but what I think may have happened is, I set up the API for my US moc system first with one client id, then set up the API for my ASX system with another client ID. I am thinking that the API has taken the preferences from the second setup and changed the ‘close positions with moc orders’ setting.
Is this possible or am I just screwing something up? Has anyone else had this?