Skip to Content
Scalar
Data APIs

List account positions

Returns paginated positions with average price, realized profit and current instrument data.

GET
/account/{user}/positions

Returns paginated positions with average price, realized profit and current instrument data.

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 positions

application/json
  1. response

Paginated account positions

items*array<>
total*number

Total number of positions

page*number

Current page, 1-based

limit*number

Items per page

Example Request
curl -X GET 'https://data.scalar.market/account/string/positions'
Example Response
{
  "items": [
    {
      "instrument": "string",
      "quantity": "string",
      "average_price": "string",
      "realized_profit": "string",
      "last_updated": 0,
      "instrument_data": {
        "instrument": "string",
        "trades_count": 0,
        "open_interest": "string",
        "total_volume": "string",
        "last_traded_price": "string",
        "resolution_ts": 0,
        "score": 0,
        "payout_ratio": 0,
        "is_admin_set": true
      }
    }
  ],
  "total": 0,
  "page": 0,
  "limit": 0
}