Quant: EDGAR insider data client

t-712·WorkTask·
·
·
Created1 month ago·Updated1 week ago·pipeline runs →

Description

Edit

REST client for SEC EDGAR insider transaction data.

Files: Omni/Fund/Data/Edgar.hs

Deliverables:

  • getInsiderTransactions :: Text -> IO (Either ApiError [InsiderTx]) — fetch Form 4 data
  • InsiderTx type (date, filer, role, tx type, shares, price, total value)
  • TxType enum (Purchase, Sale, OptionExercise, Gift)
  • CIK lookup from ticker (SEC company search API)
  • Local cache in /var/fund/quant/edgar/ — JSONL per ticker
  • Rate limiting (SEC requires max 10 req/sec, User-Agent with email)

No API key needed. Just requires User-Agent: CompanyName email@domain header.

SEC EDGAR full-text search API: https://efts.sec.gov/LATEST/search-index?q=... Insider transactions: https://data.sec.gov/api/xbrl/companyfacts/CIK{cik}.json

This is Phase 1 data infrastructure. The LLM interpretation of insider clusters comes in Phase 3 (Agent.hs).

Timeline (6)

💬[human]1 month ago

Part of epic t-709 (Quant Phase 1)

🔄[human]Open → Review1 month ago
💬[human]1 week ago

Ava verified: implementation present in live tree (file/feature confirmed via inspection). Moving to Verified.

🔄[human]Review → Verified1 week ago