Tools to assist with IB Flex reports and Ledger
The crate is incomplete but there are funcioning parts. These can be seen in Tests.
This crate contains a CLI and a library which assist with Flex Reports from Interactive Brokers. There are several components involved:
ibflex
, provides all the features of the ibflex
library ✅ibflex
library exposes the following functionality
pricedb
crate (repo) provides the Symbol mapping between IB Flex report and Ledger. I.e. symbol VHYL
in the report is VHYL_AS
in Ledger. The package is a dependency of ibflex
but must be configured manually to read from own database. ✅Prior to running, you may need to configure the required parameters in the configuration file ibflex.toml
, which is located in the current directory.
To view the current configuration, run
ibflex cfg
This will display the current parameters.
If the file does not exist, it will be automatically created by this command.
To edit the values, use any text editor.
The required parameters for downloading the Flex report are:
flex_query_id
ib_token
Once this is set up, invoke the CLI:
ifblex dl
This will save the report in the current directory. The filename will contain today's date.
See LICENSE file.