Auto sell/buy

The system provides two mechanisms for automatic handling of balances — auto-sell and auto-buy. Both tools help automate trading operations and minimize manual administrator involvement.

1. Auto-sell

Auto-sell is used when a coin arrives on the balance that is not the base ticker for payouts (for example, not USDT or USDC). In this case the system automatically sells the received coin and buys one of the selected stablecoins.

The functionality is available only for routes where the WhiteBit merchant.

is used.

  • Main settings: Selection of ticker to sell

  • Specify the stablecoin (USDT or USDC) to which all incoming coins will be converted. Disabling auto-sell for currencies

  • Allows excluding certain coins. Auto-sell will not be performed for them. Threshold for creating a limit order If the amount of the incoming transaction exceeds the specified value (for example, 4000 USDT equivalent), the system will create a limit order

  • instead of a market order. Limit order interval (in seconds) Determines how often the limit order will be reposted at a new price from the order book. ⚙️ Internally it is set to use the second price

  • from the order book. Maximum price decrease for the limit order (%)

  • Limits how much the price can be lowered relative to the first placed order. For example: first price 4000 USDT, limit 5% → the price will not fall below 3800. If the market goes below — the auto-sell process will be paused. Transferring deposits to the trading balance After the sale is completed, the received USDT are transferred to thetrading balance

, not to the main balance. 🔐 This increases security: even if an attacker gains access to the API keys, they will not be able to withdraw funds directly.

2. Auto-buy Auto-buy is used in routes where it is necessary to buy a coin for.

auto-payout via WhiteBit

Example: if a route is configured as USDT → ETH, the system will automatically buy ETH for the selected stablecoin. The function is active only if the option

is used.

  • WhiteBit Auto-payout is enabled for the route.

  • Allows excluding certain coins. Auto-sell will not be performed for them. Stablecoin for selling

  • Specify which stablecoin will be used for the purchase (USDT or USDC). If the purchase amount exceeds the set threshold, the system will create a limit order instead of a market order. Maximum price increase (%)Unlike auto-sell (where a decrease is limited), here the

  • price increase is limited. For example: first limit price 4000, limit 1% → maximum price 4040. If the market rises above that, the purchase will stop. 0.1%Trading fee (%)

You must specify the exchange fee for an accurate calculation of the purchase amount. ⚙️ For WhiteBit by default —

, if there are no special partner conditions.

  • For auto-buy the system always reserves a bit more funds than required for the purchase and fee. This is done to protect against small price fluctuations of the coin. How the amount of stablecoin to transfer is formed:

  • Base amount: is determined based on how much is needed to buy the selected coin taking into account the withdrawal fee.

  • Rounding: the system rounds the amount according to the market precision so that the trade can be executed correctly.

  • Volatility reserve: a small buffer (~1%) is added to the base amount to cover minor price and fee fluctuations. Additional reserve for limit orders:if a limit order is created, the system adds another small buffer based on the value of

  • “Maximum price increase for the limit order (%)” , which is set in the admin panel.

Actual usage: part of the reserved funds may not be used during the purchase — the remainder stays on the balance and is not used for auto-buy. Practical examples:The coin was sold for 2110.91666584 USDT, and to buy SOL taking into account the fee and 1% reserve required 2127.8556 USDT. The actual amount for the purchase would have been less — 2100.3943 USDT , since the market at that moment was not volatile. The balance was

2110 USDT

  • → auto-buy did not occur. Recommendations:.

  • Keep an additional reserve on the balance:

50–100 USDT

This helps avoid situations where auto-buy fails due to insufficient funds. ⚠️ If there are not enough funds on the balance to buy the coin for the payout, the bot will wait for replenishment via auto-sell of the coin and temporarily suspend the operation. This is relevant only for fully automatic routes when both the WhiteBit Merchant and WhiteBit Auto-payout are connected for the exchange route. Important point:If there are insufficient funds on the balance at the moment of auto-buy, the bot

will not wait for manual replenishment

. It waits for the auto-sell to complete and then automatically retries the auto-buy.

  • 3. Fully automatic routes,

  • The function is active only if the option,

If for a route the following are active simultaneously:

WhiteBit Merchant

  • such a route is considered fully automatic auto-sell.

  • In that case: auto-buy.

Last updated