Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 13:56:32 +0000



Post From: Any way to call sc.GetOrderForSymbolAndAccountByIndex(...) in reverse?

[2025-03-04 00:34:37]
LTSys - Posts: 68
Been looking for a way to get the results from this function in reverse.

So instead of starting at index zero...


int orderIndex = // some call to get the order count based on symbol and account

while(sc.GetOrderForSymbolAndAccountByIndex(EMPTY_STRING, accountName, orderIndex, order) != SCTRADING_ORDER_ERROR) {

orderIndex--; // reverse index
}

TIA