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 free

Paginated markets with trading-model, network, state, tag and keyword filters.

Parameters

nameintypedescription
pagequeryintoptionalOne-based page number.
default: 1
example: 1
limitqueryintoptionalRows per page (server maximum 100).
default: 20
example: 5
trading_modelquerystr
amm | ob | all
optionalTrading model to include. Lists are AMM-only unless `ob` or `all` is passed.
default: amm
example: all
sortquerystr
volume | volume_24h | volume_notional | volume_notional_24h | liquidity | expires_at | published_at | in_play_starts_at | featured
optionalListing sort key.
default: volume
example: volume_24h
orderquerystr
asc | desc
optionalSort direction.
default: desc
example: desc
network_idquerystroptionalNetwork id (56 BNB Chain, 42220 Celo, 2741 Abstract, 59144 Linea); list routes also accept a comma-separated set.
example: 56
statequerystr
open | closed | resolved
optionalMarket lifecycle state.
example: open
topicsquerystroptionalComma-separated topics (see /topics).
example: Crypto
tagsquerystroptionalTag slugs. Repeat the parameter to AND groups, comma-separate inside a value to OR.
example: crypto
keywordquerystroptionalFull-text search across title, description and outcome titles.
example: bitcoin
event_idquerystroptionalFilter markets to one event UUID.
example: 95fd4b8f-20f6-4eef-9dcd-5f506635ce6b
idsquerystroptionalComma-separated on-chain market ids.
example: 1237,827
in_playquerybooloptionalBoolean filter; accepts true/false/1/0.
default: False
example: True
moneylinequerybooloptionalBoolean filter; accepts true/false/1/0.
default: False
example: True
group_by_eventquerybooloptionalCollapse sibling markets of one event into a single event row.
default: False
example: 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"