Account

Set margin configuration

Changed on

Set margin configuration for an account and market

post/account/margin/{market}

Request

Path parameters

marketstring required

Market Name - example: BTC-USD-PERP

Request body

leverageinteger required

Leverage value (1 up to market's maximum leverage)

margin_typestring required

Margin type: CROSS (ISOLATED is not supported)

on_behalf_of_accountstring

Existing isolated account whose leverage to set, at ISOLATED margin

Example request

{
  "leverage": 10,
  "margin_type": "CROSS",
  "on_behalf_of_account": "0x1234567890abcdef"
}

Response

OK

accountstring

Account ID

leverageinteger

Leverage value

margin_typestring

Margin type (CROSS/ISOLATED)

marketstring

Market symbol

Changes

    • warning

      added the new SUBACCOUNT_HAS_FUNDS enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_INVALID_ADDRESS enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_INVALID_CHAIN enum value to the //// response property for the response status

    • warning

      added the new ADDRESS_BOOK_PARADEX_ACCOUNT enum value to the //// response property for the response status

    • warning

      added the new CONTRACT_WALLET_NOT_SUPPORTED enum value to the //// response property for the response status