Leverage (l=), by exchange
In an Autoview command, l= asks for a leverage and lt= asks for a margin type, cross or isolated:
b=buy q=50% l=10 lt=isolatedWhat happens next depends on the connection. Some send the leverage to the exchange before the order. Some only use it to work out how big a percentage order should be. Many never read it, and the order goes out at whatever leverage your exchange account already has. This page lists each one. It comes from the Autoview integrations code that runs on our servers today. We read the code; we did not send these orders live for this guide.
Exchanges where Autoview sets the leverage
- Binance USD-M and COIN-M futures. Autoview sets the symbol's leverage to your
l=before the order. A percentage size is multiplied by it. - Bitfinex. Your
l=goes on the order itself, on futures markets only. It must be a whole number from 1 to 100, or the order is refused. On spot and margin pairs it is not used. - Bitget futures. Autoview sets the leverage before the order, for the side you are opening in hedge mode. A percentage size uses it too.
- BitMEX. Autoview sets the leverage before the order.
l=0means cross margin, and the size is worked out as if at 100x. - Bybit. Autoview sets the leverage before the order.
l=0means cross margin at the market's maximum leverage. Withoutl=no leverage is set, and a percentage size uses the market's minimum leverage. - Kraken spot. Your
l=goes on the order. Ab=buyline withl=becomes a margin order. Ab=longorb=shortline withoutl=is refused. - KuCoin futures. Every order carries a leverage: your
l=, or 1 if you leave it out. A percentage size is multiplied by it. - OKX. Autoview sets the leverage before a plain order, isolated by default, or cross at the instrument's maximum with
l=0. Withoutl=, the order uses your account's current leverage and is sized at it.
When the leverage change fails
On Binance futures, Bitget futures, BitMEX, Bybit and OKX, a failed leverage change is only logged as a leverage warning. The order is still sent, at the leverage the exchange already had. If your position is bigger or smaller than you expected, look for that warning in your log.
Two OKX details
- Autoview only sends a leverage change when your
l=differs from the last value it set, and it starts by assuming 1. Sol=1is never sent. If your OKX account sits at 5x, anl=1line trades at 5x. - On a line with
sl=,tp=,ts=,px=oroco=, OKX gets an algo order, and that order is sent before any leverage is set. Set the leverage with a plain order first, or on OKX itself.
BitMEX keeps the same kind of memory, starting at 1, so l=1 is not sent there either until you have used another value.
Exchanges where l= only sizes the order
On Alpaca, OANDA and TradeStation, l= multiplies the balance Autoview uses for a percentage size. Nothing about leverage is sent. With q=50% l=2, the order is about the size of your whole balance, and the broker decides whether your account can carry it.
Exchanges that ignore l=
These connections never read l= on a new order. Set the leverage on the exchange itself:
- Capital.com, Charles Schwab, Coinbase Advanced, Crypto.com, Deribit, Gemini, Kraken Futures and Tradovate
- Hyperliquid (orders use the leverage set on your Hyperliquid account)
- Binance US and Bitget spot
- Gate.io futures. Here
l=is read only onc=position, to pick which positions to close.
Binance spot, Gate.io spot and KuCoin spot do not read l= either; they read lt=, below. HTX and the copy-trading connections were not checked for this page.
lt=, cross or isolated
- Binance USD-M and COIN-M futures.
lt=crossorlt=isolatedsets the symbol's margin type before the order. Any other value is refused. - Bitget futures. Every order says isolated unless the line has
lt=cross. - Bybit.
lt=crossasks for cross margin when the leverage is set, the same asl=0. - KuCoin futures and KuCoin spot.
lt=isolatedorlt=crossis sent as the order's margin mode. - Binance spot and Gate.io spot. On a margin line (
b=longorb=short),lt=isolatedtrades from the isolated margin account and anything else from cross margin. For what a margin line does on each spot exchange, and how to borrow, see spot margin trading by exchange. - Hyperliquid.
lt=crossonly changes which balance Autoview reads to size the order.collateral=1changes it too; see collateral balance by exchange.
Test it once before you rely on it
Add d=1 to see how Autoview reads your line without sending it. Then place one small order on a test account and check the leverage and margin type the exchange shows on the position. For sizing in the quote currency, see currency sizing by exchange; for protecting a leveraged position, see risk management best practices.