Support Board
Date/Time: Fri, 31 Jan 2025 22:42:55 +0000
Post From: ACSIL: sc.GetTradePositionForSymbolAndAccount function member AveragePrice not works
[2019-05-30 12:24:14] |
ForgivingComputers.com - Posts: 992 |
int TradeOrderResult;
double OrderID1FillPrice; s_SCTradeOrder TradeOrder1; TradeOrderResult = sc.GetOrderByOrderID(OrderID1, TradeOrder1); if (TradeOrder1.OrderStatusCode == SCT_OSC_FILLED) { OrderID1FillPrice = (double) TradeOrder1.AvgFillPrice; } |