Referrals

Get per-code performance for a referrer

Changed on

Redemptions and traded volume per referral code. Not paginated: an affiliate is capped at a handful of codes, so the whole set fits one response.

get/api/v1/referrals/code-performance

Request

Query parameters

referrer_accountstring required

The referrer's wallet address (not a subaccount address)

daysinteger

Trailing UTC days the volume columns cover. Defaults to 30, clamped to 90.

Response

Per-code redemption and volume stats

earnings_usdnumber double required

Everything this code brought in: the L1 commission of the people who used it, plus the L2 override their own referrals generated. Credited to the code the sub-affiliate arrived through, so the codes sum to the affiliate's whole commission with nothing stranded outside every row.

maker_volume_usdnumber double required
referral_codestring required
taker_volume_usdnumber double required
unique_usersinteger required

Distinct wallets that redeemed this code, all-time

users_who_tradedinteger required

How many of those traded inside the window

Changes