API · US Congress trades
GET /uscongresstrades/stats/volume
Trade counts and value over time, per day, week or month.
| Request | GET /v1/uscongresstrades/stats/volume |
| Operation id | uscongresstrades.stats.volume |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Trade counts and value over time, per day, week or month.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
days | integer | no | Window in days, 1 to 120. Defaults to 30. |
period | "day" | "week" | "month" | no | One of day, week, month. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Buckets, oldest first. | CongressVolume |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No member, ticker or trade matches. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | US Congress trades is temporarily unavailable. Retryable; nothing was charged. | Error |
CongressVolume fields
| Field | Type | Description |
|---|---|---|
days | integer | |
period | string | |
buckets | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.