Skip to Content
Scalar
Data APIs

Get account statistics

Returns aggregate account statistics: join date, activity, position, trade, settlement and instrument counts, net profit and total volume.

GET
/account/{user}

Returns aggregate account statistics: join date, activity, position, trade, settlement and instrument counts, net profit and total volume.

Path Parameters

user*string

User address in hex format (0x prefix optional)

Response Body

Aggregate account statistics

application/json
  1. response

Aggregate account statistics

user*string

User address in hex format

joined_at*number

Unix timestamp (seconds) the user was first seen

activities_count*number

Number of account activities

positions_count*number

Number of positions

trades_count*number

Number of trades

settlements_count*number

Number of settlements

user_instruments_count*number

Number of instruments traded

net_profit*string

Net realized profit in micro-dollars, as a string

total_volume*string

Total traded volume in micro-dollars, as a string

Example Request
curl -X GET 'https://data.scalar.market/account/string'
Example Response
{
  "user": "string",
  "joined_at": 0,
  "activities_count": 0,
  "positions_count": 0,
  "trades_count": 0,
  "settlements_count": 0,
  "user_instruments_count": 0,
  "net_profit": "string",
  "total_volume": "string"
}