Retrieves the latest user trades that have occurred for a specific instrument within a specified time range. Returns trade details including price, amount, direction, timestamp, trade ID, and order ID.
Use the count parameter to limit the number of trades returned, and sorting to control the order (ascending or descending by trade ID). Use historical to retrieve historical trade data. This method is useful for analyzing trading activity over specific time periods.
๐ Related Article: Accessing Historical Trades and Orders Using API
Scope: trade:read
Instrument name Unique instrument identifier
"BTC-PERPETUAL"
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 Determines whether historical trade and order records should be retrieved.
false (default): Returns recent records: orders for 30 min, trades for 24h.true: Fetches historical records, available after a short delay due to indexing. Recent data is not included.๐ Related Article: Accessing Historical Trades and Orders Using API