Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ibflex/Types.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ class CashReportCurrency(FlexElement):
slbNetSettledCashSec: Optional[decimal.Decimal] = None
slbNetSettledCashCom: Optional[decimal.Decimal] = None
slbNetSettledCashPaxos: Optional[decimal.Decimal] = None
otherIncomePaxos: Optional[decimal.Decimal] = None


@dataclass(frozen=True)
Expand Down
8 changes: 3 additions & 5 deletions ibflex/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
###############################################################################
# SERVICE LOCATIONS
###############################################################################
FLEX_URL = 'https://gdcdyn.interactivebrokers.com/Universal/servlet/'
REQUEST_URL = FLEX_URL + 'FlexStatementService.SendRequest'
STMT_URL = FLEX_URL + 'FlexStatementService.GetStatement'
FLEX_URL = 'https://ndcdyn.interactivebrokers.com/AccountManagement/FlexWebService/'
REQUEST_URL = FLEX_URL + 'SendRequest'
STMT_URL = FLEX_URL + 'GetStatement'


###############################################################################
Expand Down Expand Up @@ -136,8 +136,6 @@ def request_statement(
"""First part of the 2-step download process.
"""
url = url or REQUEST_URL
### AKE FIX
url = 'https://ndcdyn.interactivebrokers.com/portal.flexweb/api/v1/flexQuery'
response = submit_request(url, token, query=query_id)
stmt_access = parse_stmt_response(response)
if isinstance(stmt_access, StatementError):
Expand Down
Loading