Skip to main content
POST
private/get_all_portfolios

Authorizations

X-DeriveWallet
string
header
required

The wallet the request acts for.

X-DeriveTimestamp
string
header
required

The current time in milliseconds, as a decimal string.

X-DeriveSignature
string
header
required

EIP-191 signature of the timestamp, by the wallet or one of its session keys.

Body

application/json
wallet
string
required

20-byte Ethereum address as a 0x-prefixed lowercase hex string.

Required string length: 42
Pattern: ^0x[0-9a-fA-F]{40}$

Response

Success

collaterals
object[]
required
collaterals_initial_margin
string
required
collaterals_maintenance_margin
string
required
collaterals_value
string
required
currency
string[]
required
failed_to_fetch
boolean
required

true if this subaccount's portfolio could not be loaded; such subaccounts are returned as placeholders by get_all_portfolios.

initial_margin
string
required
is_under_liquidation
boolean
required
label
string
required
maintenance_margin
string
required
manager_id
integer<uint32>
required
Required range: x >= 0
margin_type
string
required
mm_credits
string
required

MM credit from universe loss-socialization events: the socialized USDC debit lands on cash in full, and debit × (1 − write_down) is added back to maintenance margin while the 15-minute write-down runs. Events this subaccount has not yet realized contribute their expected credit, with the current subaccount value standing in for the MtM at realization. Zero while under auction — the credit is cleared when liquidation starts.

open_orders
object[]
required
open_orders_margin
string
required

Uses the manager's params, as initial_margin does, even for a subaccount with a delayed-liquidation override. Order checks use the override, so the two can differ. This is rare: an override usually loosens maintenance margin only, and this is an initial-margin figure.

positions
object[]
required
positions_initial_margin
string
required
positions_maintenance_margin
string
required
positions_value
string
required
projected_margin_change
string
required

Change in maintenance_margin a minute past the account's next option expiry, once the options expiring by then settle into cash at today's forward. maintenance_margin + projected_margin_change < 0 signals liquidation right after that expiry. Excludes open orders; "0" for an account without an unexpired option.

risk_universe_id
integer<uint32>
required
Required range: x >= 0
subaccount_id
integer<uint64>
required
Required range: x >= 0
subaccount_value
string
required
vault_deposit_holds
object[]
required