API Support Forum
OEC API > API Support > MicroFX account TotalBalance->OpenPnL, and pAcct->TotalBalance->RealizedPnL are off by 100
Author Topic: MicroFX account TotalBalance->OpenPnL, and pAcct->TotalBalance->RealizedPnL are off by 100
(5 messages, Page 1 of 1)
Moderators: VPfau
CWeber984
Posts: 226
Joined: Apr 24, 2012


Posted: Apr 07, 2017 @ 06:51 PM             Msg. 1 of 5
We are using and testing a new MicroFX account. When we have open and closed positions, the OECAPICOM::IAccountPtr::TotalBalance->OpenPnL and OECAPICOM::IAccountPtr::TotalBalance->RealizedPnL for these open and closed positions are off by 100.

For instance:
- A single open position on EUR/USD has an open profit of $6.40 in OEC Trader Demo, but the TotalBalance->OpenPnL value that we get from the api is $640.00.
- The same error occurs for RealizedPnL.

The MiniFX and StandardFX accounts are fine. They return the same value for the position as is shown in OEC Trader Demo. That is:
- the open position PL shown in OEC Trader Demo agrees with TotalBalance->OpenPnL returned by the api.
- the realized position PL shown in OEC Trader Demo agrees with pAcct->TotalBalance->RealizedPnL returned by the api.

I'll send the accounts involved to you in an email referencing this post.

Thanks,
CHW
JSmith5611
Posts: 187
Joined:


Posted: Apr 10, 2017 @ 09:47 AM             Msg. 2 of 5
Are you using the 1.5.14.20 version of the COM API that was released on friday?
Jason Smith
CWeber984
Posts: 226
Joined: Apr 24, 2012


Posted: Apr 10, 2017 @ 05:15 PM             Msg. 3 of 5
HI Jason,

No, we aren't. I'll perform the update and post back to confirm it solved the issue.

Thanks,
CHW
CWeber984
Posts: 226
Joined: Apr 24, 2012


Posted: Apr 12, 2017 @ 01:55 AM             Msg. 4 of 5
The new api resolved our issues. Thanks Jason.
CHW
JSmith5611
Posts: 187
Joined:


Posted: Apr 12, 2017 @ 06:51 AM             Msg. 5 of 5
You're welcome.
Jason Smith