Skip to main content

GET /markets

List markets (paginated). Pulls from the Goldsky subgraph; falls back to direct chain reads if GOLDSKY_GRAPHQL_URL is unset. Response:

GET /markets/top

Top markets by total volume. Subgraph-only.

GET /markets/:address

Fetch a single market with all enrichments — postMetadata (X post details cached locally) and proposalDetails (AI draft persisted by /posts/evaluate).
Returns a Market shape. Selected fields:

GET /markets/:address/holders

Top YES/NO holders by total stake. Subgraph-only; capped at 100 rows.

GET /markets/:address/trades

Recent trades for one market.