v3

latestOpenAPI 3.0.02026-07-311784111.3 MB
Account Management
Private

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.

📖 Related Article: Margin types and usage

Scope: account:read_write

Try in API console

get/private/change_margin_model

Query parameters

user_idinteger
Example:1

Id of a (sub)account - by default current user id is used

margin_model'cross_pm' | 'cross_sm' | 'segregated_pm' | 'segregated_sm' required

Margin model

dry_runboolean
Example:true

If true request returns the result without switching the margining model. Default: false

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request