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

Description
Values
Order types
Name

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.

Bitmex: enter the desired number of contracts.

Values: numerical – represents an amount in base currency.

Default value: 0.002

Affects

Does not affect

Strategy buy

Strategy sell

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: TRADING_LIMIT

Trading Fees

Description
Values
Order types
Name

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.

Values: numerical – represents a percentage

Default value: 0.25

Affects

Does not affect

Strategy sell

Strategy buy

Stop limit

RT buy

RT buyback

RT sell

DCA buy

Close

Parameter name in config.js: TRADING_FEES

Trading Limit Percentage

Description
Values
Order types
Name

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 trading at Bitmex.

Values: numerical – represent a percentage of available base currency.

Default value: 0

Affects

Does not affect

Strategy buy

Strategy sell

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: TL_PERC

Trading Limit All-In

Description
Values
Order types
Name

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

Values: true or false

Default value: false

Affects

Does not affect

Strategy buy

Strategy sell

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: TL_ALLIN

Keep Quote

Description
Values
Name

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.

Values: numerical - represents an amount in quote currency.

Default value: 0

Parameter name in config.js: KEEP_QUOTE

Funds Reserve

Description
Values
Name

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.

Values: numerical – represents an amount in base currency.

Default value: 0.0001

Parameter name in config.js: FUNDS_RESERVE

Min Volume To Buy

Description
Values
Order types
Name

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.

Values: numerical, represents volume in base currency

Default value: 0.001

Affects

Does not affect

Strategy buy

Strategy sell

DCA buy

RT sell

RT buy

RT buyback

RT buyback

Close

Stop limit

Parameter name in config.js: MIN_VOLUME_TO_SELL

Min Volume To Sell

Description
Values
Order types
Name

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.

Values: numerical, represents volume in base currency

Default value: 0.001

Affects

Does not affect

Strategy sell

Strategy buy

Stop limit

RT buy

RT sell

RT buyback

Close

DCA buy

Parameter name in config.js: MIN_VOLUME_TO_BUY