Wallet transfers (w=, y=) by exchange
An Autoview alert can do more than place orders. On some exchanges it can move a coin from one wallet to another, for example from spot into futures before a trade, or back to spot after one. Two keys do it: w= names the coin and y= names the direction. The words y= accepts are different on every exchange, and so is what a q=50% is half of.
This page comes from the Autoview integrations code that runs on our servers today. We read the code; we did not send these transfers live for this guide.
How a transfer line works
e=binance w=USDT y=futures q=50 d=1- w= is the coin. It is read in capitals, so
w=usdtandw=USDTare the same. A comma list such asw=USDT,BTCmoves each coin with the sameq=. - y= is the direction. It is read in lower case. Leave it out and Autoview uses
y=balance, which most exchanges reject with "Wallet Type not found". - q= is the amount. A plain number is that many coins. A percent is taken of a balance only where the tables below say so.
- A w= line is only a transfer. Autoview checks for
w=before it looks att=, so the same line never places an order. Ac=cancel or close is checked first, soc=plusw=closes and moves nothing. Put the transfer on its own line. - d=1 works. With
d=1Autoview writes the transfer it would make to your log and sends nothing.
Exchanges not on this page have no transfer command in Autoview. A w= line there is refused as an unsupported feature. The HTX connection has transfer code written but switched off, so it refuses too.
Binance spot (e=binance)
| y= | Moves | A q= percent is taken of |
|---|---|---|
futures | Spot to USD-M futures | Your spot balance of the coin |
delivery | Spot to COIN-M delivery | Your spot balance of the coin |
margin | Spot to cross margin | Your spot balance of the coin |
isolated | Spot to the isolated margin account of s= | Your spot balance of the coin |
spot | Cross margin back to spot | Your cross margin balance |
spot-isolated | Isolated margin of s= back to spot | Your isolated margin balance |
spot-futures, spot-delivery | USD-M futures or COIN-M delivery back to spot | Nothing. Use a plain amount. |
borrow, repay | Take out or repay a cross margin loan | What Binance reports you can borrow or move |
On spot-futures and spot-delivery, Autoview reads no balance, so q=50% is sent as 0.5 of the coin, not half of your futures wallet. The Binance command reference has more examples.
Binance Futures and Binance Delivery
On these connections, a transfer back to spot does not work. y=spot on e=binancefutures always ends in "Spot Futures transferring error.", and on e=binancedelivery in "Spot Delivery transferring error.". Send the transfer from the spot connection instead, with e=binance y=spot-futures or y=spot-delivery.
Binance Futures has one more use for w=. With y=balance, which is also the default, w= holds an amount, not a coin, and Autoview adds that much margin to the s= position through Binance's position margin call. A negative amount removes margin. In hedge mode, b=buy or b=long picks the long side and anything else the short side.
e=binancefutures s=BTCUSDT b=long w=25 d=1Bitfinex (e=bitfinex)
| y= | Moves | A q= percent is taken of |
|---|---|---|
margin | Exchange wallet to margin wallet | The coin's available balance in the exchange wallet |
spot | Margin wallet back to the exchange wallet | The coin's available balance in the margin wallet |
Bitfinex takes one coin per line. A list in w= is refused before anything is sent.
Bitget (e=bitget)
On Bitget, y= is the name of the wallet: usdt_futures, usdc_futures, coin_futures, crossed_margin, isolated_margin, p2p, and on a Unified Trading Account also uta. A bare name moves funds from spot into that wallet. Put spot- in front to move them back, for example y=spot-usdt_futures. isolated_margin also uses the s= pair. On a Unified Trading Account, spot means Bitget's funding wallet.
- A percent is taken of your spot balance when moving out of spot. Moving back into spot reads no balance, except from
uta, where it uses the amount Bitget reports you can move. - If one coin in a list fails, the error goes to your log and the next coin still runs.
- With
aid=set to a sub-account UID, the line moves funds from the main account to that sub-account.y=mainpulls them back, as a plain amount. Use the main account's API key.
e=bitget w=USDT y=usdt_futures q=100 d=1Bybit (e=bybit, e=bybitspot)
| y= | Moves | A q= percent is taken of |
|---|---|---|
UNIFIED, CONTRACT, FUND | Spot to that account | The coin's free balance in your Bybit trading account |
SPOT-CONTRACT | Contract account back to spot | Nothing. Use a plain amount. |
SPOT-UNIFIED, SPOT-FUND | Unified or Funding account back to spot | Nothing, and a percent becomes 0, so no transfer is sent |
Case does not matter here. As on Bitget, a failed coin is logged and the rest of the list carries on. The Bybit command reference covers the rest of the Bybit keys.
On Bybit copy trading (e=bybitcopy), y=COPY moves funds from the contract account to the copy trading account and y=CONTRACT moves them back. Both take a percent of the account's available balance. Any other y= is refused.
Gate.io spot (e=gate)
y=futures, delivery, margin, cross_margin and options move funds out of spot. Put spot- in front to move them back, such as y=spot-futures. y=margin also uses the s= pair. Gate.io spot refuses a percent: write a plain amount.
Gate.io futures (e=gatefutures)
The futures connection names directions from the futures side, which reverses one of them:
y=spot,margin,cross_margin,deliveryandoptionsmove funds out of futures.y=spot-futuresmoves funds from spot into futures. On the spot connection the same words move them the other way.- Any other
y=, including the defaultbalance, does nothing and reports no error. - Autoview reads no balance here, so a percent is not a share of anything. Use a plain amount.
The Gate.io command reference lists the Gate.io trading keys.
Kraken (e=kraken)
y=futuresmoves the coin from your spot wallet to your futures wallet. A percent is taken of your spot balance. Autoview matchesw=against the asset names in Kraken's balance list without translating them.y=stakeandy=unstakeput a coin into Kraken Earn or take it out. Autoview picks an instant strategy first, then the one with the lowest fee, and skips a coin with no strategy it can use. A percent is refused. The API key needs Kraken's "Earn Funds" permission.
Kraken Futures (e=krakenfutures)
y=spotsends the coin from your futures cash or flex wallet back toward spot through Kraken Futures' withdrawal call. A percent is taken of that wallet's balance.y=singlemoves the coin from your futures cash account into the single-collateral margin account of thes=contract. Withouts=, the line is refused.
KuCoin spot (e=kucoin)
| y= | Moves |
|---|---|
main, margin, isolated, contract | Trading account to that account |
trade-main, trade-margin, trade-isolated | That account back to the trading account |
spot | Margin back to the trading account, the same as trade-margin |
borrow, repay | Take out or repay a margin loan |
A percent is taken of the amount KuCoin reports you can move from the source account. For borrow it is a share of what the margin market offers, and for repay a share of what you owe. If KuCoin reports nothing to move for a coin, Autoview stops there and moves nothing more on that line.
Test it before you rely on it
Keep d=1 on the line and send it. The log shows the coin, the amount and both wallets, and nothing moves. The log guide shows where to look. To use the funds you moved, see spot margin trading by exchange and collateral balance by exchange.