Analyze Insider Trading Patterns
Corporate insiders (officers, directors, and 10% shareholders) must report their trades within two business days on SEC Form 4. This tutorial shows how to retrieve insider transaction data, filter by transaction type, and identify patterns.Prerequisites
- An Omni Datastream API key (set as
OMNI_DATASTREAM_API_KEY) - Basic familiarity with REST APIs
- (Optional) Python 3.8+ or Node.js 18+ for SDK examples
Step 1 — Get insider transactions for a company
Use/v1/insiders to retrieve recent insider transactions for a given ticker.
curl
Python
JavaScript
Expected output
Step 2 — Filter for insider purchases
Insider purchases are often considered more meaningful than sales (insiders sell for many reasons, but they buy for only one). Filter by transaction type.curl
Python
JavaScript
Step 3 — Scan for cluster buying across a sector
When multiple insiders at different companies in the same sector start buying, it can signal sector-wide conviction. Scan a list of tickers for recent insider purchases.Python
Expected output
Step 4 — Track an individual insider over time
Focus on a single insider to understand their trading history.curl
Python
Next steps
- Combine with 13F data: Cross-reference insider trades with institutional holdings changes for a complete ownership picture.
- Set up alerts: Use the Filing Monitor tutorial to get notified when new Form 4 filings are published.
- Build scoring models: Weight insider purchases by position (CEO buys often carry more signal than director buys) and transaction size relative to holdings.