Skip to main content

TradeHistoryResp

tradeIdstring

Unique fill (trade) identifier.

orderIdstring

Order identifier this fill belongs to.

clOrderIdstring

Client-assigned order identifier this fill belongs to.

positionIdstring

Position identifier this fill contributed to.

orderSidestring

Trade side: BUY or SELL.

Possible values: [BUY, SELL]

typeint32

Numeric order type code of the order that produced this fill.

orderDetailTypestring

Detailed classification of the fill (e.g., regular trade, liquidation, funding).

Possible values: [TWAP, PARTIAL_LIQUIDATION, FORCED_MARKET_BUY, FORCED_MARKET_SELL]

pricedouble

Order price originally submitted by the user.

sizeint64

Original order size, in contracts.

avgFilledPricedouble

Execution price of this fill.

filledSizeint64

Filled quantity of this fill, in contracts.

triggerPricedouble

Trigger price for stop/trigger orders; 0 when not applicable.

contractSizedouble

Contract multiplier for the symbol at the time of the fill.

basestring

Base currency of the trading symbol.

quotestring

Quote currency of the trading symbol.

symbolstring

Trading symbol.

walletstring

Wallet name associated with the fill.

feeCurrencystring

Currency the fee was charged in.

feeAmountdouble

Fee amount charged for this fill.

realizedPnldouble

Realized profit or loss from this fill, in the quote currency.

totaldouble

Total notional value of this fill (price * filled size * contract size).

serialIdint32

Monotonically increasing serial id used for cursor-based pagination.

timestampint64

Fill execution time, Unix timestamp in milliseconds.

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
}