Full Stack IBKR API (3/4): Web-Based Scanner

Full Stack IBKR API (3/4): Web-Based Scanner

More

Descriptions:

Part Time Larry continues his Full Stack Interactive Brokers API series with part three, dedicated to integrating a web-based market scanner into the existing FastAPI and JavaScript application. Building on the real-time charting infrastructure from earlier episodes, the tutorial walks through creating a new `scanner.py` router module that connects to IBKR’s built-in scanning engine and exposes it through a clean REST endpoint.

Viewers learn how to accept POST requests carrying scan parameters โ€” scan code, minimum price, minimum volume, and market cap โ€” dynamically apply those filters to an Interactive Brokers scanner subscription, retrieve matching contracts, and attach Finviz chart thumbnails to each result. The modular FastAPI router pattern keeps scanning logic fully separated from the existing charting code, and the video shows exactly how to register the new router in `main.py` so all endpoints become immediately available.

On the frontend, a new `scanner.html` template provides a dropdown of IBKR scan codes alongside filter controls, letting users run custom scans and click through to live minute-by-minute charts for any matching stock. The series ties together a broader arc of work โ€” from backtesting with backtrader to live order placement to a full browser UI โ€” and all source code is published on hackingthemarkets.com.


๐Ÿ“บ Source: Part Time Larry ยท Published December 05, 2025
๐Ÿท๏ธ Format: Hands On Build