Balance settings

Options that define how much Gunbot is allowed to spend.

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

Trading Limit

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 USD-x, set a whole number like 100 as trading limit.

Margin: enter the desired number of contracts.

Trading Limit Percentage

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.

This parameter is irrelevant for margin trading.

Trading Limit All-In

Alternative method for setting the investment per buy order to use all available base currency at the time the trade takes place.

Keep Quote

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 margin trading.

Funds Reserve

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.

This parameter is irrelevant for margin trading.

Min Volume To Buy

Sets a threshold for buy orders. Prevents orders below the exchange minimum trade size from being placed.

Set this at least to the minimum trade size of your exchange.

When trading a fiat pair like USD-x, set a whole number like 10 as MIN_VOLUME_TO_BUY.

This parameter is irrelevant for trading at Bitmex.

Min Volume To Sell

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.

Last updated