Lean.Brokerages.InteractiveBrokers
Lean.Brokerages.InteractiveBrokers copied to clipboard
Separating Capital from Different Accounts
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
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
master
branch - [x] I have confirmed that this is not a duplicate issue by searching issues
- [x] I have provided detailed steps to reproduce the issue