Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

incorrect tag in account summary: 'PreviousEquityWithLoanValue' should be 'PreviousDayEquityWithLoanValue' #588

Closed
bayareacoder opened this issue May 10, 2023 · 1 comment

Comments

@bayareacoder
Copy link

in ib.py:

def reqAccountSummaryAsync(self) -> Awaitable[None]:
        reqId = self.client.getReqId()
        future = self.wrapper.startReq(reqId)
        tags = (
            'AccountType,NetLiquidation,TotalCashValue,SettledCash,'
            'AccruedCash,BuyingPower,EquityWithLoanValue,'
            'PreviousEquityWithLoanValue,GrossPositionValue,ReqTEquity,'
            'ReqTMargin,SMA,InitMarginReq,MaintMarginReq,AvailableFunds,'
            'ExcessLiquidity,Cushion,FullInitMarginReq,FullMaintMarginReq,'
            'FullAvailableFunds,FullExcessLiquidity,LookAheadNextChange,'
            'LookAheadInitMarginReq,LookAheadMaintMarginReq,'
            'LookAheadAvailableFunds,LookAheadExcessLiquidity,'
            'HighestSeverity,DayTradesRemaining,DayTradesRemainingT+1,'
            'DayTradesRemainingT+2,DayTradesRemainingT+3,'
            'DayTradesRemainingT+4,Leverage,$LEDGER:ALL')
        self.client.reqAccountSummary(reqId, 'All', tags)
        return future

No 'PreviousEquityWithLoanValue' account summary tag exists, per: https://interactivebrokers.github.io/tws-api/classIBApi_1_1AccountSummaryTags.html and no event occurs on that.
It should be: 'PreviousDayEquityWithLoanValue`
I have tested this to work then as expected.

@erdewit
Copy link
Owner

erdewit commented May 24, 2023

This is fixed as well.

@erdewit erdewit closed this as completed May 24, 2023
erdewit added a commit that referenced this issue Jul 2, 2023
flepied pushed a commit to flepied/ib_insync that referenced this issue Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants