GET /markets
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/myriad/marketsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePaginated markets with trading-model, network, state, tag and keyword filters.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
page | query | int | optional | One-based page number. default: 1example: 1 |
limit | query | int | optional | Rows per page (server maximum 100). default: 20example: 5 |
trading_model | query | stramm | ob | all | optional | Trading model to include. Lists are AMM-only unless `ob` or `all` is passed. default: ammexample: all |
sort | query | strvolume | volume_24h | volume_notional | volume_notional_24h | liquidity | expires_at | published_at | in_play_starts_at | featured | optional | Listing sort key. default: volumeexample: volume_24h |
order | query | strasc | desc | optional | Sort direction. default: descexample: desc |
network_id | query | str | optional | Network id (56 BNB Chain, 42220 Celo, 2741 Abstract, 59144 Linea); list routes also accept a comma-separated set. example: 56 |
state | query | stropen | closed | resolved | optional | Market lifecycle state. example: open |
topics | query | str | optional | Comma-separated topics (see /topics). example: Crypto |
tags | query | str | optional | Tag slugs. Repeat the parameter to AND groups, comma-separate inside a value to OR. example: crypto |
keyword | query | str | optional | Full-text search across title, description and outcome titles. example: bitcoin |
event_id | query | str | optional | Filter markets to one event UUID. example: 95fd4b8f-20f6-4eef-9dcd-5f506635ce6b |
ids | query | str | optional | Comma-separated on-chain market ids. example: 1237,827 |
in_play | query | bool | optional | Boolean filter; accepts true/false/1/0. default: Falseexample: True |
moneyline | query | bool | optional | Boolean filter; accepts true/false/1/0. default: Falseexample: True |
group_by_event | query | bool | optional | Collapse sibling markets of one event into a single event row. default: Falseexample: False |
Response
type: object
pagination: none
sample: {
"data": "array[0]",
"pagination": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/myriad/markets?page=1&limit=5&trading_model=all&sort=volume_24h&order=desc&network_id=56&state=open&topics=Crypto&tags=crypto&keyword=bitcoin&event_id=95fd4b8f-20f6-4eef-9dcd-5f506635ce6b&ids=1237%2C827&in_play=True&moneyline=True&group_by_event=False"