GET /v4/affiliates/snapshot
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/dydx/v4/affiliates/snapshotCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeAffiliate leaderboard snapshot with referral codes, volume, and earnings.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
limit | query | int | optional | Maximum affiliates to return. default: 100example: 5 |
Response
type: object
data key: affiliateList
count key: total
pagination: offset
sample: {
"affiliateList": "array[5]",
"currentOffset": "int",
"total": "int"
}
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/dydx/v4/affiliates/snapshot?limit=5"