public/get_last_trades_by_currency_and_time
Retrieves the latest trades that have occurred for instruments in a specific currency within a specified time range. Returns trade details including price, amount, direction, timestamp, and trade ID.
Results can be filtered by instrument kind. Use the count parameter to limit the number of trades returned, and sorting to control the order (ascending or descending by trade ID).
Note: This endpoint only returns trades from the last 24 hours. Requests with
start_timestampolder than 24 hours will return an empty result without an error.
Scope: trade:read
Documentation Index
Fetch the complete documentation index at: https://docs.deribit.com/llms.txt
Use this file to discover all available pages before exploring further.
Query Parameters
The currency symbol
Currency, i.e "BTC", "ETH", "USDC"
BTC, ETH, USDC, USDT, EURR Instrument kind, "combo" for any combo or "any" for all. If not provided instruments of all kinds are considered
Instrument kind: "future", "option", "spot", "future_combo", "option_combo", "combo" for any combo or "any" for all
future, option, spot, future_combo, option_combo, combo, any 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)
1536569522277
The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required The timestamp (milliseconds since the Unix epoch)
1536569522277
Number of requested items, default - 10, maximum - 1000
1 <= x <= 1000Direction of results sorting (default value means no sorting, results will be returned in order in which they left the database)
asc, desc, default