Referrals
Referral links attribute a wallet permanently on first connection — the first referrer always sticks.
Referral links & attribution
Share the exchange root URL with ?r=0x… (?ref= and ?referrer= query parameters are also supported). The app stores the referrer address locally and submits POST /account/referrer when the visitor connects their wallet. If that wallet already has a referrer recorded, the original referrer is preserved and the response returns newly_set: false.
Tracked volume & fees
On every subsequent fill or close executed by a referred trader, the referrer’s lifetime totals increment:
- Weighted volume: Both
referred_taker_volumeandreferred_maker_volumeuse the same formula as fee volume:shares × p × (1 − p). - Taker fees: When the referred trader acts as taker,
referred_taker_feesincreases by the fill’s taker fee. Maker fills add to maker volume without adding taker fees.