Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jan 2025 02:10:15 +0000



Post From: ACSIL scconstants.h definition of const int SCT_ORDERTYPE_STOP = 2;

[2017-09-27 09:27:37]
User553714 - Posts: 184
Hi,

Within the scconstants.h file a STOP order is defined as;
const int SCT_ORDERTYPE_STOP = 2;

When I define a SCTradeOrder str like this;
  s_SCTradeOrder StopOrderDetails;
  sc.GetOrderByOrderID(Stop1InternalOrderID, StopOrderDetails);

and write the populated contents to file the stop "OrderType" member StopOrderDetails.OrderType I get the text "stop" displayed?
file output >> 2017-08-29 19:08:00 | 1390064, Stop
Shouldn't it be either "SCT_ORDERTYPE_STOP" or the int number "2" being displayed? Am I missing something? Thanks