Metadata-Version: 2.1
Name: secfeed
Version: 0.1.4
Summary: Python SDK for the SecFeed SEC EDGAR API
License: MIT
Project-URL: Homepage, https://secfeedapi.com
Project-URL: Documentation, https://secfeedapi.com/docs/
Keywords: sec,edgar,filings,xbrl,13f,insider trading,api
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# secfeed (Python)

Client for the [SecFeed](https://secfeedapi.com) SEC EDGAR API. No dependencies, Python 3.8+.

```bash
pip install secfeed
```

```python
from secfeed import Client

sf = Client("sf_...")  # free key at https://secfeedapi.com
sf.filings('ticker:AAPL AND formType:"10-K"', size=5)
sf.insider_trades(ticker="NVDA", code="P")
sf.financial_statements("AAPL")
sf.events_8k(item="5.02")
for filing in sf.stream(form_types=["8-K"]):
    print(filing["companyName"], filing["formType"])
```

Federal contracts use the same key: SAM.gov opportunities and entity registrations, USAspending awards, awards by ticker,
and the recompete radar (contracts ending in the next 24 months; Developer plans and up).

```python
sf.sam_opportunities(naics="5415", setAside="SBA")
sf.sam_entity(cage="02GJ5")
sf.company_federal_awards("LMT")
sf.recompetes(naics="5415", setAside="SBA", hasNotice="true")
```

Company data beyond the filings uses the same key: financial ratios, point-in-time fundamentals, revenue by segment,
customer concentration, a fundamentals screener, delistings and ticker history, WARN layoff notices, SEC comment
letters, LEI lookup, UK Companies House, Treasury yields and economic data, private offerings, money market funds
and fund flows.

```python
sf.financial_ratios("AAPL")
sf.point_in_time("MSFT", concept="Revenues")
sf.segments("AAPL", type="product")
sf.suppliers("WMT")
sf.screener("Revenue>1e9,GrossProfit/Revenue>0.6", period="CY2025", size=3)
sf.delistings(ticker="SIVB")
sf.company_warn_notices("INTC")
sf.comment_letters(topic="non-GAAP", size=2)
sf.lei(ticker="AAPL")
sf.uk_companies(name="rolls-royce")
sf.yield_curve(size=5)
sf.private_offerings(source="form-d", minAmount=5000000, size=3)
sf.money_market_funds(category="government", size=5)
```

Every endpoint in the [API docs](https://secfeedapi.com/docs/) has a method. Errors raise `SecFeedError`.

SecFeed is an independent service and is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. Filing data comes from SEC EDGAR, which is public.

### Ownership, trading and alerts (0.1.4)

```python
sf.ownership_changes(ticker="AAPL", period="2026Q2", size=20)      # 13F managers that bought, sold, opened, closed
sf.class_period_holders(ticker="AAPL", start_date="2024-01-15", end_date="2024-12-15")
sf.trading_plans(ticker="NVDA", action="adopted")                  # 10b5-1 plans (Item 408)
sf.fails_to_deliver(symbol="GME", startDate="2026-10-01", endDate="2026-10-31")
sf.watch("insider_buy", "AAPL", minValue=100000)                   # email alert; sf.watchlist(), sf.unwatch(id), sf.watch_events()
```
