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