x-app-api-key; x-app-id and a user token are not required. The {appId} in the path must
match the key’s app. A read key can access every user in that app. A trade key is rejected
on these routes: it can trade as a signed-in user, and it cannot list users or orders.
First create a server API key. For a signed-in user’s activity
screen or the app leaderboard, follow Portfolio.
AggAdminClient provides methods for users, orders, analytics, and market-resolution holders.
Use admin.request() for the per-user reads below. Manage app members and settings in the
admin dashboard.
Users
Balances, positions, orders
id.
Deposits and withdrawals
amountRaw is an integer string in the token’s decimals.
errorMessage is
the reason a failed or partial withdrawal did not fully deliver, so your server can show it
without the user’s session. Show it, but do not match on the text, since the wording can change.
Analytics and resolution
usersLast7Days, usersLast30Days,
ordersLast7Days, and ordersLast30Days cover the named rolling windows.