Welcome to the new WEEX API documentation. Looking for the previous version?Switch to the legacy docs
WEEX

Get Affiliate Referral Data

HTTP request Direct Customer Trading Volume and Capital Analytics

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

Weight(IP): 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
PowerShellCode
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
JSONCode
{ "pages": 1, "pageSize": 100, "total": 98, "records": [ { "uid": "3066862172", "depositAmount": "0", "withdrawalAmount": "0", "spotTradingAmount": "0", "futuresTradingAmount": "0", "commission": "0" } ] }