Events & Markets
List markets
Search and page through a venue's markets.
GET/venues/{venue}/marketsself-hosted · no auth
Self-hosted. Served by synpath serve on your own machine or host, which must be running. Nothing on this page runs on Synpath's servers.
Two requests per page whatever the catalog size. sort is volume, liquidity or newest; Polymarket sorts at the venue, Kalshi and Polymarket US sort the page after reading it.
With status=settled or all, Kalshi continues past its live catalog into markets it has archived (settled before its historical cutoff), in the same cursor.
Path parameters
| Name | Type | Description |
|---|---|---|
venue | string | Venue id: kalshi, polymarket or polymarket_us. |
Query parameters
| Name | Type | Description |
|---|---|---|
query | string | Text filter. Server-side on every venue, ranked by relevance. |
limit | integerdefault 100 | Rows per page, up to 100. |
cursor | string | Opaque cursor from a previous next_cursor. There is no offset: the set changes between calls. |
status | stringdefault open | unopened, open, closed or settled. Polymarket cannot filter by settled. |
sort | string | volume, liquidity or newest. |
Response
A page of markets.
import synpath
venue = synpath.exchange("polymarket")
page = venue.fetch_markets(query="bitcoin", limit=10, sort="volume")
for market in page:
print(market.id, market.title, market.yes.quote.ask)200
{
"data": [
{
"id": "kalshi:KXELONMARS-99",
"title": "Will Elon Musk visit Mars before Aug 1, 2099?",
"...": "a full Market"
}
],
"next_cursor": "eyJjIjoiQ0RJIiwibyI6NX0",
"count": 1
}
