Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 08:34:51 +0000



Post From: sc.TradeServiceAccountBalance no longer supported

[2022-06-11 16:47:34]
Marmany - Posts: 303
Updated to v 2400 and in release note it states:
The following ACSIL structure member variables are no longer supported: sc.TradeServiceAccountBalance, sc.TradeServiceAvailableFundsForNewPositions. You need to to use the int sc.GetTradeAccountData(n_ACSIL::s_TradeAccountDataFields& r_TradeAccountDataFields, const SCString& TradeAccount) function instead.

Not able to work out how to access account balance using sc.GetTradeAccountData. Please give an example of code required.

However the function sc.GetTradeServiceAccountBalanceForTradeAccount("Act No") gives the correct value. Why is this not mentioned in the release note?

Please advise