跳到主要内容

查询成交明细

描述

此接口用于查询合约订单的成交明细。

HTTP请求

GET /v3/trade/order/trades

请求参数

参数是否必填类型描述
sideString成交方向;枚举:BUYSELL
symbolString交易对。常用形式为“基础货币”+“报价货币”
ordIdString订单的订单 ID
clOrdIdString用户自定义订单ID
sTimeString查询开始时间,UNIX时间戳,以毫秒为单位。默认是最近90天
eTimeString查询结束时间,UNIX时间戳,以毫秒为单位。默认是最近90天
fromLongid,查询的起始id,默认从0开始
limitInteger分页页面大小,默认为10,最大为100。
directString枚举:PREV, NEXT;默认是 NEXT

响应参数

参数类型描述
idString分页查询id
symbolString交易对。常用形式为“基础货币”+“报价货币”
clOrdIdString用户自定义订单ID
ordIdString订单id
trdIdString成交id
sideString枚举:BUYSELL
typeString成交类型;枚举:TRADE, LIQUIDATION, ADL, DELIVERY
mgnModeString枚举:ISOLATED, CROSS, CASH
posSideString持仓方向 LONG-多 或 SHORT-空, 单向持仓为BOTH
ordTypeString订单类型;枚举:MARKET, LIMIT, LIMIT_MAKER
roleString成交角色;枚举:MAKER, TAKER
pxString成交价格
qtyString成交数量
cTimeLong撮合成交时间
uTimeLong更新时间,默认为撮合成交时间
feeCcyString手续费币种名称
feeAmtString累计手续费数量
deductCcyString手续费抵扣币种名称
deductAmtString累计手续费抵扣数量
feeRateString手续费率

请求示例:

{
"symbol":"BTC_USDT_PERP"
}

响应示例

{
"code": 200,
"data": [
{
"cTime": "1719973930900",
"clOrdId": "polo331381602863284224",
"deductAmt": "0",
"deductCcy": "",
"feeAmt": "0.00009405",
"feeCcy": "USDT",
"feeRate": "0.0005",
"id": "331381604734197760",
"mgnMode": "CROSS",
"posSide": "BOTH",
"ordType": "MARKET",
"px": "60000",
"qty": "3",
"role": "TAKER",
"side": "SELL",
"symbol": "BTC_USDT_PERP",
"ordId":"356743696043233280",
"trdId": "100000010",
"type": "TRADE",
"uTime": "1719973930924"
},
{
"cTime": "1719973768764",
"clOrdId": "polo331380922769473536",
"deductAmt": "0",
"deductCcy": "",
"feeAmt": "0.00009408",
"feeCcy": "USDT",
"feeRate": "0.0005",
"id": "331380924627804160",
"mgnMode": "CROSS",
"posSide": "BOTH",
"ordType": "LIMIT",
"px": "60000",
"qty": "3",
"role": "TAKER",
"side": "BUY",
"symbol": "BTC_USDT_PERP",
"ordId":"356743696043233289",
"trdId": "100000009",
"type": "TRADE",
"uTime": "1719973768805"
},
{
"cTime": "1719973712703",
"clOrdId": "12345",
"deductAmt": "0",
"deductCcy": "",
"feeAmt": "0.00009408",
"feeCcy": "USDT",
"feeRate": "0.0005",
"id": "331380688039698432",
"mgnMode": "CROSS",
"posSide": "BOTH",
"ordType": "MARKET",
"px": "60000",
"qty": "3",
"role": "TAKER",
"side": "BUY",
"symbol": "BTC_USDT_PERP",
"ordId":"356743696043233288",
"trdId": "100000008",
"type": "TRADE",
"uTime": "1719973712728"
},
{
"cTime": "1719919125209",
"clOrdId": "polo331151680320307200",
"deductAmt": "0",
"deductCcy": "",
"feeAmt": "0.0000282195",
"feeCcy": "USDT",
"feeRate": "0.00015",
"id": "331151731411378176",
"mgnMode": "CROSS",
"posSide": "BOTH",
"ordType": "LIMIT",
"px": "60000",
"qty": "3",
"role": "MAKER",
"side": "SELL",
"symbol": "BTC_USDT_PERP",
"ordId":"356743696043233287",
"trdId": "100000007",
"type": "TRADE",
"uTime": "1719919125228"
},
{
"cTime": "1719916971102",
"clOrdId": "polo331142696133722112",
"deductAmt": "0",
"deductCcy": "",
"feeAmt": "0.00006271",
"feeCcy": "USDT",
"feeRate": "0.0005",
"id": "331142696796676096",
"mgnMode": "CROSS",
"posSide": "BOTH",
"ordType": "MARKET",
"px": "60000",
"qty": "2",
"role": "TAKER",
"side": "BUY",
"symbol": "BTC_USDT_PERP",
"ordId":"356743696043233286",
"trdId": "100000006",
"type": "TRADE",
"uTime": "1719916971125"
},
{
"cTime": "1719912288938",
"clOrdId": "988d6142-8b61-43d2-a689-5acbe4c72979",
"deductAmt": "0",
"deductCcy": "",
"feeAmt": "0.00003135",
"feeCcy": "USDT",
"feeRate": "0.0005",
"id": "331123058117435393",
"mgnMode": "CROSS",
"posSide": "BOTH",
"ordType": "MARKET",
"px": "60000",
"qty": "1",
"role": "TAKER",
"side": "SELL",
"symbol": "BTC_USDT_PERP",
"ordId":"356743696043233285",
"trdId": "100000005",
"type": "TRADE",
"uTime": "1719912289003"
},
{
"cTime": "1719910543693",
"clOrdId": "3701b9a4-8f91-4783-95f3-189bdf516f36",
"deductAmt": "0",
"deductCcy": "",
"feeAmt": "0.00003135",
"feeCcy": "USDT",
"feeRate": "0.0005",
"id": "331115738218094592",
"mgnMode": "CROSS",
"posSide": "BOTH",
"ordType": "MARKET",
"px": "60000",
"qty": "1",
"role": "TAKER",
"side": "SELL",
"symbol": "BTC_USDT_PERP",
"ordId":"356743696043233284",
"trdId": "100000004",
"type": "TRADE",
"uTime": "1719910543804"
}
],
"msg": "Success"
}