Frequently Asked Questions



What is the IB Lightning Command Line Interface (CLI)?

IB Lightning CLI is a command line application for Interactive Brokers that lets you input trades immediately with a command line, bypassing slow web sites, mouse clicks, and swipes.
The CLI is a complement to 'Trader Workstation' and all its features.

Who is IB Lightning for?

IB Lightning is for traders who are new to IB Trader Workstation, Professionals who need more control of their trades, and Developers who need a fast, extensible way to work with the platform.

Why Would I use IB Lighting CLI instead of the API directly?

The IBKR API is confusing. You need to code around quite a bit to get it to interact with anything and do anything. IB Lighting CLI lets you skip straight to more fun tasks like making trades from the command line.

What do I need to use IB Lightning?

While you can run IB Lighting CLI on any Windows machine, for the best experience you should have the Interactive Brokers (IBKR) Trader Workstation desktop application and an IBKR account.
You should also check the "Enable ActiveX and Socket Clients" option in the Trader Workstation API configuration options. Specifically:

Click on the File tab in Trader Workstation (TWS). Click on the “Global configuration” under the “Application Settings” section. Click on the “API-Settings” under the “Configuration” folder shown on the left-hand side panel. Check the “Enable ActiveX and Socket Clients” box. Configuring Trader Workstation for API usage.

Does IB Lightning CLI support mobile or other operating systems besides Windows?

No. Trader Workstation is a Windows desktop application and hence IB Lightning CLI requires the same system.

Can i use Python, another scripting language, or other executables with it?

Yes! You can call any command you want from within the command line.

Is it safe to use Lightning CLI?

The CLI is a process that runs locally on your computer and interfaces directly with the TraderWorkstation and IB programming interfaces. There are no remote components or server interactions of any kind aside from license key related functions.

An unhandled error has occurred. Reload 🗙