Descriptions:
The final video in Part Time Larry’s Full Stack Interactive Brokers API series tackles automated trade execution via TradingView strategy webhooks. The tutorial opens with a live demonstration: a TradingView alert fires at a precise timestamp, hits a local FastAPI endpoint, and places a real paper trade in Interactive Brokers — with the fill price logged to a SQLite database within seconds.
The build centers on a new `trades.py` FastAPI router that receives JSON webhook payloads from TradingView, parses the symbol, action (buy/sell), and quantity, constructs a market order object, and submits it through IbAsync — the same library used throughout the series. A lightweight `init_db.py` script handles SQLite initialization on startup using Python’s built-in `sqlite3` module, creating a single `trades` table that stores timestamp, symbol, action, quantity, and fill price. No external database server is required.
The video also covers the trade log frontend — a Jinja2-rendered HTML page that queries the database and displays all logged trades — and walks through configuring TradingView alert webhooks to POST JSON payloads to a local server. Part Time Larry explains how to test the full pipeline with a sample payload before going live. All source code is available on hackingthemarkets.com, and the four-part series now delivers a complete browser-based trading interface with real-time charts, market scanning, and automated order execution.
📺 Source: Part Time Larry · Published December 13, 2025
🏷️ Format: Hands On Build







