miro-ka / mosquito

Trading Bot with focus on Evolutionary Algorithms and Machine Learning
GNU General Public License v3.0
261 stars 53 forks source link

AttributeError: 'NoneType' object has no attribute 'get_all_tickers' #24

Closed crack00r closed 7 years ago

crack00r commented 7 years ago
root@j314793:/mosquito# python3 mosquito.py --backtest --plot
setting_all_pairs
Traceback (most recent call last):
  File "mosquito.py", line 35, in <module>
    main(args)
  File "mosquito.py", line 8, in main
    engine = Engine(args, 'config.ini')
  File "/root/mosquito/core/engine.py", line 49, in __init__
    self.bot = Backtest(args, config_file)
  File "/root/mosquito/core/bots/backtest.py", line 21, in __init__
    super(Backtest, self).__init__(args, config_file)
  File "/root/mosquito/core/bots/base.py", line 27, in __init__
    self.pairs = self.process_input_pairs(self.config['Trade']['pairs'])
  File "/root/mosquito/core/bots/base.py", line 34, in process_input_pairs
    return self.exchange.get_all_tickers()
AttributeError: 'NoneType' object has no attribute 'get_all_tickers'
root@j314793:/mosquito#
crack00r commented 7 years ago
root@j314793:~/mosquito# python3 mosquito.py --paper
setting_all_pairs
Traceback (most recent call last):
  File "mosquito.py", line 35, in <module>
    main(args)
  File "mosquito.py", line 8, in main
    engine = Engine(args, 'config.ini')
  File "/root/mosquito/core/engine.py", line 52, in __init__
    self.bot = Paper(args, config_file)
  File "/root/mosquito/core/bots/paper.py", line 15, in __init__
    super(Paper, self).__init__(args, config_file)
  File "/root/mosquito/core/bots/base.py", line 27, in __init__
    self.pairs = self.process_input_pairs(self.config['Trade']['pairs'])
  File "/root/mosquito/core/bots/base.py", line 34, in process_input_pairs
    return self.exchange.get_all_tickers()
AttributeError: 'NoneType' object has no attribute 'get_all_tickers'
miro-ka commented 7 years ago

Thank you for reporting this - I definitely need to fix unit tests soon. I have pushed a fix 216d3b0. Please pull new changes.

btw: I will now focus on multi-currency strategy (mosquito), so hopefully we will get some positive results soon.