I Want to Use Multiple Accounts
Is this you?
- You have more than one Interactive Brokers account linked to the same TWS login
- You want to choose which account receives each order
- You're not sure how to tell XeroLite which account to use
Quick Answer
✅ Yes, XeroLite supports multiple IB accounts
You specify which account gets each order by including the account number (acc_no) in your alert JSON.
Setup (3 steps)
1. Know your IB account numbers
- Log into TWS or IB Gateway
- Find your account IDs (e.g.
DU1234567,DU7654321) - You'll use these in the
acc_nofield
2. Add acc_no to your alert message
In every TradingView alert that should go to a specific account, include acc_no in the message:
{
"acc_no": "DU1234567",
"symbol": "AAPL",
"action": "BUY",
"qty": 10,
"order_type": "MARKET",
"currency": "USD",
"asset_class": "STOCK",
"exch": "SMART"
}
Replace DU1234567 with the account that should receive this order.
3. One alert per account per signal (no order replication)
XeroLite does not send one alert to multiple accounts. To trade the same signal in two accounts, create two alerts in TradingView with the same condition but different acc_no values.
Common Questions
Q: Do I have to use acc_no if I only have one account?
A: No. If you have a single account, you can omit acc_no; XeroLite uses the default account.
Q: What if I get the account number wrong?
A: The order may go to the wrong account or be rejected. Double-check account IDs in TWS.
See Also
- Multi-Account Support (full reference) — Detailed guide, examples, and troubleshooting
- Alert Request Format v1.2 — All fields including
acc_no - Troubleshooting — If orders don’t reach the right account