Retrieves the latest trades that have occurred for a specific instrument. Returns trade details including price, amount, direction, timestamp, and trade ID.
Results can be filtered by sequence number range or timestamp range. Use the count parameter to limit the number of trades returned, and sorting to control the order (ascending or descending by trade ID).
Note: For spot instruments routed to Coinbase Exchange, this call is not supported. Use Get product trades directly for full trade history.
📖 Related Article: Spot Trading: Deribit and Coinbase-Routed Instruments
Request
- Base URLhttps://test.deribit.com/api/v2
- URLhttps://test.deribit.com/api/v2/public/get_last_trades_by_instrument
- Authnone declared
Query parameters
Unique instrument identifier
Instrument name
Inclusive sequence number of the first trade to return; cannot be combined with start_timestamp.
Inclusive sequence number of the last trade to return; cannot be combined with end_timestamp.
The timestamp (milliseconds since the Unix epoch)
Inclusive earliest timestamp (milliseconds since the Unix epoch); cannot be combined with a start_id or start_seq bound.
The timestamp (milliseconds since the Unix epoch)
Inclusive latest timestamp (milliseconds since the Unix epoch).
Number of requested items, default - 10, maximum - 1000
Result ordering: asc, desc, or the method-specific default.
Response
Success response
Example response
{
"result": {
"trades": [
{
"instrument_name": "BTC-PERPETUAL",
"timestamp": 1517329113791,
"starbase_timestamp": 1536569522277000000,
"block_trade_id": "154",
"block_trade_leg_count": 3
}
]
}
}Changes
- breaking
the response property
///became nullable for the status - info
added the optional property
///to the response with the status
- breaking