跳到主要内容

成交明细

描述

订阅成交明细信息

请求示例
{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "fill",
"instId": "default"
}
]
}

请求参数

参数名参数类型是否必须描述
opString操作, subscribe unsubscribe
argsList<Object>请求订阅的频道列表
> channelString频道名
> instTypeString产品类型
> instIdString产品名或default
订阅返回示例
{
"event": "subscribe",
"arg": {
"instType": "SPOT",
"channel": "fill",
"instId": "default"
}
}

返回参数

返回字段参数类型字段说明
eventString事件
argObject订阅的频道
> channelString频道名
> instTypeString产品类型
> instIdString产品名或default
codeString错误码,错误时才会返回
msgString错误消息
推送返回示例
{
"action":"snapshot",
"arg":{
"instType":"SPOT",
"channel":"fill",
"instId":"default"
},
"data":[
{
"orderId":"111",
"tradeId":"111",
"symbol":"BTCUSDT",
"orderType":"limit",
"side":"buy",
"priceAvg":"42740.41",
"size":"0.0006",
"amount":"25.644246",
"tradeScope":"marker",
"feeDetail":[
{
"feeCoin":"USDT",
"deduction":"no",
"totalDeductionFee":"0",
"totalFee":"0.01538655"
}
],
"cTime":"1703580202094",
"uTime":"1703580202094"
},
{
"orderId":"111",
"tradeId":"222",
"symbol":"BTCUSDT",
"orderType":"limit",
"side":"buy",
"priceAvg":"42741.46",
"size":"0.0006",
"amount":"25.644876",
"tradeScope":"marker",
"feeDetail":[
{
"feeCoin":"USDT",
"deduction":"no",
"totalDeductionFee":"0",
"totalFee":"0.01538693"
}
],
"cTime":"1703580202094",
"uTime":"1703580202094"
}
],
"ts":1703580202416
}

推送数据参数

返回字段参数类型字段说明
actionString推送动作, 'snapshot'
argObject订阅成功的频道
> channelString频道名
> instTypeString产品类型
SPOT
> instIdString产品ID
dataList<Object>订阅的数据
> orderIdString定单ID
> tradeIdString成交ID
> symbolString产品名称
> sideString买卖方向
buy
sell
> orderTypeString定单类型
limit 限价单
market 市价单
> priceAvgString成交均价
> sizeString成交数量
> amountString成交总额
> tradeScopeString交易者标识
taker 吃单方
maker 挂单方
> feeDetailList<Object>手续费明细
  >> deductionString是否折扣
  >> totalDeductionFeeString折扣手续费
  >> totalFeeString总手续费
  >> feeCoinString手续费币种
> cTimeString创建时间,Unix时间戳的毫秒数格式,如 1597026383085
> uTimeString更新时间,Unix时间戳的毫秒数格式,如 1597026383085

您的阅读体验如何?