Politician Trades

Politician Trades Summary

Totals of congressional trades for charts and analytics, grouped by party, member, symbol, month, year, chamber, trade type, asset class, who holds the asset, state, amount range or filing delay. Two groupings at once make a cross table, for example month and party.

Required: group_by. Every filter of /politician-trades also works here (member_id, member_name, asset_class, held_by, state, trade_from, trade_to, filed_from, filed_to, amount_min, amount_max, late_filing, has_symbol, include_other_filers). The answer is {group_by, date_basis, sort, order, total_groups, limit, offset, groups, totals, about}.

get/politician-trades/summary

Request

  • Base URL: https://api.dataporium.io
  • URL: https://api.dataporium.io/politician-trades/summary
  • Auth: API key in query parameter apikey

Query parameters

group_bystring required

One or two of: party, member, symbol, month, year, chamber, trade_type, asset_class, held_by, state, amount_bucket, delay_bucket

date_basisstring

For month and year: trade (trade date, default) or filed (filing date)

symbolstring

Ticker(s), comma-separated

partystring

D, R or I (party on the trade date)

chamberstring

house or senate

trade_typestring

buy, sell or a detailed type

daysinteger

Only trades from the last N days

sortstring

trades, buys, sells, buy_value, sell_value, net_value, members, symbols, last_trade_date, first_trade_date, avg_filing_delay_days, median_filing_delay_days, late_filings or key (default: key for month, year and buckets, otherwise trades)

orderstring

asc or desc

limitinteger

Groups per page, 1 to 1000 (default 100)

offsetinteger

Groups to skip, for paging

Response

Successful response (JSON).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.