Skip to Content
Scalar
Data APIs

List account trades

Returns paginated trades for the account, with side, price, quantity, fee and maker flag.

GET
/account/{user}/trades

Returns paginated trades for the account, with side, price, quantity, fee and maker flag.

Path Parameters

user*string

User address 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 account trades

application/json
  1. response

Paginated account trades

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/account/string/trades'
Example Response
{
  "items": [
    {
      "tx_hash": "string",
      "instrument": "string",
      "side": "bid",
      "price": "string",
      "quantity": "string",
      "fee": "string",
      "is_maker": true,
      "timestamp": 0
    }
  ],
  "total": 0,
  "page": 0,
  "limit": 0
}