Initializes DefaultBehaviour class. Args: indicator_conf (dict): A dictionary of configuration for this analyzer. exchange_interface (ExchangeInterface): Instance of the ExchangeInterface class for making exchange queries. notifier (Notifi
(self, config, exchange_interface, notifier)
| 19 | """ |
| 20 | |
| 21 | def __init__(self, config, exchange_interface, notifier): |
| 22 | """Initializes DefaultBehaviour class. |
| 23 | |
| 24 | Args: |
| 25 | indicator_conf (dict): A dictionary of configuration for this analyzer. |
| 26 | exchange_interface (ExchangeInterface): Instance of the ExchangeInterface class for |
| 27 | making exchange queries. |
| 28 | notifier (Notifier): Instance of the notifier class for informing a user when a |
| 29 | threshold has been crossed. |
| 30 | """ |
| 31 | |
| 32 | self.logger = structlog.get_logger() |
| 33 | self.indicator_conf = config.indicators |
| 34 | self.informant_conf = config.informants |
| 35 | self.crossover_conf = config.crossovers |
| 36 | self.exchange_interface = exchange_interface |
| 37 | self.strategy_analyzer = StrategyAnalyzer() |
| 38 | self.notifier = notifier |
| 39 | |
| 40 | output_interface = Output() |
| 41 | self.output = output_interface.dispatcher |
| 42 | |
| 43 | |
| 44 | def run(self, market_pairs, output_mode): |
nothing calls this directly
no test coverage detected