GET /users/{address}/markets

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/myriad/users/{address}/marketsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

A wallet's activity aggregated by market, including on-chain OB balances.

Parameters

nameintypedescription
addresspathstrrequiredEVM wallet address.
example: 0x2d49Cf1bd94e20a78315A6c4beCc1f3a3DA233CE
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
min_sharesqueryfloatoptionalMinimum shares per outcome for the position to be listed.
default: 0.1
example: 0.1
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
keywordquerystroptionalFull-text search across title, description and outcome titles.
example: bitcoin
topicsquerystroptionalComma-separated topics (see /topics).
example: Crypto

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/users/0x2d49Cf1bd94e20a78315A6c4beCc1f3a3DA233CE/markets?page=1&limit=5&trading_model=all&min_shares=0.1&network_id=56&state=open&keyword=bitcoin&topics=Crypto"