Support Board
Date/Time: Wed, 27 Nov 2024 10:36:19 +0000
Post From: ASCIL Different OrderIDs for Same Order
[2023-08-21 01:21:01] |
Gradient - Posts: 89 |
Those lines wouldn't cause the issue with the InternalOrderID of the TradeOrder. IsOrderFilled has no side effect on setting LongOrderId and ShortOrderId as this parameter is only set after the order ids have already been set. IsOrderFilled is a bool variable. See TradeSystem.cpp in ACS Source Folder. The variable is initialized identically to the way it is in that file. It is checking to see if the status is filled and returning a boolean value. The order ids are declared as int and only being set when there is a new trade initiated. Order Ids should only be generated when a new trade is initiated. I've shown that this is not the case. Also order ids should be discrete and non negative. |