Under the Stop Trading on Congressional Knowledge (STOCK) Act of 2012, Members of the United States Congress (Senate and House of Representatives) and senior legislative branch officials must publicly disclose transactions in stocks, bonds, options, and commodities made by themselves, their spouses, or dependent children exceeding $1,000 within 45 days of the trade date via Periodic Transaction Reports (PTR).
The Congress & Political Trading Tracker monitors these financial disclosures, measures disclosure delay metrics, flags late filings violating the 45-day STOCK Act statutory limit, categorizes party affiliations, and matches political trades against the user’s active stock and option portfolio holdings to power proactive smart alerts and instrument-level research.
functions/src/congress-trading.ts)fetchMemberDisclosuresLive, normalizeLiveCongressTrade):
CongressTrade objects, extracting politician name, chamber, party, ticker, transaction type, amount brackets, trade date, disclosure date, owner, and official Clerk source PDF links.getCongressTrades):
symbol, chamber (senate, house), party (democrat, republican, independent), transactionType (purchase, sale, exchange), and minAmount.user/{uid}/instrumentPosition) and marks hasPortfolioOverlap along with heldSymbol.isOverdue: true).refreshCongressTrades):
congress_disclosures).lib/model/congress_trade.dart):
CongressTrade: Structured disclosure model (politician name, chamber, party, district/state, ticker symbol, asset description, transaction type, amount brackets with numerical min/max values, transaction date, disclosure date, owner type, official PTR source URL, filing lag days, and overdue status).CongressTradingSnapshot: Summary container containing trade listings, total disclosed volume estimate, net purchase ratio, top traded symbols, and portfolio overlap count.lib/services/congress_trading_service.dart):
getCongressTrades with client-side caching.lib/services/portfolio_alert_service.dart):
InstrumentPosition) and option contracts (OptionAggregatePosition).PortfolioAlertSeverity.positive (high-conviction buying signal).PortfolioAlertSeverity.warning (major divestment alert).PortfolioAlertSeverity.info.PortfolioAlertTarget.congressionalTrading).lib/model/custom_alert.dart):
AlertType.congress_trading with triggers:
congress_trade_purchase: Triggers when a Member purchases $\ge$ threshold amount.congress_trade_sale: Triggers on sales $\ge$ threshold amount.congress_trade_any: Triggers on any trade $\ge$ threshold amount.lib/widgets/congress_trading_widget.dart):
lib/widgets/congress_trading_dashboard_widget.dart):
search_widget.dart).