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"
}

Changes

No recorded changes to this endpoint across all 4 revisions of this API.