hummingbot icon indicating copy to clipboard operation
hummingbot copied to clipboard

Avellaneda bot takes exceptionally long time to start trading

Open WinstonPrivacy opened this issue 4 years ago • 2 comments

Describe the bug When starting the Avellaneda bot, the log shows that the volatility and order book liquidity buffers are filling. These steadily count down 5 ticks at a time. It frequently takes 5-15 minutes or longer before the bot starts trading after this point (sometimes it doesn't begin at all).

Steps To Reproduce

  • Start bot with kucoin connection to LUNA_USDT.
  • Exact parameters don't matter but the volatility and trading intensity buffer size parameters exhibit this behavior with values 150-200. It seems to improve somewhat if they are reduced to 60.

Screenshots Here's an example - the buffers filled at 4:03pm but as of 4:16pm, the bot still hasn't started trading. image

Release version 1.1.0

Attachments

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:

WinstonPrivacy avatar Mar 08 '22 22:03 WinstonPrivacy

Hi @WinstonPrivacy we hope all is well, We recently release version 1.6 and would like to know this is still an ongoing issue? We tried to running it on different markets and seem to be working ok. Thank you

rapcmia avatar Jul 26 '22 10:07 rapcmia

@rapcmia Hey I'm using 1.6.0 and avellaneda_market_making simply does not place any order.

So I have the same problem that @WinstonPrivacy

nacr avatar Aug 28 '22 11:08 nacr

Hi, same issue 1.7.0 latest : after count down to 0, it takes 5 at 15 minutes to start, filling logs with : 09:38:38 - avellaneda_market_making - Calculating volatility, estimating order book liquidity ... no trades tick

guiguid avatar Sep 24 '22 09:09 guiguid

Hi @nacr @guiguid thanks for your comments. I tried again and still managed to run the strategy and start creating/canceling orders. Would it be possible if you can attach your config files here so I can use them as a reference to investigate further? Thank you!

rapcmia avatar Oct 04 '22 08:10 rapcmia

Tested Avellaneda with Bybit on 1.9.0 dev, I was able to create and fill orders with volatility_buffer_size and trading_intensity_buffer_size both set to 20. When bot started it took a few seconds to have the first order created but it wasn't a long wait.

volatility_buffer_size and trading_intensity_buffer_size both set to 20 image volatility_buffer_size and trading_intensity_buffer_size both set to 150 image

arnelhbot avatar Oct 10 '22 15:10 arnelhbot

Closing the ticket since that's expected behavior for bot not start trading for a long time, since bot is need to calculate Asset price volatility. Usually it takes a long time if there's no big changes in price.

there's a result for Kucoin, bot was able to calculate and start:

image

nikspz avatar Nov 28 '22 18:11 nikspz