Skip to main content
POST
Set margin mode for a market

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
asset
string
required

Asset identifier: base symbol (e.g. "ETH") or full pair (e.g. "ETHUSDC").

Minimum string length: 1
Example:

"ETH"

exchange
enum<string>
required

Supported perpetual exchange

Available options:
aster,
binance,
bybit,
extended,
gate,
hyperliquid,
lighter,
mexc,
ondo,
robinhood
marginMode
enum<string>
required

Margin mode to set: cross uses shared account balance, isolated locks a fixed margin per position

Available options:
cross,
isolated

Response