API Support Forum
OEC API > API Support > Showing Total Account Balance
Author Topic: Showing Total Account Balance
(5 messages, Page 1 of 1)
Moderators: VPfau
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jun 11, 2007 @ 03:00 PM             Msg. 1 of 5
How do I show the total Balance of my account in the Advanced Example?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jun 11, 2007 @ 05:49 PM             Msg. 2 of 5
Sorry, but I don't understand the question.
Total Balance is already shown by BalanceControl, please see BalanceControl.cs file for details.
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jun 12, 2007 @ 02:44 AM             Msg. 3 of 5
It does not show total account balance when you 1st log in. It only shows Total balance when you open a position. Maybe because it is only updated with OnBalancedChanged event?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jun 14, 2007 @ 04:56 PM             Msg. 4 of 5
Yes, the required code is missing - thank you for pointing us to the bug.

You can add a handler for OnLoginComplete event and fill the initial balance there, or wait until we provide updated sample.
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jun 15, 2007 @ 04:44 PM             Msg. 5 of 5
Yes, that is what I have done.