Get Insider Trades (SEC Form 4)
get_edgar_insider_tradesLatest insider transactions for a US company, parsed from SEC Form 4 filings, with a buy-vs-sell summary and an optional buy/sell filter. Each trade lists the reporting insider, their relationship, and non-derivative (common stock) transactions.
Insider BUYS (open-market purchases, code P) are a stronger sentiment signal than sells (code S), which happen for many reasons (diversification, taxes). Use tx_type to monitor one side.
Args:
company (required): ticker / company name / CIK
limit: number of most-recent Form 4 filings to parse, 1-25 (default 10)
tx_type: 'all' (default) | 'buy' (code P purchases only) | 'sell' (code S sales only)
Returns: {company:{cik, name, ticker}, tx_type, summary:{buys:{count,shares,value}, sells:{count,shares,value}}, count, trades:[{filedAt, owner, relationship, url, transactions:[{date, code, shares, price_per_share, acquired_or_disposed, shares_owned_after}]}], notes}. summary totals cover the whole fetched window regardless of the filter; value = shares x price where a price is reported. Transaction codes: P=open-market purchase, S=open-market sale, M=option exercise, F=shares withheld for tax, A=award/grant, G=gift. acquired_or_disposed: A=acquired, D=disposed.
Examples:
"insider BUYING at Apple" -> {company:'AAPL', tx_type:'buy'}
"recent insider SELLING at Nvidia" -> {company:'NVDA', tx_type:'sell'}
"all TSLA insider activity, more history" -> {company:'TSLA', limit:25}
Use when: monitoring insider buy/sell activity (officers, directors, 10% owners) for a US-listed company. Larger 'limit' widens the time window. Don't use for: institutional holdings (use get_edgar_13f), Korean companies, or derivative-only detail (option grids are skipped).
Errors: unknown company -> use search_edgar_company; a filter with no matching transactions returns count 0 (not an error); unparseable Form 4 XMLs are skipped and counted in notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of most-recent Form 4 filings to parse (default 10) | |
| company | Yes | US company: ticker (e.g. 'AAPL', 'BRK-B' or 'BRK.B'), company name, or CIK number | |
| tx_type | No | 'all' (default), 'buy' = open-market purchases (code P) only, 'sell' = sales (code S) only | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| notes | No | ||
| trades | Yes | ||
| company | Yes | ||
| summary | No | ||
| tx_type | No |