Collateral balance (collateral=1), by exchange
When a command sizes with a percent, such as q=50%, Autoview takes that percent of a balance it reads from the exchange. collateral=1 asks for a different balance: the margin your whole account can put up, instead of the free amount of one coin. Autoview accepts collateral=1 on every exchange, but only three read it. Everywhere else the line is sized exactly as it would be without it.
This page 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.
Where it works
| Exchange | Without collateral=1 | With collateral=1 |
|---|---|---|
| Binance Futures | The margin asset's own free amount | The account's pooled available balance, only in Multi-Assets Mode |
| Bybit | The coin's wallet balance minus margin held for positions and orders | The account-wide available balance and equity, in US dollars |
| Hyperliquid | The perp margin summary, or spot USDC on Unified accounts | Hyperliquid's own buying power for that coin and side |
| Everyone else | The usual balance | Not read, same as without it |
collateral=1 only switches on with the value 1. collateral=true is read as off.
Exchange by exchange
- Binance Futures. Autoview checks whether your account is in Multi-Assets Mode. If it is, every margin asset is sized from the account's pooled available balance and total margin balance, because in that mode Binance shares margin across assets. If it is not,
collateral=1changes nothing: each asset is still sized from its own free amount. The Binance Futures testnet behaves the same way. - Bybit. Without
collateral=1, a percent is a share of the coin's wallet balance after margin already held for positions and orders. With it, Autoview uses Bybit's account-wide available balance and total equity, both in US dollars. That suits contracts. On a spot sell it does not: the percent is taken of the dollar figure and sent as a coin amount, which can be far more than you hold. Leavecollateral=1off Bybit spot sells. - Hyperliquid. On perps,
collateral=1asks Hyperliquid how much you can trade on that coin, on that side, after borrowing room and open orders. If Hyperliquid returns nothing, Autoview falls back to the usual balance. Portfolio Margin accounts already get this figure by default. On spot,collateral=1swaps in the same buying power number for the free amount; our code notes that this spot case has not been checked against a live account.
How it reads a percent
collateral=1 picks the balance; y=equity picks which half of it. Without y=equity, a percent is a share of the available amount. With it, a percent is a share of the total, including what is tied up. So on Bybit, q=25% collateral=1 y=equity is a quarter of the account's total equity. On Bybit the leverage in l= then multiplies that amount. See leverage by exchange for what l= does on each venue.
e=bybit s=BTCUSDT b=buy q=25% l=5 collateral=1 d=1That is a buy of the BTCUSDT perpetual sized from a quarter of your account-wide available balance at 5x, as a d=1 test.
Test it once before you rely on it
Add d=1 and send the line twice, once with collateral=1 and once without. The log shows the quantity Autoview would send each time. If the two match on Binance Futures, your account is probably not in Multi-Assets Mode. If they match on another exchange, that exchange does not read collateral=. For the rest of the sizing options, see currency sizing by exchange.