Skip to main content

Set the leverage setting for a market

PUT 

/leveragepreferences

Sets a contract's margin mode, either "isolated" or "cross" margin.

When specifying a max leverage, the contract's margin mode will be isolated.

Calling this endpoint can result in the following error codes:

  • 87: Contract does not exist
  • 88: Contract not a multi-collateral futures contract
  • 41: Would cause liquidation

Request

Query Parameters

    symbol stringrequired

    Symbol for the leverage preference.

    maxLeverage number

    Max leverage to set.

    When present, the symbol's margin mode will be set to "isolated". When missing, the symbol's margin mode will be set to "cross".

Responses

OK

Schema
    oneOf
    result stringrequired

    Possible values: [success]

    serverTime date-timerequired

    Server time in Coordinated Universal Time (UTC)

Loading...