Fix itbit

This commit is contained in:
Neil Booth 2015-09-07 07:38:30 +09:00
parent 154cdd1697
commit 650f9b215c
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ class itBit(ExchangeBase):
ccys = ['USD', 'EUR', 'SGD']
json = self.get_json('api.itbit.com', '/v1/markets/XBT%s/ticker' % ccy)
result = dict.fromkeys(ccys)
result[ccy] = Decimal(json['lastPrice'])
if ccy in ccys:
result[ccy] = Decimal(json['lastPrice'])
return result
class LocalBitcoins(ExchangeBase):