I've gone over the sample ATM strategy and part of it work fine for me.
One issue I have is executing an exit order or close position order.
When I try to exit using the command:
AtmStrategyClose(orderId);
I get an error saying:
AtmStrategyId '*** Some random order number ***' does not exist
I've followed the steps in the sample strategy but can't seem to get the correct orderid information.
I noticed that the orderid that is captured when an order fills is not the same as the order id on the control center orders tab. Should those numbers match either the ID or Token or Strategy ID?
Seems as if I'm not getting the correct id information when the order executes.
I'm using: orderId = GetAtmStrategyUniqueId(); as the method of assigning the value.
Is this incorrect?
Thanks
Comment