Balance settings

Balance settings define important options like how much Gunbot is allowed to invest per trade. These settings are part of a trading strategy, this way you have the flexibility to run different strategies with different balance settings.

Balance settings parameters

ParameterDefault valueDescription
TRADING_LIMIT0.002Values: numerical – represents 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.Bitmex: enter the desired number of contracts for TRADING_LIMIT.
TL_PERC0Values: 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_LIMITand 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.This parameter is irrelevant for trading at Bitmex.
TL_ALLINfalseValues: 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.This parameter is irrelevant for trading at Bitmex.
TRADING_FEES0.25Values: 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.This parameter is irrelevant for trading at Bitmex.
FUNDS_RESERVE0.0001Values: numerical – represents 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_QUOTE0Values: numerical – represents an amount in quote currency.
Sets an amount of quote currency that will not be sold. For a BTC-ALT pair, a set amount of ALT 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 as long as it is worth more than MIN_VOLUME_TO_SELL.To make sure trading continues after a sell order where an amount of quote is kept, make sure to set MIN_VOLUME_TO_SELL at least higher than the assumed value of the kept quote (expressed in base currency). When you do not do this, and set MIN_VOLUME_TO_SELL lower than the value of quote kept, Gunbot will attempt to sell again after the initial sell order (as balance is higher than MIN_VOLUME_TO_SELL) – which won’t succeed since you only own the amount specified in KEEP_QUOTE.This parameter is irrelevant for trading at Bitmex.
MIN_VOLUME_TO_BUY0.001Values: numerical – represents the total value of a coins holdings in base currency.
Sets a threshold for buy orders. Prevents orders from being placed when TRADING_LIMIT is lower than this value. Set this at least to the minimum trade size of your exchange. When trading a fiat pair like USDT-x, set a whole number like 10 as MIN_VOLUME_TO_BUY.This parameter is irrelevant for trading at Bitmex.
MIN_VOLUME_TO_SELL0.001Values: numerical – represents the total value of a coins holdings in base currency.
Sets a threshold for sell orders lower than the exchange minimum trade size. If you own less than the set amount, sell orders will not be placed and Gunbot goes into buying mode. Set this at least to the minimum trade size of your exchange.When trading a fiat pair like USDT-x, set a whole number like 10 as MIN_VOLUME_TO_SELL.When you hold 0.006 (in base currency) of a coin and have set MIN_VOLUME_TO_SELL to 0.01, Gunbot will not try to sell your current 0.006 balance because it is below the set threshold of 0.01, instead it will place another buy order first as soon as buying are met.This parameter is irrelevant for trading at Bitmex.