Add JPY exchange rate
This commit is contained in:
parent
10057b18de
commit
c2da8eb46d
|
@ -798,5 +798,14 @@
|
||||||
"RUB",
|
"RUB",
|
||||||
"USD"
|
"USD"
|
||||||
],
|
],
|
||||||
"itBit": []
|
"itBit": [],
|
||||||
}
|
"Bitbank": [
|
||||||
|
"JPY"
|
||||||
|
],
|
||||||
|
"Bitflyer": [
|
||||||
|
"JPY"
|
||||||
|
],
|
||||||
|
"Zaif": [
|
||||||
|
"JPY"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
|
@ -159,6 +159,19 @@ class BitcoinVenezuela(ExchangeBase):
|
||||||
return self.get_json('api.bitcoinvenezuela.com',
|
return self.get_json('api.bitcoinvenezuela.com',
|
||||||
"/historical/index.php?coin=BTC")[ccy +'_BTC']
|
"/historical/index.php?coin=BTC")[ccy +'_BTC']
|
||||||
|
|
||||||
|
class Bitbank(ExchangeBase):
|
||||||
|
|
||||||
|
def get_rates(self, ccy):
|
||||||
|
json = self.get_json('public.bitbank.cc', '/btc_jpy/ticker')
|
||||||
|
return {'JPY': Decimal(json['data']['last'])}
|
||||||
|
|
||||||
|
|
||||||
|
class BitFlyer(ExchangeBase):
|
||||||
|
|
||||||
|
def get_rates(self, ccy):
|
||||||
|
json = self.get_json('bitflyer.jp', '/api/echo/price')
|
||||||
|
return {'JPY': Decimal(json['mid'])}
|
||||||
|
|
||||||
|
|
||||||
class Bitmarket(ExchangeBase):
|
class Bitmarket(ExchangeBase):
|
||||||
|
|
||||||
|
@ -350,6 +363,12 @@ class Winkdex(ExchangeBase):
|
||||||
for h in history])
|
for h in history])
|
||||||
|
|
||||||
|
|
||||||
|
class Zaif(ExchangeBase):
|
||||||
|
def get_rates(self, ccy):
|
||||||
|
json = self.get_json('api.zaif.jp', '/api/1/last_price/btc_jpy')
|
||||||
|
return {'JPY': Decimal(json['last_price'])}
|
||||||
|
|
||||||
|
|
||||||
def dictinvert(d):
|
def dictinvert(d):
|
||||||
inv = {}
|
inv = {}
|
||||||
for k, vlist in d.items():
|
for k, vlist in d.items():
|
||||||
|
|
Loading…
Reference in New Issue