I need some guidance with handling rejected orders. Sometimes orders get rejected when you submit them e.g. a StopMarket order that's on the wrong side of price. And sometimes orders get rejected when they get hit. For example a Forex order, which gets hit but can't fill due to insufficient margin.
How can I differentiate between these two different order rejection scenarios?
Thanks
Kevin.
Comment