Skip to content
API reference /Account & trading

Update leverage and margin settings

Set both ETH leverage values to 5 in the sample request.

Endpoint & access

POST
/api/v1/usdt/change_setting

Whitelist Required

Request whitelist approval for your API key. This endpoint is available only after approval.

JSON body

Content-Type: application/json

Field Data type Required Meaning
instrument_id string YES Contract abbreviation, such as BTC or ETH.
leverage_long integer NO Positive leverage for long positions.
leverage_short integer NO Positive leverage for short positions.
margin_mode string NO fixed for isolated margin or crossed for cross margin.
position_mode string NO Accepts merged or separated. The trade service currently ignores this field.

Supply at least one setting. Use leverage_long, leverage_short, or margin_mode to make an effective update.

This endpoint requires a signed request. Send the request parameters in a JSON body.

Returned fields

Field Data type Meaning
data null The trade service returns null on success.

Example input

{
  "instrument_id": "ETH",
  "leverage_long": 5,
  "leverage_short": 5
}

Example result

{
  "code": 200,
  "message": null,
  "data": null
}