QuantConnect / Lean.Brokerages.InteractiveBrokers

InteractiveBrokers Brokerage Plugin
Apache License 2.0
27 stars 17 forks source link

Separating Capital from Different Accounts #39

Open DerekMelchin opened 1 year ago

DerekMelchin commented 1 year ago

Expected Behavior

If we deploy an algorithm with an IB account ID, LEAN loads only the capital from that account ID.

Actual Behavior

LEAN loads the capital from all of the account ID's under your IB user name. For example, say we have an IB user with a trading account that contains $10 USD and a TFSA (tax-free savings account) account that is empty. If we deploy an algorithm using the trading account ID or the TFSA account ID, the Holdings tab in the live results page shows $10 USD.

Potential Solution

Only read the capital from the account with the provided account ID.

Reproducing the Problem

Deploy to IB when you have an account with multiple account IDs.

System Information

QC Cloud.

Checklist