GET /users/{address}/portfolio
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/myriad/users/{address}/portfolioCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeAggregated positions per market/outcome for one wallet.
Also accepts `min_shares` (default 0.1), `network_id`, `status` (ongoing/lost/won/claimed/sold/voided/all), `market_slug`, `market_id` and `token_address`; forwarded verbatim.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
address | path | str | required | EVM wallet address. example: 0x2d49Cf1bd94e20a78315A6c4beCc1f3a3DA233CE |
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 |
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/portfolio?page=1&limit=5&trading_model=all"