GET /markets/{id}/referrals
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/myriad/markets/{id}/referralsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeReferral-generating trades for one market.
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 |
page | query | int | optional | One-based page number. default: 1example: 1 |
limit | query | int | optional | Rows per page (server maximum 100). default: 20example: 5 |
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 |
since | query | int | optional | Only actions at or after this UNIX-second timestamp. example: 1794900000 |
until | query | int | optional | Only actions at or before this UNIX-second timestamp. example: 1795000000 |
code | query | str | optional | Only this referral code. example: myriad |
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/will-microstrategy-hold-over-1m-btc-before-2027/referrals?page=1&limit=5&network_id=56&since=1794900000&until=1795000000&code=myriad"