Data APIs
List trades for an instrument
Returns paginated trades for a specific instrument, ordered by timestamp descending.
GET
Returns paginated trades for a specific instrument, ordered by timestamp descending.
instrument_bytes*stringInstrument identifier in hex format (0x prefix optional)
page?numberPage number, 1-based. Defaults to 1.
Range
1 <= valuelimit?numberItems per page. Defaults to 25, max 100.
Range
1 <= value <= 100Paginated trades for an instrument
application/json- response
Paginated trades for an instrument
items*array<>total*numberTotal number of trades
page*numberCurrent page, 1-based
limit*numberItems per page
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
}