Initialized
PendingSubmit
Accepted
Working
PendingChange
PendingCancel
Cancelled
Rejected
PartFilled
Filled
This is fine except that repeated calls of the OrderStatus function will drive a memory leak which can eventually crash the TradeStation platform. Functions that return an integer do not have this problem or if they do, it is negligible. I suggest either modifying the NtDirect dll to use integers for the order status function return or provide your client with an alternate version which would use integers instead of strings. For existing users the conversion of the integer back to string can be done in the order status function so their existing code will continue to work.
Thanks.
Comment