Exemple #1
0
 def test_pub(self, args):
     if not args.markets:
         logging.error("You must use --markets argument to specify markets")
         sys.exit(2)
     pmarkets = args.markets.split(",")
     pmarketsi = create_markets(pmarkets)
     for market in pmarketsi.values():
         print(market.get_ticker())
Exemple #2
0
    def init_markets(self, _markets):
        logging.debug("init_markets:%s" % _markets)
        self.market_names = _markets
        markets_dict = create_markets(_markets)

        for market_name, market in markets_dict.items():
            if self.get_market(market_name):
                continue
            self.markets.append(market)