API for account value and position market value

Hi,

I’m trying to connect my existing system to C2. For things to work, I need C2 API to work like a brokerage account. Specifically, I need the API to report 2 things:

  1. Account value, or net liquidation value. When taking a naked short position for example, the account value should reflect the result of closing that position, instead of “account cash + cash received from shorts”.
  2. Position market value.

For #1, getSystemDetails does not report this value. I can see it on Dashboard, but there’s no number in getSystemDetails that matches the Dashboard number.

For #2, I understand that I can somehow calculate this value from a live market data subscription. But all of the brokerage APIs I worked on reports the position value, which my program relies on for sizing.

Are these numbers available from API at all?