MCPcopy
hub / github.com/CryptoSignal/Crypto-Signal / run

Method run

app/behaviour.py:44–65  ·  view source on GitHub ↗

The analyzer entrypoint Args: market_pairs (list): List of symbol pairs to operate on, if empty get all pairs. output_mode (str): Which console output mode to use.

(self, market_pairs, output_mode)

Source from the content-addressed store, hash-verified

42
43
44 def run(self, market_pairs, output_mode):
45 """The analyzer entrypoint
46
47 Args:
48 market_pairs (list): List of symbol pairs to operate on, if empty get all pairs.
49 output_mode (str): Which console output mode to use.
50 """
51
52 self.logger.info("Starting default analyzer...")
53
54 if market_pairs:
55 self.logger.info("Found configured markets: %s", market_pairs)
56 else:
57 self.logger.info("No configured markets, using all available on exchange.")
58
59 market_data = self.exchange_interface.get_exchange_markets(markets=market_pairs)
60
61 self.logger.info("Using the following exchange(s): %s", list(market_data.keys()))
62
63 new_result = self._test_strategies(market_data, output_mode)
64
65 self.notifier.notify_all(new_result)
66
67
68 def _test_strategies(self, market_data, output_mode):

Callers 1

mainFunction · 0.95

Calls 3

_test_strategiesMethod · 0.95
get_exchange_marketsMethod · 0.80
notify_allMethod · 0.80

Tested by

no test coverage detected