跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt

Use this file to discover all available pages before exploring further.

查询交易记录 (KEYED)

适用于API代理商查询一定时间范围内的邀请用户合约交易记录

请求URL

GET https://cloud-api.wooxpro.com/contract/private/affiliate/trade-list

请求限制

参见 速率限制详细

请求参数

请求
curl https://cloud-api.wooxpro.com/contract/private/affiliate/trade-list?user_id=123456&type=1&page=1&size=10
字段类型是否必填描述
user_idLong查询用户ID
typeInt查询类型
-1=U本位
-2=币本位
pageInt第几页
sizeInt每页条数
start_timeLong查询开始时间戳(精确到秒)
end_timeLong查询结束时间戳(精确到秒)

响应详情

响应
{
  "total": 60,
  "size": 10,
  "page": 1,
  "list": [{
    "leverage": 20.000000000000000000,
    "symbol": "BTCUSDT",
    "create_time": 1689933471000,
    "open_type": 2,
    "fee": 0.57162048,
    "deal_price": 29771.900000000000000000,
    "realised_profit": 0,
    "way": 1,
    "deal_vol": 32.000000000000000000,
    "select_copy_trade": 1,
    "user_type": 1,
    "user_id": 10048829,
    "category": 2
  }]
}
字段类型描述
user_idLong用户ID
user_typeInt用户类型:
-1=直客
-2=间接
create_timeLong创建时间
symbolstring交易对
leverageInt杠杠倍率
select_copy_tradeInt类型:
-1=跟单和
-2=非跟单
open_typeInt仓位类型:
-1=逐仓
-2=全仓
wayInt开仓方向:
-1=开多
-2=平空
-3=平多
-4=开空
categoryInt委托类型:
-1=限价委托
-2=市价委托
deal_priceDecimal成交均价
deal_volDecimal成交量
feeDecimal手续费
realised_profitDecimal已实现盈亏