Skip to content

Hardcoded url #93

@pavelstovicek

Description

@pavelstovicek

After installing the latest commit df672d2, the downloading of the statement stopped working.

I have reviewed the code changes and there is following code in client.py:

def request_statement(
     token: str, query_id: str, url: Optional[str] = None
 ) -> StatementAccess:
     """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'
   ...

So no matter what url is provided, it is always overwritten.

After removing the line with the hardcoded url, it works again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions