mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
added therocktrading exchange rate (#4272)
This commit is contained in:
parent
9fb927a068
commit
5284aef820
2 changed files with 29 additions and 21 deletions
|
@ -1,4 +1,7 @@
|
|||
{
|
||||
"BitFlyer": [
|
||||
"JPY"
|
||||
],
|
||||
"BitPay": [
|
||||
"AED",
|
||||
"AFN",
|
||||
|
@ -91,7 +94,7 @@
|
|||
"MMK",
|
||||
"MNT",
|
||||
"MOP",
|
||||
"MRO",
|
||||
"MRU",
|
||||
"MUR",
|
||||
"MVR",
|
||||
"MWK",
|
||||
|
@ -127,7 +130,7 @@
|
|||
"SLL",
|
||||
"SOS",
|
||||
"SRD",
|
||||
"STD",
|
||||
"STN",
|
||||
"SVC",
|
||||
"SYP",
|
||||
"SZL",
|
||||
|
@ -163,6 +166,9 @@
|
|||
"BitStamp": [
|
||||
"USD"
|
||||
],
|
||||
"Bitbank": [
|
||||
"JPY"
|
||||
],
|
||||
"BitcoinAverage": [
|
||||
"AED",
|
||||
"AFN",
|
||||
|
@ -332,6 +338,9 @@
|
|||
"ZMW",
|
||||
"ZWL"
|
||||
],
|
||||
"Bitcointoyou": [
|
||||
"BRL"
|
||||
],
|
||||
"Bitmarket": [
|
||||
"PLN"
|
||||
],
|
||||
|
@ -721,11 +730,11 @@
|
|||
"AED",
|
||||
"ARS",
|
||||
"AUD",
|
||||
"BAM",
|
||||
"BDT",
|
||||
"BHD",
|
||||
"BOB",
|
||||
"BRL",
|
||||
"BWP",
|
||||
"BYN",
|
||||
"CAD",
|
||||
"CHF",
|
||||
|
@ -740,6 +749,7 @@
|
|||
"ETH",
|
||||
"EUR",
|
||||
"GBP",
|
||||
"GEL",
|
||||
"GHS",
|
||||
"HKD",
|
||||
"HRK",
|
||||
|
@ -754,6 +764,7 @@
|
|||
"KRW",
|
||||
"KZT",
|
||||
"LKR",
|
||||
"LTC",
|
||||
"MAD",
|
||||
"MXN",
|
||||
"MYR",
|
||||
|
@ -765,17 +776,17 @@
|
|||
"PHP",
|
||||
"PKR",
|
||||
"PLN",
|
||||
"QAR",
|
||||
"PYG",
|
||||
"RON",
|
||||
"RSD",
|
||||
"RUB",
|
||||
"RWF",
|
||||
"SAR",
|
||||
"SEK",
|
||||
"SGD",
|
||||
"SZL",
|
||||
"THB",
|
||||
"TRY",
|
||||
"TTD",
|
||||
"TWD",
|
||||
"TZS",
|
||||
"UAH",
|
||||
"UGX",
|
||||
|
@ -783,7 +794,8 @@
|
|||
"UYU",
|
||||
"VEF",
|
||||
"VND",
|
||||
"XAR",
|
||||
"XAF",
|
||||
"XRP",
|
||||
"ZAR",
|
||||
"ZMW"
|
||||
],
|
||||
|
@ -793,19 +805,13 @@
|
|||
"NegocieCoins": [
|
||||
"BRL"
|
||||
],
|
||||
"TheRockTrading": [
|
||||
"EUR"
|
||||
],
|
||||
"WEX": [
|
||||
"EUR",
|
||||
"RUB",
|
||||
"USD"
|
||||
],
|
||||
"itBit": [],
|
||||
"Bitbank": [
|
||||
"JPY"
|
||||
],
|
||||
"BitFlyer": [
|
||||
"JPY"
|
||||
],
|
||||
"Zaif": [
|
||||
"JPY"
|
||||
]
|
||||
}
|
||||
"itBit": []
|
||||
}
|
|
@ -114,7 +114,6 @@ class ExchangeBase(PrintError):
|
|||
rates = self.get_rates('')
|
||||
return sorted([str(a) for (a, b) in rates.items() if b is not None and len(a)==3])
|
||||
|
||||
|
||||
class BitcoinAverage(ExchangeBase):
|
||||
|
||||
def get_rates(self, ccy):
|
||||
|
@ -325,9 +324,12 @@ class NegocieCoins(ExchangeBase):
|
|||
json = self.get_json('api.bitvalor.com', '/v1/ticker.json')
|
||||
return {'BRL': Decimal(json['ticker_1h']['exchanges']['NEG']['last'])}
|
||||
|
||||
def history_ccys(self):
|
||||
return ['BRL']
|
||||
class TheRockTrading(ExchangeBase):
|
||||
|
||||
def get_rates(self, ccy):
|
||||
json = self.get_json('api.therocktrading.com',
|
||||
'/v1/funds/BTCEUR/ticker')
|
||||
return {'EUR': Decimal(json['last'])}
|
||||
|
||||
class Unocoin(ExchangeBase):
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue