Bot settings

These settings define the core behaviour of Gunbot.

Parameter Default value Description
debug false Values: true or false.
Used to show debug messages in the bot, when set to true. Only use this if you really need to debug something.
BOT_DELAY 1 Values: numerical, represents time in seconds.
Bot will delay processing a new pair for a set amount of seconds.

Useful for when Gunbot requests data faster than the exchange API is allowing you to do. As the needed delay depends on the amount of pairs and the speed your system needs to cycle pairs, there are no recommended values.

This is the global setting for bot delay, when it’s set higher than the exchange specific delay in the exchange section, BOT_DELAYapplies.

BOT_CCLEAN 2 Values: numerical, represents time in hours.
This parameter forces the Gunbot cache to be cleaned by restarting the bot every x hours. This setting does not trigger TRADES_TIMEOUT.

Only set this to a low value when your bot actually has problems not trading after a longer period of use.

CANCEL_ORDERS_ENABLED true Values: true or false.
When set to true, the bot will remove unfulfilled orders when the price has moved away from the buy or sell price for unfulfilled orders. Set this to false if you trade manually on pairs you also run with Gunbot.
CANCEL_ORDERS_CYCLE_CAP 10 Values: numerical, represents a number of cycles.
Defines the number of cycles to wait before the bot is allowed to cancel open orders.
RESERVE_PILE_UP false Values: true or false.
When set to true, trading gains will be automatically added to the funds reserve.
interval_ticker_update 25000 Values: numerical, represents time in milliseconds.
This parameter defines after how many milliseconds new prices are being pulled from the exchange for each pair (default value of 25000 = 25 seconds).

The default value should almost always be good enough, only change this if you know what you are doing.

Set this to a lower value if you want Gunbot to retrieve prices faster, for example while youre interested in following shorter trends.This value is related to period_storage_ticker, since it defines how often new prices are being added to the array.

period_storage_ticker 2000 Values: numerical – represent a number.
This parameter defines how many of the received prices from the exchange are being kept in the array for calculating other indicators. It is critical that you don’t set this value too low, otherwise you don’t have enough values for functions like the trend watcher or local EMA calculation.

A new price gets added to this array every time the tickers are updated, or every time a new cycle starts faster than the set time for interval_ticker_update the latter only happens if you run very little pairs in your bot.

timeout_buy 60000 Values: numerical, represent time in milliseconds.
This is an internal timeout that prevents the bot from buying again within the set amount of milliseconds after a buy order has been placed.
timeout_sell 60000 Values: numerical, represent time in milliseconds.
This is an internal timeout that prevents the bot from selling again within the set amount of milliseconds after a sell order has been placed.
VERBOSE true Values: true or false.
Setting this to true will lead to more detailed information being shown in the console.
WATCH_MODE false Values: true or false.
When set to true, Gunbot will process the configured pairs, but will not place actual buy or sell orders. Good for testing.
json_output ./json Values: string – represents a path.
The path to save JSON state files for pairs.
withdraw_address Set a valid BTC wallet address to enable automatic withdraws each time the threshold is reached.
withdraw_threshold 0.5 Values: numerical – represents an amount of BTC.
Set the amount of BTC to be accumulated with RESERVE_PILE_UP before an automatic withdraw will be executed.
BEST_CURRENCIES false Values: true or false.
Enable suggestions for good pairs to trade on. Suggestions show in your Gunbot logs and can be configured by MINIMUM_VOLUME_GOOD_CURRENCY and MINIMUM_VARIATION_SUGGEST_TRADE.
MINIMUM_VOLUME_GOOD_CURRENCY 200 Values: numerical – represents 24h volume in base currency.
Sets the trading volume threshold for pair suggestions.
MINIMUM_VARIATION_SUGGEST_TRADE 1 Values: numerical – represents an amount of BTC.
Sets the minimum 24h variance for pair suggestions. Volatility is calculated by the distance from current price to the lowest and highest prices.

Sign up for our newsletter: