Skip to main content
Version: V3(BETA)

Get Affiliate Referral Data

HTTP request Direct Customer Trading Volume and Capital Analytics

  • GET /api/v3/rebate/affiliate/getChannelUserTradeAndAsset

Weight(IP): 20, Weight(UID): 20

Request parameters

ParameterParameter typeRequired?Description
uidLongNoInvited User UID
startTimeLongNoStart timestamp in UTC (milliseconds)
endTimeLongNoEnd timestamp in UTC (milliseconds)
pageIntegerNoPage number (starting from 1, default 1)
pageSizeIntegerNoPage size (default 100)
  • End time must be later than the start time.
  • The query window cannot exceed 90 consecutive days.
  • The start time must be within the most recent 365 days; by default the system queries the last 90 days.

Request example

curl "https://api-spot.weex.com/api/v3/rebate/affiliate/getChannelUserTradeAndAsset" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "Content-Type: application/json"

Response parameters

Field NameTypeDescription
uidStringInvited User UID
depositAmountStringDeposit Amount
withdrawalAmountStringWithdrawal Amount
spotTradingAmountStringSpot Trading Volume
futuresTradingAmountStringFutures Trading Volume
commissionStringCommission
recordsArrayAggregated records
pagesIntegerTotal pages
pageSizeIntegerPage size
totalLongTotal records

Response example

{
"pages": 1,
"pageSize": 100,
"total": 98,
"records": [
{
"uid": "3066862172",
"depositAmount": "0",
"withdrawalAmount": "0",
"spotTradingAmount": "0",
"futuresTradingAmount": "0",
"commission": "0"
}
]
}