Menu

Build a politician stock tracker in Python
📰

Build a politician stock tracker in Python

DEV Community: api·Mukul Dutt·9 days ago
#iulnSsg7
#devtoapi#devto#dev#trades#trade
Long article (3655 words) — no AI summary yet.
Reading 0:00
15s threshold

By Mukul Dutt, founder of Edgrapi (an API for SEC and US government data). Last updated November 2026.

Who in Congress traded NVDA last month, and did any NVDA insiders buy?

You can answer both with free government data and about 150 lines of Python. A politician stock tracker needs two sources, House periodic transaction reports (PTRs) from the House Clerk for members of Congress and SEC Form 4 filings from EDGAR for corporate insiders. Both are free, neither needs a key, and both have parsing traps that quietly drop trades if you don't handle them.

I built this pipeline for my own product, so this is the version that survived real data.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.