Support Board
Date/Time: Tue, 22 Apr 2025 00:42:00 +0000
Post From: Retrieving Order Data between Main Instance and Sub Instance
[2023-02-08 23:35:23] |
User900285 - Posts: 98 |
I do see that the Exchange Order ID field is there for the parent order and it is consistent between the main and the sub instance. However when trying to access this field via ACSIL in either the main or sub instance, it always prints a 0 value. To make sure, I performed a few tests with a variable of type uint64_t and was able to print it fine using msg.Format and the %u or %lu flag. The s_SCTradeOrder structure member TrueExchangeOrderID is returning 0 in the main instance and sub instance of Sierra Chart. To be clear I did test this on the Teton Order Routing Service and the Trading Evaluator Service. In both of those services the ExchangeOrderID field in the Trade Orders Window was a non zero number. This variable will still not allow me to determine the attached orders in the sub instance that were submitted in the main instance. The last idea I had was using the std::string find method to search for particular strings inside of the Order.LastOrderActionSource member. This method should work for determining if an order is an attached order, if the Teton Service or Trading Evaluator service is used, and if the attached orders are server side. I noticed is that this field changes depending on a few things including, 1. The Trading Service being used, 2. Whether the sent orders are server side or client side bracket orders. In the case of the Interactive Brokers service, that field only shows something like "IB Trade Order Action Status". Date Time Of Last Edit: 2023-02-09 05:33:05
|