Skip to main content
GET
/
affiliates
Get affiliate fee totals
curl --request GET \
  --url https://data-api.kuest.com/affiliates
[
  {
    "exchange": "0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e",
    "receiver": "0x52a7a01677fb46117adc584fc331bfd54cf685c0",
    "tokenId": "0",
    "totalAmount": "32500000",
    "updatedAt": 1735561201,
    "totalVolume": "32500000"
  }
]
GET https://data-api.kuest.com/affiliates returns aggregated fee totals (in USDC base units at fee charge time) for an address you treat as an affiliate. The response format and filters match GET /referrers; only the meaning of the receiver changes.

Filters and pagination

  • address is required and should be the receiver wallet.
  • exchange scopes to a single CTFExchange/NegRisk address (lowercased).
  • tokenId is optional. If provided, totals include only that token’s fees (converted to USDC at charge time). If omitted, totals aggregate all tokens and the response tokenId is 0.
  • limit defaults to 100 (max 500); offset defaults to 0.

Amount semantics

  • totalAmount is returned as raw USDC base units at fee charge time; divide by 1e6 for UI display.
  • totalVolume is returned as raw USDC base units for executed trades that generated fees; divide by 1e6 for UI display.
  • Empty results return [].

Query Parameters

address
string
required

Receiver address to aggregate affiliate fees for.

Example:

"0x52a7a01677fb46117adc584fc331bfd54cf685c0"

exchange
string

CTFExchange/NegRisk address to scope results to (lowercased).

Example:

"0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e"

tokenId
string

Optional token id to scope results. If provided, totals include only that token’s fees converted to USDC at charge time. If omitted, totals aggregate all tokens and tokenId in the response is 0.

Example:

"0"

limit
integer
default:100

Maximum number of rows to return (max 500).

Required range: 0 <= x <= 500
offset
integer
default:0

Number of rows to skip.

Required range: x >= 0

Response

Affiliate totals returned.

exchange
string

0x-prefixed EVM address (40 hex chars).

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

receiver
string

0x-prefixed EVM address (40 hex chars).

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

tokenId
string
totalAmount
string
updatedAt
integer<int64>
totalVolume
string