跳到主要内容

TradeHistoryResp

tradeIdstring

唯一的成交(交易)标识符。

orderIdstring

此成交所属的订单标识符。

clOrderIdstring

此成交所属的客户端分配订单标识符。

positionIdstring

此成交所贡献的仓位标识符。

orderSidestring

成交方向:BUY 或 SELL。

可选值: [BUY, SELL]

typeint32

产生此成交的订单的数字订单类型代码。

orderDetailTypestring

成交的详细分类(例如普通交易、强平、资金费)。

可选值: [TWAP, PARTIAL_LIQUIDATION, FORCED_MARKET_BUY, FORCED_MARKET_SELL]

pricedouble

用户最初提交的订单价格。

sizeint64

原始订单数量(合约张数)。

avgFilledPricedouble

此成交的执行价格。

filledSizeint64

此成交的成交数量(合约张数)。

triggerPricedouble

止损/触发订单的触发价格;不适用时为 0。

contractSizedouble

成交时该交易对的合约乘数。

basestring

交易对的基础币种。

quotestring

交易对的计价币种。

symbolstring

交易对。

walletstring

与此成交关联的钱包名称。

feeCurrencystring

收取手续费所用的币种。

feeAmountdouble

此成交收取的手续费金额。

realizedPnldouble

此成交实现的盈亏,以计价币种计。

totaldouble

此成交的名义总价值(价格 * 成交数量 * 合约乘数)。

serialIdint32

用于基于游标分页的单调递增序列 ID。

timestampint64

成交执行时间,Unix 时间戳(毫秒)。

TradeHistoryResp
{
"tradeId": "string",
"orderId": "string",
"clOrderId": "string",
"positionId": "string",
"orderSide": "BUY",
"type": 0,
"orderDetailType": "TWAP",
"price": 0,
"size": 0,
"avgFilledPrice": 0,
"filledSize": 0,
"triggerPrice": 0,
"contractSize": 0,
"base": "string",
"quote": "string",
"symbol": "string",
"wallet": "string",
"feeCurrency": "string",
"feeAmount": 0,
"realizedPnl": 0,
"total": 0,
"serialId": 0,
"timestamp": 0
}