跳到主要内容
版本:V1

获取成交明细

HTTP请求 获取成交的历史明细

  • POST /api/spot/v1/trade/fills

限速规则:20次/1s

请求参数

参数名参数类型是否必须描述
symbolString币对,具体见:/products
orderIdString订单id
afterString传入 orderId,获取在该 orderId 之前的数据(desc)
beforeString传入 orderId,获取在该 orderId 之后的数据(asc)
limitInteger返回结果的数量,默认100,最大 500

请求示例

curl -X POST "https://contract-openapi.weex.com/api/spot/v1/trade/fills" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol": "BTCUSDT_SPBL"}'

返回参数

字段名字段说明
accountId账户id
symbol币对名称
orderId订单id
fillId成交id
orderType委托类型
side委托方向
fillPrice成交价格
fillQuantity成交数量
fillTotalAmount成交总额
cTime创建时间 (时间戳秒)
feeCcy手续费币种
fees手续费

返回示例

{
"code": "",
"message": "",
"data": [{
"accountId": "1001",
"symbol": "btcusdt_spbl",
"orderId": "100021",
"fillId": "102211",
"orderType": "limit",
"side": "buy",
"fillPrice": "38293.12",
"fillQuantity": "1",
"fillTotalAmount": "38293.12",
"cTime": "1622697148",
"feeCcy": "btc",
"fees": "0.0001"
}]
}