Get account statistics
Returns aggregate account statistics: join date, activity, position, trade, settlement and instrument counts, net profit and total volume.
Returns aggregate account statistics: join date, activity, position, trade, settlement and instrument counts, net profit and total volume.
user*stringUser address in hex format (0x prefix optional)
Aggregate account statistics
application/json- response
Aggregate account statistics
user*stringUser address in hex format
joined_at*numberUnix timestamp (seconds) the user was first seen
activities_count*numberNumber of account activities
positions_count*numberNumber of positions
trades_count*numberNumber of trades
settlements_count*numberNumber of settlements
user_instruments_count*numberNumber of instruments traded
net_profit*stringNet realized profit in micro-dollars, as a string
total_volume*stringTotal traded volume in micro-dollars, as a string
curl -X GET 'https://data.scalar.market/account/string'{
"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"
}Submit a withdrawal POST
Verifies the user's EIP-712 `WithdrawBalance(address signer,uint256 amount,uint128 nonce,uint256 fee)` signature against the configured ScalarProtocol domain before forwarding. The domain uses name `ScalarProtocol`, version `1`, the configured chain ID, and configured protocol address. Rejections include `insufficient_balance` and `duplicate_request`. In-memory duplicate tracking does not provide durable replay protection across service restarts.
List account activities GET
Returns paginated account activities (deposits and withdrawals), ordered by timestamp descending.