Skip to Content
Scalar
Data APIs

List trades for an instrument

Returns paginated trades for a specific instrument, ordered by timestamp descending.

GET
/instruments/{instrument_bytes}/trades

Returns paginated trades for a specific instrument, ordered by timestamp descending.

Path Parameters

instrument_bytes*string

Instrument identifier in hex format (0x prefix optional)

Query Parameters

page?number

Page number, 1-based. Defaults to 1.

Range1 <= value
limit?number

Items per page. Defaults to 25, max 100.

Range1 <= value <= 100

Response Body

Paginated trades for an instrument

application/json
  1. response

Paginated trades for an instrument

items*array<>
total*number

Total number of trades

page*number

Current page, 1-based

limit*number

Items per page

Example Request
curl -X GET 'https://data.scalar.market/instruments/string/trades'
Example Response
{
  "items": [
    {
      "instrument": "string",
      "tx_hash": "string",
      "timestamp": 0,
      "side": "bid",
      "price": "string",
      "quantity": "string"
    }
  ],
  "total": 0,
  "page": 0,
  "limit": 0
}