Skip to main content

Get trade history

Returns the caller's historical fills, with optional filters (symbol, time range, cursor, order IDs, client order ID) and pagination.

Request Parameters​

NameTypeRequiredDescription
symbolStringNoTrading symbol filter (e.g., BTC-PERP). Optional; when omitted, fills across all symbols are returned.
startTimeLongNoReturn only fills executed at or after this Unix timestamp in milliseconds.
endTimeLongNoReturn only fills executed before this Unix timestamp in milliseconds. Must be greater than startTime.
beforeSerialIdLongNoPagination cursor: return fills with serial id less than this value.
afterSerialIdLongNoPagination cursor: return fills with serial id greater than this value.
orderIdsString[]NoRestrict results to fills belonging to these order IDs.
clOrderIdStringNoRestrict results to fills belonging to this client-assigned order ID.
countIntegerNoMaximum number of fills per page.
pageIntegerNoPage number (1-based).

Response Content​

NameTypeDescription
tradeIdStringUnique fill (trade) identifier.
orderIdStringOrder identifier this fill belongs to.
clOrderIdStringClient-assigned order identifier this fill belongs to.
positionIdStringPosition identifier this fill contributed to.
orderSideStringTrade side: BUY or SELL.
typeIntegerNumeric order type code of the order that produced this fill.
orderDetailTypeStringDetailed classification of the fill (e.g., regular trade, liquidation, funding). β€” TWAP Β· PARTIAL_LIQUIDATION Β· FORCED_MARKET_BUY Β· FORCED_MARKET_SELL
priceDoubleOrder price originally submitted by the user.
sizeLongOriginal order size, in contracts.
avgFilledPriceDoubleExecution price of this fill.
filledSizeLongFilled quantity of this fill, in contracts.
triggerPriceDoubleTrigger price for stop/trigger orders; 0 when not applicable.
contractSizeDoubleContract multiplier for the symbol at the time of the fill.
baseStringBase currency of the trading symbol.
quoteStringQuote currency of the trading symbol.
symbolStringTrading symbol.
walletStringWallet name associated with the fill.
feeCurrencyStringCurrency the fee was charged in.
feeAmountDoubleFee amount charged for this fill.
realizedPnlDoubleRealized profit or loss from this fill, in the quote currency.
totalDoubleTotal notional value of this fill (price * filled size * contract size).
serialIdIntegerMonotonically increasing serial id used for cursor-based pagination.
timestampLongFill execution time, Unix timestamp in milliseconds.
example
GEThttps://api.btse.com/futures/api/v3/trade/trade_history

Response (default)

[
{
"tradeId": "1ad38104-6248-4a45-bc56-5fa9bf7f3868",
"orderId": "8ad94105-8cce-4e01-86b8-2d0fb403db66",
"clOrderId": "",
"positionId": "BTC-PERP-USDT",
"orderSide": "BUY",
"type": 77,
"orderDetailType": null,
"price": 0,
"size": 1,
"avgFilledPrice": 60010,
"filledSize": 1,
"triggerPrice": 0,
"contractSize": 0.00001,
"base": "BTC",
"quote": "USDT",
"symbol": "BTC-PERP",
"wallet": "BTC-PERP Isolated Wallet",
"feeCurrency": "USDT",
"feeAmount": 0.00012002,
"realizedPnl": 0,
"total": -0.00012002,
"serialId": 375598162,
"timestamp": 1784882344446
}
]