Solution 1: exit Hummingbot to compile and restart using these commands:
Solution 2: make sure you have conda section in ~/.bashrc. Run conda init if it is not there. Explanation: if you have custom PATH defined in ~/.bashrc, supplied scripts (./compile etc) may pick wrong python binary, causing different errors.
Source: SyntaxError invalid SyntaxError¶
Source: conda command not found¶
If you have just installed conda, close terminal and reopen a new terminal to update the command line's program registry.
If you use
zshrc or another shell other than
bash, see install dependencies (https://hummingbot.org/installation/source/#xcode-command-line-tools)
Docker: Package 'docker.io' has no installation candidate¶
Install Docker using get.docker.com script as an alternative. Install curl tool then download and run get.docker.com script.
Allow docker commands without requiring sudo prefix (optional).
Docker: Permission denied after Docker installation¶
Exit from your virtual machine and restart.
Docker: How to stop active container?¶
You need to run
docker ps -a to get the list of containers available. Then you can do the following,
- Locate the container id of the bot you want to stop
docker container stop [container-id]
Please be advised this will force close the bot from running on Docker. This means that this does not stop the outstanding orders from the HB client. The commands
exit is the right way to cancel orders.
AMM Arbitrage strategy is not working¶
Some few important things to check:
- Assets in both base and quote
- Make sure gateway is running
- Some ETH for gas
- Installed Hummingbot-gateway and configured it to mainnet/testnet depending on where you are using it.
- Connected Ethereum wallet and put in the right ethereum node corresponding to what you have put in installing your gateway.
Why is my bot not creating orders on Perpetual Market-Making?¶
Check if you have an open position on Binance, it'll stop creating a new set of orders until your current position is closed. To learn more about perpetual market making, click here.
I have my own strategy, can I make the bot execute it?¶
Hummingbot is an open-source application that you can create your own custom scripts and build strategy. Guidelines has been created so our community can have their way to improve or add features.
You can check our Discord and discuss in our
#developer-chat channel where you can share your ideas or ask questions about how to implement your strategy. This link would also help you more on Developing Strategies.
You can also check out our new
scripts feature which allows you to create a complete strategy using just a single Python file. Check it out here
Orders are not refreshing according to order refresh time¶
Make sure to set your
order_refresh_tolerance_pct to -1 if you are not using the parameter.
When using the parameter
order_refresh_tolerance, orders do not refresh according to order refresh time if it doesn't exceed the percentage (%) threshold you set under
MAC Mismatch error¶
Hummingbot.core.utils.async_utils - ERROR - Unhandled error in background task: MAC mismatch Traceback (most recent call last): File "/home/ubuntu/hummingbot/hummingbot/core/utils/async_utils.py", line 9, in safe_wrapper return await c File "/home/ubuntu/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 128, in call_async return await self.schedule_async_call coro, timeout_seconds, app_warning_msg=app_warning_msg) File "/home/ubuntu/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 117, in schedule_async_call return await fut File "/home/ubuntu/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 80, in _coro_scheduler fut.set_result(await coro) File "/home/ubuntu/miniconda3/envs/hummingbot/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/home/ubuntu/hummingbot/hummingbot/client/config/security.py", line 88, in decrypt_all cls.decrypt_file(file) File "/home/ubuntu/hummingbot/hummingbot/client/config/security.py", line 73, in decrypt_file cls._secure_configs[key_name] = decrypt_file(file_path, Security.password) File "/home/ubuntu/hummingbot/hummingbot/client/config/config_crypt.py", line 67, in decrypt_file secured_value = Account.decrypt(encrypted, password) File "/home/ubuntu/miniconda3/envs/hummingbot/lib/python3.8/site-packages/eth_account/account.py", line 134, in decrypt return HexBytes(decode_keyfile_json(keyfile, password_bytes)) File "/home/ubuntu/miniconda3/envs/hummingbot/lib/python3.8/site-packages/eth_keyfile/keyfile.py", line 49, in decode_keyfile_json return _decode_keyfile_json_v3(keyfile_json, password) File "/home/ubuntu/miniconda3/envs/hummingbot/lib/python3.8/site-packages/eth_keyfile/keyfile.py", line 170, in _decode_keyfile_json_v3 raise ValueError("MAC mismatch") ValueError: MAC mismatch
This error is usually caused by having multiple encrypted keys with different passwords in the same config folder. For example:
Copying encrypted Binance key file from Instance1 to Instance2 will result to this error. To fix this:
- Delete just the
encrypted_binance_api/secret_key.jsonfrom Instance2's conf folder
- Restart Hummingbot and password 5678 remains unchanged
connect binanceand add the API keys - this will encrypt it with 5678 password and sync it with the rest of the API keys
Timestamp for this request is outside of the recvWindow¶
Timestamp errors in logs happen when the Binance clock gets de-synced from time to time as they can drift apart for a number of reasons. Hummingbot should safely recover from this and continue running normally.
Too much request weight used; IP banned¶
Sample log error message:
This error occurs when the Binance API rate limit is reached. Causes include:
Using multiple order mode with 3+ orders per side High order refresh rate Running multiple instances of Hummingbot Weight/Request error in logs happens when it encounters a warning or error and Hummingbot repeatedly sends the request (fetching status updates, placing/canceling orders, etc.) which resulted in getting banned. This should be lifted after a couple of hours or up to a maximum of 24 hours.
Kraken 0 Balance error¶
This error occurs when Kraken account currently has no funds on the exchange. Fund your account to fix the error. For more info visit this here.
async_utils - Unhandled error in background task:
If you get the above errors after updating the Hummingbot client to v1.16.0, make sure to update the Gateway to the latest version as well. After updating, run the gateway-setup script to regenerate your configs then re-run the
gateway connect ... command in Hummingbot (ex. gateway connect uniswap)
TypeError: Password was given but private key is not encrypted¶
Make sure to set at least one character as your Hummingbot login password. Having a blank password causes the Gateway error message. For instructions on how to reset your password check this link
Error after running generate_certs command¶
Add permission to the cert folder or to your hummingbot instance folder:
sudo chmod a+rw <[instance_folder] or
Why is my bot not placing orders?¶
Fetch your bot status by running
[Ctrl + S]:
- Are there any warnings that may prevent the bot from starting?
- Is your
order_amountparameter larger than the exchange minimum order size requirement?
- If the user doesn't have enough balance to meet the set order amount, the bot will still try to create an order with a smaller order amount size provided that it still meets the exchange minimum requirement.
- Is your
inventory_skew_enabledparameter enabled? Since this parameter adjusts order sizes, one side may be too low or too high.
Change the time or timezone of Hummingbot¶
Hummingbot follows the same date/time and timezone on the machine where it is intalled. Below are some steps you can follow to change the timezone depending on the operating system and installation type.
$instance_name is running in the background, type in the command line.
Configure geographic location and timezone by inputting the corresponding number, see example below:
Restart your docker and start your Hummingbot again to apply changes.
You can change the timezone on a Windows computer by doing the following:
Press Win + R shortcut to open the Run dialog box
Enter timedate.cpl to open Date and Time settings
Click Change time zone
You can also follow these steps in the Windows Support article: How to set your time and timezone