Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hummingbot/hummingbot/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Theconfig command allows you to view and modify both global Hummingbot settings and strategy-specific parameters. It provides an interactive way to customize bot behavior without manually editing configuration files.
Basic Usage
View All Configurations
- Global Configurations: System-wide settings
- Color Settings: Terminal UI customization
- Strategy Configurations: Active strategy parameters (if a strategy is loaded)
Modifying Configuration
Interactive Mode
- Show the current value
- Prompt for a new value
- Validate the input
- Save the change
Direct Mode
The configuration parameter name
The new value to set
Global Configuration Options
Trading Controls
Enable automatic shutdown when portfolio value drops below threshold
Percentage loss threshold for kill switch (e.g., -5 for 5% loss)
Percentage of exchange rate limits to use (100 = full limits)
Gateway Configuration
Gateway server hostname
Gateway server port
Use SSL/TLS for Gateway connection
Rate Oracle
Data source for asset price conversions (binance, coingecko, etc.)
Reference currency for portfolio valuation
MQTT Integration
Enable MQTT message broker integration
MQTT broker hostname
MQTT broker port
MQTT authentication username
MQTT authentication password (secure)
Display Options
Table formatting style (psql, simple, grid, etc.)
Update frequency for live displays (in seconds)
Timeouts
Timeout for strategy creation in seconds
Timeout for other network operations in seconds
Strategy Configuration
When a strategy is loaded, you can modify its parameters:Hot Reload (No Restart Required)
For Pure Market Making and Perpetual Market Making strategies, certain parameters can be changed while the bot is running: Percentage-based parameters:bid_spreadask_spreadorder_level_spreadinventory_target_base_pct
order_amountorder_levelsfilled_order_delayinventory_skew_enabledprice_ceiling/price_floor- Order optimization settings
When you modify these parameters, the running strategy automatically updates without requiring a restart.
Parameters Requiring Restart
Most other strategy parameters require you to stop and restart the bot:Special Configuration Prompts
Inventory Target Base Percentage
- Fetches your current balances
- Calculates your current asset ratio
- Asks if you want to maintain this ratio
- Allows you to set a custom ratio if desired
Inventory Price
Color Settings
Customize the terminal UI colors:#FF5733) or color names.
Implementation Details
The config command is implemented in/hummingbot/client/command/config_command.py:99 and provides:
- Dual mode support: Works with both legacy ConfigVar and modern ClientConfigAdapter
- Type validation: Ensures values match expected types (bool, decimal, string, etc.)
- Secure handling: Passwords and API keys are hidden during input
- Persistent storage: Changes are saved to YAML configuration files
- Hot reload: Certain strategy parameters update without restart
Configuration Files
Changes are saved to:- Global settings:
conf/conf_client.yml - Strategy settings:
conf/strategies/<strategy_file>.yml
Common Use Cases
Enable Kill Switch Protection
Configure Gateway for DEX Trading
Change Portfolio Display Currency
Increase Network Timeouts
Troubleshooting
Invalid Key Error
If you see “Invalid key, please choose from the list”:- Run
configwithout arguments to see all available keys - Check spelling and capitalization
- Ensure a strategy is loaded for strategy-specific configs
Validation Errors
If input validation fails:- Check the expected type (boolean, decimal, string)
- Ensure numeric values are in valid ranges
- For booleans, use
True/FalseorYes/No
Changes Not Applied
If configuration changes don’t take effect:- Check if the parameter requires a restart
- Stop and start the bot
- Verify the change was saved in the config file