public/margin_watch
Changed onCalculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount's manager's params. Set is_delayed_liquidation to get them under the subaccount's delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.
Request
- Base URLhttps://api.derive.xyz/v3
- Authnone declared
Request body
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.
true when the subaccount has a delayed-liquidation override.
true when the margins above use the delayed-liquidation override.
Below zero the subaccount is flagged for liquidation.
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.
Unix seconds at which margin and MtM were computed.
Changes
- info
added the media type
application/jsonfor the response with the status
- info