Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 15:10:28 +0000



sc.TradeServiceAccountBalance no longer supported

View Count: 378

[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
[2022-06-14 13:49:54]
Sierra_Chart Engineering - Posts: 14088
We will put together an example.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-06-15 09:36:40]
Sierra_Chart Engineering - Posts: 14088
Here is the documentation:
sc.GetTradeAccountData()


However the function sc.GetTradeServiceAccountBalanceForTradeAccount("Act No") gives the correct value. Why is this not mentioned in the release note?
The most up-to-date way to get this information is through the sc.GetTradeAccountData function. sc.GetTradeServiceAccountBalanceForTradeAccount is considered out of date.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account