Data APIs
List account positions
Returns paginated positions with average price, realized profit and current instrument data.
GET
Returns paginated positions with average price, realized profit and current instrument data.
user*stringUser address 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 account positions
application/json- response
Paginated account positions
items*array<>total*numberTotal number of positions
page*numberCurrent page, 1-based
limit*numberItems per page
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
}