Skip to main content
GET
Get user collateral totals

Path Parameters

user_pubkey
string
required

User pubkey (base58 encoded)

Response

200 - application/json

Collateral totals

Lifetime deposit and withdrawal totals for a user across all subaccounts and collateral assets. Spot events are valued at the index price of their pricing market at event time; quote events are 1:1. Transfers, swaps and liquidations are excluded, matching the rows classified as deposit / withdrawal in the mixed collateral history.

assets
object[]
required

Per-asset breakdown; only assets with at least one deposit or withdrawal appear.

totalDeposited
number<double>
required

Sum of assets[].deposited.value.

totalWithdrawn
number<double>
required

Sum of assets[].withdrawn.value.