GET /markets/{id}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/myriad/markets/{id}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeOne market by slug, or by numeric id with network_id.
A numeric path segment is chain-scoped AND trading-model-scoped: the same numeric id exists in the AMM and order-book sets. The client requires `network_id` plus an explicit `trading_model=amm|ob`; `all` is rejected as ambiguous because the provider resolves it to the AMM row. A slug needs neither.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
id | path | str | required | Market slug, or a numeric on-chain market id when `network_id` is supplied. example: will-microstrategy-hold-over-1m-btc-before-2027 |
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 |
trading_model | query | stramm | ob | all | optional | Trading model to include. Lists are AMM-only unless `ob` or `all` is passed. default: ammexample: all |
Response
type: object
data key: topHolders
pagination: none
sample: {
"id": "int",
"networkId": "int",
"slug": "str",
"title": "str",
"shortName": "null",
"ctaName": "null",
"description": "str",
"publishedAt": "str",
"expiresAt": "str",
"resolvesAt": "null",
"fees": "object",
"state": "str",
"voided": "bool",
"resolvedOutcomeId": "int",
"topics": "array[2]",
"tags": "array[0]",
"resolutionSource": "str",
"resolutionTitle": "str
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/will-microstrategy-hold-over-1m-btc-before-2027?network_id=56&trading_model=all"