IBKR

Connect Interactive Brokers

Follow the steps below in IBKR to retrieve your Query ID and Token.

Read-only access

Logvexa uses IBKR's Flex Web Service, which can only read your trade history. It cannot place orders, modify positions, or access your funds. Your token is encrypted at rest.

Log in to IBKR Client Portal
STEP 1

Log in to IBKR Client Portal

Go to Performance & Reports → Flex Queries.

STEP 2

Create a Flex Query

Create a "Trade Confirmation Flex Query" (for fast incremental sync) and optionally an "Activity Flex Query" (for daily reconciliation: fees, cash transactions, corporate actions).

STEP 3

Select relevant fields

Select all relevant fields (Executions, Open/Close, Commission, etc.).

STEP 4

Format & date

Format: XML (required for auto-sync), set date format (yyyy-MM-dd, HH:mm:ss).

STEP 5

Generate a token

Go to Flex Web Service → generate a token (valid for 1 year).

STEP 6

Note your Query ID and Token

Note your Query ID and Token — you will need these to connect Logvexa.

Have you noted your Query ID and Token? Paste them below to validate the connection.

Disconnecting your IBKR account

You can remove this connection at any time from the Broker Sync page. To fully revoke access, also delete the Flex token in IBKR Client Portal → Settings → Flex Web Service.

Validate your credentials

Used by the daily scheduled sync for full reconciliation. Leave empty to use the Trade Confirmation query for all syncs.