This commit is contained in:
Jack 2016-07-28 05:59:10 -04:00
parent 6b1d11a04d
commit 413dab8094

View file

@ -178,7 +178,7 @@ class DummyExchangeRateManager(object):
def __init__(self, rates): def __init__(self, rates):
self.market_feeds = [DummyBTCLBCFeed(), DummyUSDBTCFeed()] self.market_feeds = [DummyBTCLBCFeed(), DummyUSDBTCFeed()]
for feed in self.market_feeds: for feed in self.market_feeds:
feed.rate = ExchangeRate(feed, rates[feed]['spot'], rates[feed]['ts']) feed.rate = ExchangeRate(feed, rates[feed.market]['spot'], rates[feed.market]['ts'])
def convert_currency(self, from_currency, to_currency, amount): def convert_currency(self, from_currency, to_currency, amount):
log.info("Converting %f %s to %s" % (amount, from_currency, to_currency)) log.info("Converting %f %s to %s" % (amount, from_currency, to_currency))