Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.generalmarket.io/llms.txt

Use this file to discover all available pages before exploring further.

Batches & Markets

What is there to bet on, and who is already betting. Two endpoints, two answers.

List Batches

GET /vision/batches Returns all active batches with live player counts and TVL. Ordered by batch ID descending, capped at 100. The arena, enumerated.
curl https://generalmarket.io/api/vision/batches

Response Fields

FieldTypeDescription
idnumberUnique batch identifier
creatorstringEthereum address of the batch creator
market_idsstring[]List of market identifiers included in the batch
market_countnumberNumber of markets in the batch
tick_durationnumberSeconds between tick resolutions
player_countnumberCurrent number of active players (from live in-memory state)
tvlstringTotal value locked across all players, in wei
pausedbooleanWhether the batch is currently paused by oracle consensus

List Markets

GET /vision/markets Returns the oracle-curated whitelist of supported markets. The menu of measurable things.
curl https://generalmarket.io/api/vision/markets

Response Fields

FieldTypeDescription
market_idstringUnique market identifier (e.g., BTC-USD)
symbolstringShort ticker symbol (e.g., BTC)
display_namestringHuman-readable market name (e.g., Bitcoin / USD)