Balance settings

Configure balance related settings for your strategy.

Parameter Default value Description
TRADING_LIMIT 0.002 Values: numerical, represent an amount in base currency.
This value defines the trading limit for each buy order. Make sure to always set this higher than MIN_VOLUME_TO_BUY & MIN_VOLUME_TO_SELL.

When you set this to 0.1 and trade BTC-x pairs, Gunbot will place a buy order worth 0.1 BTC each time it buys. When trading a fiat pair like USDT-x, set a whole number like 100 as TRADING_LIMIT.

TL_PERC 0 Values: numerical, represent a percentage of available base currency.
Alternative method for setting the investment per buy order as a percentage of the available base currency at the time the trade takes place.

Any value above 0 makes Gunbot ignore TRADING_LIMIT and uses the set percentage instead. For example: when set to 10, trading BTC-ALT and you have 1 BTC available at the time Gunbot places a buy order, an order of 0.1 BTC is placed.

TL_ALLIN false Values: true or false.
Alternative method for setting the investment per buy order to use all available base currency at the time the trade takes place.
TRADING_FEES 0.25 Values: numerical – represents a percentage.
This sets the trading fees paid to the exchange. Gunbot uses this data to calculate the break-even point.

Does your exchange charge 0.25% fees per trade? Then set this to 0.25. When your exchange has different fees for different types of trades, set the average fees per trade.

Trading fees are reflected in the average bought price. Exchanges only calculate fees after the trade comes in, Gunbot needs to know about fees before the trade is sent to the exchange.

FUNDS_RESERVE 0.0001 Values: numerical, represent an amount in base currency.
Sets an amount of base currency that will not be traded. For a BTC-x pair, funds in BTC would be reserved according to this setting. For ETH- pairs ETH would be reserved, etc. It is recommended to use the same value for all pairs of the same base currency you run.

For example: when FUNDS_RESERVE is set to 0.5 for trading BTC-x pairs then 0.5 BTC will not be used by Gunbot.

KEEP_QUOTE 0 Values: numerical, represent an amount in quote currency.
Sets an amount of quote currency that will not be traded. For a BTC-x pair, a set amount of x will not be sold.

For example: when KEEP_QUOTE is set to 10 for trading BTC-BNB, then Gunbot will leave 10 BNB in your account when placing a sell order, any balance above 10 will get sold.

To make sure trading continues after a sell order where an amount of quote is kept, make sure to set MIN_VOLUME_TO_SELLroughly equal to the amount of quote kept.

Sign up for our newsletter: