latestOpenAPI 3.0.02026-08-15161451.7 KB

6ffb6a8fd74a

Affiliate

Get affiliate statistics

Retrieve aggregated swap statistics for an affiliate by partnerCode. Returns total swaps, volume, and fees earned. Supports optional date range filtering.

get/v1/affiliate/stats

Query parameters

partnerCodestring required
startDatestring date-time
endDatestring date-time

Response

Affiliate statistics

totalSwapsnumber required
totalVolumeUsdstring required
totalFeesEarnedUsdstring required

Example response

{
  "totalSwaps": 42,
  "totalVolumeUsd": "12345.67",
  "totalFeesEarnedUsd": "44.44"
}