How to query 'current_portfolio_value' via REDI API?

How can current value of the book (net liquidation value) be queried over API? Need it after the market is closed to compute next days position. In the API doc's, this is not clear.

Best Answer

Answers

  • Thank you but still not clear....see below

  • still not clear.

    Let me explain another way:

    Sometime after the market closes, there is an algorithmically generated request that goes to REDI and returns the net liquidation value of the account and all open positions. These are used in computations resulting in a list of algorithmically generated tickets for the following day. Per the C# tutorial and the GitHub repository, this is not clear. Then the VB example suggests manual steps which we are trying to avoid.

    The options in the API docs are: BuyingPower, LongValue, NetValue, ShortValue.

    I'm assuming it's NetValue I'm after, but what would be the correct way to do it in either VB or C#?

  • @qcap17 setting "Value" in VB (Excel) returns the net value. Can you try that?

    e.g.

    account A's value = $500

    account B's value - -$100

    "value" is $400