Drakkar-Software / OctoBot

Open source crypto trading bot
https://www.octobot.cloud
GNU General Public License v3.0
3.37k stars 765 forks source link

No available exchange manager error after update ccxt #1688

Open mertdogan opened 3 years ago

mertdogan commented 3 years ago

Step 1: Have you search for this issue before posting it?

If you have discovered a bug in the bot, please search our issue tracker. If it hasn't been reported, please create a new issue.

Step 2: Describe your environment

Step 3: Describe the problem:

Describe the bug I updated ccxt extension to latest and errors started. While strategy optimization process, error occures at log and optimization page as below:

image

Logs are as below:

Time | Level | Source | Message -- | -- | -- | -- 2021-05-07 10:06:17 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError) 2021-05-07 10:06:17 | ERROR | StrategyTestSuite | Exception when running test test_slow_downtrend: Error with independent backtesting: no available exchange manager (RuntimeError) 2021-05-07 10:06:14 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError) 2021-05-07 10:06:14 | ERROR | StrategyTestSuite | Exception when running test test_up_then_down: Error with independent backtesting: no available exchange manager (RuntimeError) 2021-05-07 10:06:08 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError) 2021-05-07 10:06:08 | ERROR | StrategyTestSuite | Exception when running test test_flat_markets: Error with independent backtesting: no available exchange manager (RuntimeError) 2021-05-07 10:06:06 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError) 2021-05-07 10:06:06 | ERROR | StrategyTestSuite | Exception when running test test_sharp_downtrend: Error with independent backtesting: no available exchange manager (RuntimeError) 2021-05-07 10:06:05 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError) 2021-05-07 10:06:05 | ERROR | StrategyTestSuite | Exception when running test test_slow_downtrend: Error with independent backtesting: no available exchange manager (RuntimeError)

Expected behavior A clear and concise description of what you expected to happen.

Steps to reproduce:

  1. Update ccxt by pip install -U ccxt
  2. Restart Octobot
  3. Start strategy optimization with any settings
  4. Control logs and page for error messages.

Observed Results:

Relevant code exceptions or logs:

If applicable, add screenshots to help explain your problem.

<html>
<body>
<!--StartFragment-->

Time | Level | Source | Message
-- | -- | -- | --
2021-05-07 10:06:17 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError)
2021-05-07 10:06:17 | ERROR | StrategyTestSuite | Exception when running test test_slow_downtrend: Error with independent backtesting: no available exchange manager (RuntimeError)
2021-05-07 10:06:14 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError)
2021-05-07 10:06:14 | ERROR | StrategyTestSuite | Exception when running test test_up_then_down: Error with independent backtesting: no available exchange manager (RuntimeError)
2021-05-07 10:06:08 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError)
2021-05-07 10:06:08 | ERROR | StrategyTestSuite | Exception when running test test_flat_markets: Error with independent backtesting: no available exchange manager (RuntimeError)
2021-05-07 10:06:06 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError)
2021-05-07 10:06:06 | ERROR | StrategyTestSuite | Exception when running test test_sharp_downtrend: Error with independent backtesting: no available exchange manager (RuntimeError)
2021-05-07 10:06:05 | ERROR | IndependentBacktesting | Impossible to start backtesting on this configuration: Missing time frame in data file: 4h (RuntimeError)
2021-05-07 10:06:05 | ERROR | StrategyTestSuite | Exception when running test test_slow_downtrend: Error with independent backtesting: no available exchange manager (RuntimeError)

<!--EndFragment-->
</body>
</html>
valouvaliavlo commented 3 years ago

Hi @mertdogan This is not related to your update of ccxt, the error is throw because there some timeframe which are not present in data file