hummingbot icon indicating copy to clipboard operation
hummingbot copied to clipboard

Autostart of Avellaneda Marketing Strategy Returns Error at Command line

Open akim-tor opened this issue 2 years ago • 2 comments

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

  1. Compile and run from source.
  2. Run hummingbot and create an avellaneda market making strategy. Save the strategy as avellaneda-test.yml
  3. Exit
  4. 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. Screenshot 2022-08-14 151230

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:

akim-tor avatar Aug 15 '22 17:08 akim-tor

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 )

akim-tor avatar Aug 15 '22 19:08 akim-tor

Great, will you be making a PR for this fix?

MementoRC avatar Aug 17 '22 21:08 MementoRC

Fixed with PR https://github.com/hummingbot/hummingbot/pull/5686 (development 1.9.0, master 1.8.0)

nikspz avatar Oct 05 '22 20:10 nikspz