Various settings
Several global bot options, like how order cancellation is handled. The default settings are a good starting point.
Direct link
#
Settings in detail#
Cancel open orders- Description
- Values
- Name
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.
Values: true or false
Default value: false
Parameter name in config.js
: CANCEL_ORDERS_ENABLED
#
Cancel after x rounds- Description
- Values
- Name
Enabling this changes the behavior of cancelling orders: orders are cancelled after CANCEL_ORDERS_CYCLE_CAP
passes.
Values: true or false
Default value: false
Parameter name in config.js
: CANCEL_ONCAP
#
Cancel order rounds- Description
- Values
- Name
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.
Values: numerical - represents a number of rounds.
Default value: 10
Parameter name in config.js
: CANCEL_ORDERS_CYCLE_CAP
#
Watch mode- Description
- Values
- Name
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.
Values: true or false
Default value: false
Parameter name in config.js
: WATCH_MODE
#
Multiple base- Description
- Values
- Name
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
Values: true or false
Default value: false
Parameter name in config.js
: MULTIPLE_BASE
#
Clean cache- Description
- Values
- Name
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.
Values: numerical โ represents time in hours.
Default value: 200
Parameter name in config.js
: BOT_CCLEAN