English | Русский | Українська | Srpski | Српски
Interactive Brokers (IBKR)
Flex Web Service
- Performance & Reports > Flex Queries.
- Click the Settings icon (gear) in “Flex Web Service Configuration”.
- Enable Flex Web Service.
- Generate Token.
- Important: Copy this token immediately. You will not be able to see it fully again.
- Set expiration (recommended max - 1 year).
Flex Query
- Performance & Reports > Flex Queries.
- Click + to create a new Activity Flex Query.
- Name: e.g.,
ibkr-porez-data. - Delivery Configuration (at the bottom of the page):
- Period: Select Last 365 Calendar Days.
- Format: XML.
Sections to Include:
Enable the following sections and check Select All for columns.
If you don’t trust anyone 8-) instead of Select All, select at least the fields listed in Required Columns.
Transactions
Located under Trade Confirmations or Activity.
Required Columns
SymbolDescriptionCurrencyQuantityTradePriceTradeDateTradeIDOrigTradeDateOrigTradePriceAssetClassBuy/Sell
Cash Transactions
Required Columns
TypeAmountCurrencyDateTime/DateSymbolDescriptionTransactionID
Save and Get Query ID
Note the Query ID (number usually appearing next to the query name in the list).
You will need the Token and Query ID to configure ibkr-porez.
Confirmation Document
For Item 8 (Dokazi uz prijavu) of the PPDG-3R tax return, you need a PDF report from the broker. It must be attached manually on the ePorezi portal after importing the XML.
How to download the appropriate report:
- In IBKR go to Performance & Reports > Statements > Activity Statement.
- Period: Select Custom Date Range.
- Specify dates corresponding to your tax period (e.g.,
01-01-2024to30-06-2024for the first half). - Click Download PDF.
- On the ePorezi portal, in section 8. Dokazi uz prijavu, upload this file.
Export Full History (for import command)
If you need to load transaction history for a period longer than 1 year (unavailable via Flex Web Service), export data to CSV:
- In IBKR go to Performance & Reports > Statements > Activity Statement.
- Period: Select Custom Date Range and specify the entire period since account opening.
- Click Download CSV.
- This file can be used with the import ↗ command.