Skip to main content
This section describes the REST endpoints and corresponding TypeScript SDK methods for retrieving user account information, balances, positions, executions, and account statistics.

REST Endpoints

TypeScript SDK

Retrieve the authenticated user’s root account:
Retrieve all sub-accounts:
Retrieve account balances:
Retrieve positions:
Retrieve execution history:
Retrieve account statistics:

Balance fields

GET /api/v1/account/balance and the account_balance WebSocket topic return one entry per account. Amounts are USDC decimal strings unless noted. The fields that reflect multi-asset collateral: Each collateral[] entry:

Execution fee fields

Executions (REST and the execution WebSocket topic) carry how each fill’s fee was paid:
These fields are raw integer units, unlike the decimal strings elsewhere. fee, quote_equivalent and quote_credited are in the quote’s units: divide by 10^decimals of asset 1. Each leg’s amount is in its own asset’s units: divide by that asset’s decimals. Both come from GET /api/v1/collateral/assets.

Timestamp Fields

REST resources use Unix timestamps in milliseconds. Common timestamp fields include:
  • created_time
  • updated_time
  • timestamp_ms
Some legacy responses may still include the timestamp field for backward compatibility.