Skip to main content

Trade history

Return the caller's recent trade executions for a trading pair, optionally filtered by time range, count, order ID, or client order ID.

Request Parameters​

NameTypeRequiredDescription
symbolStringYesTrading pair
startTimeLongNoOnly include trades at or after this Unix timestamp in milliseconds
endTimeLongNoOnly include trades at or before this Unix timestamp in milliseconds
countIntegerNoMaximum number of trades to return, defaults to 10
clOrderIdStringNoClient-supplied order ID to filter by
orderIdStringNoOrder ID to filter by
isMatchSymbolBooleanNoIf true, match trades by base/quote currency rather than the exact symbol string, to also cover alias symbols for the same pair

Response Content​

NameTypeDescription
serialIdLongMonotonic sequence identifier for this trade record.
tradeIdStringUnique trade identifier.
orderIdStringIdentifier of the order this trade was executed against.
clOrderIdStringClient-supplied order identifier of the originating order.
symbolStringTrading pair, formatted as BASE-QUOTE (e.g. BTC-USDT).
baseStringBase currency of the trading pair.
quoteStringQuote currency of the trading pair.
orderSideStringOrder side: BUY or SELL.
orderTypeIntegerNumeric order-type code of the originating order (limit, market, peg, TWAP).
triggerTypeIntegerNumeric trigger order-type code (stop-loss, take-profit, stop-loss-limit, or take-profit-limit). Only meaningful when the originating order was a trigger order.
triggerPriceDoubleTrigger price of the originating order. Only meaningful when the originating order was a trigger order.
priceDoubleExecution price of this trade.
sizeDoubleOriginal order size of the originating order.
filledSizeDoubleAmount filled by this trade, in base currency.
feeCurrencyStringCurrency in which the trading fee was charged.
feeAmountDoubleTrading fee amount charged for this trade, in feeCurrency.
timestampLongTrade execution timestamp in Unix epoch milliseconds.
example
GEThttps://api.btse.com/spot/api/v4/trade/trade_history

Response (default)

[
{
"serialId": 375599088,
"tradeId": "de1a79b8-f408-4e05-b8b7-7ed3c4e86542",
"orderId": "6c72d906-cb8f-469c-8ab0-b97bc8dff9c2",
"clOrderId": null,
"symbol": "BTC-USD",
"base": "BTC",
"quote": "USD",
"orderSide": "BUY",
"orderType": 77,
"triggerType": 0,
"triggerPrice": 0,
"price": 64235.97008,
"size": 1.9,
"filledSize": 0.00002,
"feeCurrency": "BTC",
"feeAmount": 1e-8,
"timestamp": 1784890959551
},
{
"serialId": 375599086,
"tradeId": "7ed825de-1903-4020-b74f-e04cdce835b9",
"orderId": "1ec3cc46-928a-4cbe-8683-852bc5de7f9f",
"clOrderId": null,
"symbol": "BTC-USD",
"base": "BTC",
"quote": "USD",
"orderSide": "BUY",
"orderType": 77,
"triggerType": 0,
"triggerPrice": 0,
"price": 64234.684332,
"size": 1.9,
"filledSize": 0.00002,
"feeCurrency": "BTC",
"feeAmount": 1e-8,
"timestamp": 1784890649859
},
{
"serialId": 375599084,
"tradeId": "68ec4220-4e9b-4d7a-a0c6-560b46f7605a",
"orderId": "ca099453-6553-4eae-b696-26f59c50c3b2",
"clOrderId": null,
"symbol": "BTC-USD",
"base": "BTC",
"quote": "USD",
"orderSide": "BUY",
"orderType": 77,
"triggerType": 0,
"triggerPrice": 0,
"price": 64234.684332,
"size": 1.9,
"filledSize": 0.00002,
"feeCurrency": "BTC",
"feeAmount": 1e-8,
"timestamp": 1784890619788
}
]