API Support Forum
OEC API > API Support > Account TotalBalance.NetLiq not accurate
Author Topic: Account TotalBalance.NetLiq not accurate
(4 messages, Page 1 of 1)
Moderators: VPfau
EWinter
Posts: 5
Joined: Mar 23, 2011


Posted: May 18, 2022 @ 08:09 PM             Msg. 1 of 4
I need to get the Net Liq value using code. I have the following code:

var account = _gfClient.Accounts.Get().Where(a => a.ID.Value.ToString() == accountID).FirstOrDefault();
var netLig = account.TotalBalance.NetLiq;

The value of netLiq does not equal the value of Net Liq shown in the account summary. How can I get the actual Net Liq value?
Esther Winter
EWinter
Posts: 5
Joined: Mar 23, 2011


Posted: May 18, 2022 @ 08:11 PM             Msg. 2 of 4
FYI - I am using the .NET API.
Esther Winter
EWinter
Posts: 5
Joined: Mar 23, 2011


Posted: May 18, 2022 @ 08:11 PM             Msg. 3 of 4
FYI - I am using the .NET API.
Esther Winter
JSmith5611
Posts: 187
Joined:


Posted: May 20, 2022 @ 01:51 PM             Msg. 4 of 4
TotalBalance.NetLiq should work. can you give me an example of an account where this isn't true?
Jason Smith