Skip to content

Code=1003: Statement is not available. #91

@JBlohm

Description

@JBlohm

I am suddenly experiencing:

(.venv) % python3 ./client.py -t 10765721784211559xxxxxx -q 1163xxx -> Valid token and ID

DEBUG:Starting new HTTPS connection (1): gdcdyn.interactivebrokers.com:443
DEBUG:https://gdcdyn.interactivebrokers.com:443 "GET /Universal/servlet/FlexStatementService.SendRequest?v=3&t=10765721784211559xxxxxx&q=1163xxx HTTP/1.1" 200 None <-- manually changed in this description for not to exhibit my token.
Traceback (most recent call last):
File "/Users/jblo/jblo_repos/ibflex/ibflex/./client.py", line 259, in
main()
File "/Users/jblo/jblo_repos/ibflex/ibflex/./client.py", line 254, in main
statement = download(args.token, args.query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jblo/jblo_repos/ibflex/ibflex/./client.py", line 116, in download
stmt_access = request_statement(token, query_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jblo/jblo_repos/ibflex/ibflex/./client.py", line 144, in request_statement
raise ResponseCodeError(
ResponseCodeError: Code=1003: Statement is not available.

When I execute the same query manually on the ibkr website, I still get the xml file.

Any Idea? (This worked for weeks, now suddenly fails. Token and IDs are still valid. (not expired)

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