|
<< Click to Display Table of Contents >> Navigation: Import > Interactive Brokers > Web service import |
If you are done with the creation of the Flex Queries, read on; otherwise go to the Create Flex Queries chapter.
After creating the Flex Queries you have three IDs:
1. Activity Flex of the last 30 days ID
2. Activity Flex of the last 365 days ID
3. Trade Confirms Flex ID
These three IDs define the queries but you need one more ID called Token which is an access token to the queries.
Creating the web service Token and enabling statements
Log on to the Interactive Brokers Account Management.
Click on the Performance & Reports/Flex Queries
On the Flex Web Service Configuration click on the small gear.

Click on the Enable Flex Web Service Status check box and click on the Save button.

Click on the Generate New Token button. Select 1 year in the Expire After drop-down and click on the Generate New Token button.

Please note that after expiration you have to generate a new token.
Token is ready. Now you have three IDs and a token.
1. Activity Flex for the last 30 days ID
2. Activity Flex for the last 365 days ID
3. Trade Confirms Flex ID
4. Token.
Click on the Import/Select Import Module Menu. The Import module selector window appears. Select Interactive Brokers Web Service importer.
Please click on the Settings button. The following form will be shown:

Fill in the form with the previously created IDs.
Add order type as a tag - if this check box is ticked, the order type of the trade will be added as a tag. Currently two order types are reported by Interactive Brokers: limit and market.
Add order reference as tag - if this check box is ticked, the order reference will be added as a tag. Please note that the order reference is added to the Trade Confirms flex statements by Interactive Brokers.
Debug mode - The received xml statements will be saved in the TradingDiaryPro/Debug directory.
Save the settings and then click on the Import Statement button. All your data will be inserted into the database.