Skip to main content
POST
public/margin_watch

Body

application/json
subaccount_id
integer<uint64>
required
Required range: x >= 0
is_delayed_liquidation
boolean
default:false

true returns margins under the subaccount's delayed-liquidation override. Rejected for a subaccount without one.

Response

Success

Result of public/margin_watch: the margin state a liquidation watcher needs, under the subaccount's manager's params, or its delayed-liquidation override when the request asks for it.

collaterals
object[]
required
currency
string[]
required
has_delayed_liquidation
boolean
required

true when the subaccount has a delayed-liquidation override.

initial_margin
string
required
is_delayed_liquidation
boolean
required

true when the margins above use the delayed-liquidation override.

maintenance_margin
string
required

Below zero the subaccount is flagged for liquidation.

margin_type
string
required
positions
object[]
required
risk_universe_id
integer<uint32>
required
Required range: x >= 0
subaccount_id
integer<uint64>
required
Required range: x >= 0
subaccount_value
string
required
valuation_timestamp
integer<int64>
required

Unix seconds at which margin and MtM were computed.

regular_margin_flagged_sec
integer<uint64> | null

Unix seconds at which a subaccount with a delayed-liquidation override was first seen below its manager's maintenance margin. Its grace period before liquidation counts from here. Null otherwise.

Required range: x >= 0