Support Board
Date/Time: Tue, 22 Apr 2025 00:36:16 +0000
Post From: Retrieving Order Data between Main Instance and Sub Instance
[2023-02-08 19:57:56] |
User900285 - Posts: 98 |
What I was trying to do is get the attached orders s_TradeOrder structure in a sub instance when the primary order was submitted in the main instance. Normally we can get the Attached Orders very easily if we have the Parent Order structure already saved to start with. When calling this in a sub instance: s_SCTradeOrder Target;
The attached target in this case is not returned.sc.GetOrderByOrderID(Order.TargetChildInternalOrderID, Target); Then I noticed that these attached orders when viewing the Trade Orders Window in the sub instance do not have the ParentOrderID field. That should mean that the Order.TargetChildInternalOrderID field is zero when trying to retrieve this information from a sub instance. Let me know if there is another way to determine if an order is an attached order if it was submitted from the main instance and you want to retrieve it from a sub instance. Date Time Of Last Edit: 2023-02-08 20:41:58
|