Create or Import Config Files
create command and answer the prompts to configure your bot's behavior depending on the strategy you want to use.
The last prompt will ask you to enter a name for the config file. You can also specify the name of your file at the beginning by running
create [file_name] command.
These configuration files created and used by Hummingbot are saved in the
conf/ directory of your instance, which you can edit directly with a standard text editor.
- Installed from source:
- Installed via Docker:
hummingbot_filesis the default name of the parent directory. This can be different depending on the setup when the instance was created.
- Installed via Binary (Windows):
- Installed via Binary (MacOS):
The template configuration files can be found here: Config Templates.
create command initializes the configuration of global and strategy-specific settings necessary to run the bot.
Running this command will automatically create the following files in these folders:
|Global configuration settings, e.g. Binance API keys and Ethereum node.|
|Settings for the pure market making strategy.|
|Settings for the cross-exchange market making strategy.|
|Settings for the liquidity mining strategy.|
|Settings for the perpetual market making strategy.|
|Settings for the arbitrage strategy.|
|Settings for the celo arbitrage strategy.|
|Settings for the amm arbitrage strategy.|
|Settings for the spot perpetual arbitrage strategy.|
|Settings for the avellaneda market making strategy.|
create command, you need to setup a strategy along with its parameters.
We have developed walkthroughs for each strategy:
- Pure market making
- Cross-exchange market making
- Perpetual Market Making
- Celo Arbitrage
- AMM Arbitrage
- Liquidity Mining
- Spot Perpetual Arbitrage
- Avellaneda Market Making
- Enter the name of your strategy config file
You can also skip the prompt by running
import [file_name] command.
config after importing a strategy file. This will be applicable for all imported strategies.
autofill_import = start
>>>`import conf_pure_mm_1.yml` Configuration from conf_pure_mm_1.yml file is imported. Preliminary checks: - Exchange check: All connections confirmed. - Strategy check: All required parameters confirmed. -All checks: Confirmed. Enter "start" to start market making >>> start
Here's an example if using the config command
autofill_import = config
>>>`import conf_pure_mm_1.yml` Configuration from conf_pure_mm_1.yml file is imported. Preliminary checks: - Exchange check: All connections confirmed. - Strategy check: All required parameters confirmed. -All checks: Confirmed. Enter "start" to start market making >>> config
To use this feature, open and configure
Import the lines of code to create a custom command shortcut.
# Command Shortcuts # Define abbreviations for often used commands # or batch grouped commands together command_shortcuts: # Assign shortcut command command: spreads_refresh # Reference help: Set bid spread, ask spread, and order refresh time # Argument Label arguments: [Bid Spread, Ask Spread, Order Refresh Time] # Original config output with value output: [config bid_spread $1, config ask_spread $2, config order_refresh_time $3]