Login Page - Create Account

Support Board


Date/Time: Tue, 01 Jul 2025 14:02:18 +0000



Post From: How to get ClosedProfitLoss of an order. in ACSIL, given the InternalOrderID

[2019-10-20 13:03:21]
ForgivingComputers.com - Posts: 1072

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;
}