Market API
Auto-generated from
openapi-snapshot.json. Do not edit by hand — changes are overwritten byscripts/docs/generate_api_reference.py.
2 endpoints in this group.
GET /api/market/intel
Get Intel
Query stored external_intel rows with optional filters.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
ticker | query | — | optional | Filter by ticker symbol |
event_types | query | — | optional | Comma-separated event types |
days | query | integer | optional | Look-back window in days |
min_sentiment | query | — | optional | |
limit | query | integer | optional |
Responses
| Code | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
GET /api/market/overview
Market Overview
Return the freshly ingested external_intel rows. Ingestion itself runs
in the background via portfolio_scheduler._ingest_external_intel —
this endpoint only reads from the DB so the page renders in ~50ms
instead of blocking on 5 scraper HTTP round-trips (~7s).
Returns: { “data”: [ {source, ticker, event_type, value, sentiment_score, headline, url, as_of_date, fetched_at}, … ] }
Responses
| Code | Description |
|---|---|
200 | Successful Response |