Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 13:36:57 +0000



Post From: ASCIL Creating TimeDeltas

[2023-08-19 16:45:04]
Gradient - Posts: 89
Actually, it appears that .GetMinute() is returning the correct minute integer when called on sc.BaseDateTimeIn[sc.Index]

But is not returning the correct minute int when called on trade order.

For example,

int CurrentMinute=sc.BaseDateTimeIn[sc.Index].GetMinute()
SCDateTime ExecutionTime;
int ExecutionMinute;

s_SCTradeOrder TradeOrder;
sc.GetOrderByOrderId(SellOrderId,TradeOrder);

if(TradeOrder.InternalOrderID == SellOrderId){

ExecutionTime=TradeOrder.LastActivityTime;

ExecutionMinute=ExecutionTime.GetMinute();


}

Returns the Current Minute as an int but returns ExecutionMinute at some different resolution despite both being SCDateTime objects.

See Attached.

Please Advise.
imageExecutionTimeMinute Error.png / V - Attached On 2023-08-19 16:45:01 UTC - Size: 13.87 KB - 78 views