Skip to content

IBKR Flex Web Service v3 may ignore previous “Last N days” query setting until the new Flex query is recreated #109

Description

@pavelstovicek

Summary

After upgrading to the current version of ibflex, which uses the IBKR Flex Web Service v=3 endpoint, I noticed that one of my existing predefined Flex queries started returning only the last business day. Previously, the same predefined query returned my expected time scope, which was 365 days.

Workaround

Create a new Flex query in IBKR Client Portal with the desired report period, then use the new Query ID / Reference Code with ibflex.

In my case, recreating the query restored the expected 365-day report period.

Notes

This is no an ibflex bug. It may be related to how IBKR handles existing predefined v=2 Flex queries when using the new Flex Web Service v=3.

The Flex Web Service API request itself appears to expose only parameters such as token, query ID, and version. I did not find a way to pass the report period directly through ibflex or the Flex Web Service request.

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