Support Board
Date/Time: Mon, 03 Feb 2025 04:02:01 +0000
Post From: How to get ClosedProfitLoss of an order. in ACSIL, given the InternalOrderID
[2019-10-20 13:03:21] |
ForgivingComputers.com - Posts: 994 |
s_SCTradeOrder TradeOrderData; int Result = sc.GetOrderByOrderID(InternalOrderID, TradeOrderData); int OrderStatusCode = TradeOrderData.OrderStatusCode; if (OrderStatusCode == SCT_OSC_FILLED) { // The order has completely filled double FillPrice = TradeOrderData.LastFillPrice; } |