8dfbbe9fdddf
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.
Query parameters
Unique instrument identifier
Instrument name
The sequence number of the first trade to be returned
The sequence number of the last trade to be returned
The timestamp (milliseconds since the Unix epoch)
The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest
The timestamp (milliseconds since the Unix epoch)
The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required
Number of requested items, default - 10, maximum - 1000
Direction of results sorting (default value means no sorting, results will be returned in order in which they left the database)
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
}
]
}
}