prediction_markets_markets_by_topic
Retrieve top prediction markets by 24-hour volume for a specific topic on Polymarket using its slug identifier. Returns JSON with market details including title, volume, and outcomes.
Instructions
Call after you have a Polymarket topic slug (from the user or
prediction_markets_trending_topics
) and need the top markets under it.
Parameters
topic_slug : str Identifier such as "trump-presidency". limit : int, default 10 Number of markets to return, ranked by 24-hour volume (desc).
Returns
str
JSON array of objects with the schema:
[
{
"title": "Trump to win 2024?",
"volume": 123456.78,
"outcomes": [
{"option": "Yes", "probability": 0.42},
{"option": "No", "probability": 0.58}
]
},
…
]
Parse with json.loads
.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | ||
topic_slug | Yes |