Changes the margin model for the authenticated account or a specified subaccount. Margin models determine how margin requirements are calculated (e.g., Standard Margin vs. Portfolio Margin).
Changing the margin model may affect margin requirements, available funds, and trading capabilities. Use the dry_run parameter to preview the impact of the change before applying it. A dry run runs the same checks as the actual change.
Returns an error if a currency would be left with negative equity, an unfunded long option position, or insufficient funds.
📖 Related Article: Margin types and usage
Scope: account:read_write
Request
- Base URLhttps://test.deribit.com/api/v2
- URLhttps://test.deribit.com/api/v2/private/change_margin_model
- Authnone declared
Query parameters
Id of a (sub)account - by default current user id is used
Margin model
If true request returns the result without switching the margining model. Default: false
Response
Success response
Changes
No recorded changes to this operation across all 11 revisions of this API.