Skip to main content

Various settings

Several global bot options, like how order cancellation is handled. The default settings are a good starting point.

Various settings

Settings in detail#

Cancel open orders#

When set to true, the bot will cancel unfilled or partially filled orders when the price has moved away from the buy or sell price.

Set this to false if you also trade manually to prevent the bot from cancelling your open orders.

Simulated Fill Or Kill (FOK)

When an order is not or only partially filled and gets cancelled, Gunbot will attempt to fill the order by replacing it at current bid/ask.

For buy orders this means that FOK orders are sent as long as the number of quote units held are worth less than TRADING_LIMIT and the difference is higher than MIN_VOLUME_TO_BUY.

For sell orders this means that FOK orders are sent as long as the number of quote units held (minus KEEP_QUOTE, if used) are worth more than MIN_VOLUME_TO_SELL and bid is higher than the break-even point.

Cancel after x rounds#

Enabling this changes the behavior of cancelling orders: orders are cancelled after CANCEL_ORDERS_CYCLE_CAP passes.

Cancel order rounds#

This only applies when using MAKER_FEES or CANCEL_ONCAP.

Set the number of rounds that pending orders need to be kept open. After this number of rounds passes, Gunbot will cancel the pending order.

Watch mode#

When set to true, Gunbot will process the configured pairs, but will not place actual buy or sell orders. Good for testing.

This option is meant for blocking strategy buy and sell orders for spot trading, it may not apply to every single order type.

Multiple base#

Use this option to trade pairs with cross-over between quote and base (for example BTC-ETH and ETH-ADA).

When enabled, Gunbot won't sell all available quote units when selling, instead it will only sell the invested funds (as defined in the trading limit). Also affects the TradingView add-on.

Only enable this when you really need it, it is known to cause sell order execution problems when selling positions that were not bought by the bot. If you experience errors when selling, try turning off this settings

Clean cache#

This parameter forces the Gunbot cache to be cleaned by restarting the bot every x hours.

Only set this to a low value when your bot actually has problems not trading after a longer period of use. If you for example see heap memory related warnings in your logs, it might be a good idea to clean cache more often.