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

incorrect tags in account summary: 'reqTEquity' & 'reqTMargin' should be 'regTEquity' & 'regTMargin' #589

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 'ReqTMargin' and 'ReqTEquity' account summary tags exist and no events occur on that.

It is actually wrong in the IBKR doc at https://interactivebrokers.github.io/tws-api/classIBApi_1_1AccountSummaryTags.html
which is probably why it's in the code. It comes from 'regulation T'

Tags should be: 'regTEquity' and 'regTMargin'

I have tested this to work then as expected.

@erdewit
Copy link
Owner

erdewit commented May 24, 2023

Thanks, this is fixed now.

@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