GroundsocialDocs

API · US Congress trades

GET /uscongresstrades/stats/buy-sell

Buys against sells over a window, by party or sector.

RequestGET /v1/uscongresstrades/stats/buy-sell
Operation iduscongresstrades.stats.buy_sell
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Buys against sells over a window, by party or sector.

Query parameters

NameTypeRequiredDescription
daysintegernoWindow in days, 1 to 3650. Defaults to 30.
party"democrat" | "republican" | "other"nodemocrat, republican or other. One of democrat, republican, other.
sector"communication-services" | "consumer-discretionary" | "consumer-staples" | "energy" | "financials" | "health-care" | "industrials" | "information-technology" | "materials" | "real-estate" | "utilities"noOne of communication-services, consumer-discretionary, consumer-staples, energy, financials, health-care, industrials, information-technology, materials, real-estate, utilities.

Responses

StatusMeaningSchema
200The counts.CongressBuySell
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No member, ticker or trade matches.Error
429Too many requests. Wait for Retry-After seconds.Error
503US Congress trades is temporarily unavailable. Retryable; nothing was charged.Error

CongressBuySell fields

FieldTypeDescription
daysinteger
partystring | null
sectorstring | null
buysinteger
sellsinteger
rationumber | null

Errors use one shape everywhere; see Errors for every code and what to do.