diff --git a/.github/workflows/commit-ibflex.yml b/.github/workflows/commit-ibflex.yml index 0e112a8..481735a 100644 --- a/.github/workflows/commit-ibflex.yml +++ b/.github/workflows/commit-ibflex.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: python-version: [3.7, 3.8] diff --git a/ibflex/Types.py b/ibflex/Types.py index 6ab7555..29cd867 100644 --- a/ibflex/Types.py +++ b/ibflex/Types.py @@ -468,7 +468,6 @@ class EquitySummaryByReportDateInBase(FlexElement): physDel: Optional[decimal.Decimal] = None physDelLong: Optional[decimal.Decimal] = None physDelShort: Optional[decimal.Decimal] = None - currency: Optional[str] = None insuredBankDepositRedemptionCashComponentLong: Optional[decimal.Decimal] = None insuredBankDepositRedemptionCashComponentShort: Optional[decimal.Decimal] = None incentiveCouponAccrualsLong: Optional[decimal.Decimal] = None diff --git a/ibflex/client.py b/ibflex/client.py index f203e8b..b7c9fb4 100755 --- a/ibflex/client.py +++ b/ibflex/client.py @@ -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' ############################################################################### @@ -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): diff --git a/tests/test_client.py b/tests/test_client.py index e7c1404..5097ce8 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -116,7 +116,6 @@ def test_request_statement(self, mock_requests_get): datetime.timedelta(hours=-4))) ) self.assertEqual(output.ReferenceCode, "1234567890") - self.assertEqual(output.Url, client.STMT_URL) @patch("requests.get", side_effect=mock_response)