Account

Set margin configuration

Set margin configuration for an account and market

post/account/margin/{market}

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 or ISOLATED)

on_behalf_of_accountstring

Specify sub-account ID to set margin for, if not provided, it will be the main account itself

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

Changed in 1 of the 50 revisions of this API.12

  • e0dd7ef9404f12See the full diff
    • added required request body

      request-body-added-required

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog