hummingbot
hummingbot copied to clipboard
Autostart of Avellaneda Marketing Strategy Returns Error at Command line
Describe the bug When trying to autostart an avellaneda market making strategy using the command "bin/hummingbot_quickstart.py -f avellaneda-test.yml -p password" returns an error
Steps To Reproduce
- Compile and run from source.
- Run hummingbot and create an avellaneda market making strategy. Save the strategy as avellaneda-test.yml
- Exit
- From the command line run the command "bin/hummingbot_quickstart.py -f avellaneda-test.yml -p password"
I am running this on Amazon AWS
Screenshots
Here is the error that it returns.
Release version ver 1.6.0
Attachments // Please attach your config file and log file to help us debug. It would be difficult for us to help you without those!
WARNING: Do NOT publish any exchange API keys or your wallet's private key. Whoever has access to them may steal your assets!
Optional: your discord username:
Taking a deeper look at the code, I fixed it the problem.
In the hummingbot_quickstart.py file, one line needs to be corrected. Starting at line 104
from:
hb.strategy_name = ( strategy_config.strategy if isinstance(strategy_config, BaseStrategyConfigMap) else strategy_config.get("strategy").value )
To:
hb.strategy_name = ( strategy_config.strategy if isinstance(strategy_config, ClientConfigAdapter) else strategy_config.get("strategy").value )
Great, will you be making a PR for this fix?
Fixed with PR https://github.com/hummingbot/hummingbot/pull/5686 (development 1.9.0, master 1.8.0)