1
0

added therocktrading exchange rate (#4272)

This commit is contained in:
mhitcher
2018-04-24 03:28:38 -04:00
committed by ghost43
parent 9fb927a068
commit 5284aef820
2 changed files with 29 additions and 21 deletions

View File

@@ -1,4 +1,7 @@
{ {
"BitFlyer": [
"JPY"
],
"BitPay": [ "BitPay": [
"AED", "AED",
"AFN", "AFN",
@@ -91,7 +94,7 @@
"MMK", "MMK",
"MNT", "MNT",
"MOP", "MOP",
"MRO", "MRU",
"MUR", "MUR",
"MVR", "MVR",
"MWK", "MWK",
@@ -127,7 +130,7 @@
"SLL", "SLL",
"SOS", "SOS",
"SRD", "SRD",
"STD", "STN",
"SVC", "SVC",
"SYP", "SYP",
"SZL", "SZL",
@@ -163,6 +166,9 @@
"BitStamp": [ "BitStamp": [
"USD" "USD"
], ],
"Bitbank": [
"JPY"
],
"BitcoinAverage": [ "BitcoinAverage": [
"AED", "AED",
"AFN", "AFN",
@@ -332,6 +338,9 @@
"ZMW", "ZMW",
"ZWL" "ZWL"
], ],
"Bitcointoyou": [
"BRL"
],
"Bitmarket": [ "Bitmarket": [
"PLN" "PLN"
], ],
@@ -721,11 +730,11 @@
"AED", "AED",
"ARS", "ARS",
"AUD", "AUD",
"BAM",
"BDT", "BDT",
"BHD", "BHD",
"BOB", "BOB",
"BRL", "BRL",
"BWP",
"BYN", "BYN",
"CAD", "CAD",
"CHF", "CHF",
@@ -740,6 +749,7 @@
"ETH", "ETH",
"EUR", "EUR",
"GBP", "GBP",
"GEL",
"GHS", "GHS",
"HKD", "HKD",
"HRK", "HRK",
@@ -754,6 +764,7 @@
"KRW", "KRW",
"KZT", "KZT",
"LKR", "LKR",
"LTC",
"MAD", "MAD",
"MXN", "MXN",
"MYR", "MYR",
@@ -765,17 +776,17 @@
"PHP", "PHP",
"PKR", "PKR",
"PLN", "PLN",
"QAR", "PYG",
"RON", "RON",
"RSD", "RSD",
"RUB", "RUB",
"RWF",
"SAR", "SAR",
"SEK", "SEK",
"SGD", "SGD",
"SZL",
"THB", "THB",
"TRY", "TRY",
"TTD", "TWD",
"TZS", "TZS",
"UAH", "UAH",
"UGX", "UGX",
@@ -783,7 +794,8 @@
"UYU", "UYU",
"VEF", "VEF",
"VND", "VND",
"XAR", "XAF",
"XRP",
"ZAR", "ZAR",
"ZMW" "ZMW"
], ],
@@ -793,19 +805,13 @@
"NegocieCoins": [ "NegocieCoins": [
"BRL" "BRL"
], ],
"TheRockTrading": [
"EUR"
],
"WEX": [ "WEX": [
"EUR", "EUR",
"RUB", "RUB",
"USD" "USD"
], ],
"itBit": [], "itBit": []
"Bitbank": [ }
"JPY"
],
"BitFlyer": [
"JPY"
],
"Zaif": [
"JPY"
]
}

View File

@@ -114,7 +114,6 @@ class ExchangeBase(PrintError):
rates = self.get_rates('') rates = self.get_rates('')
return sorted([str(a) for (a, b) in rates.items() if b is not None and len(a)==3]) return sorted([str(a) for (a, b) in rates.items() if b is not None and len(a)==3])
class BitcoinAverage(ExchangeBase): class BitcoinAverage(ExchangeBase):
def get_rates(self, ccy): def get_rates(self, ccy):
@@ -325,9 +324,12 @@ class NegocieCoins(ExchangeBase):
json = self.get_json('api.bitvalor.com', '/v1/ticker.json') json = self.get_json('api.bitvalor.com', '/v1/ticker.json')
return {'BRL': Decimal(json['ticker_1h']['exchanges']['NEG']['last'])} return {'BRL': Decimal(json['ticker_1h']['exchanges']['NEG']['last'])}
def history_ccys(self): class TheRockTrading(ExchangeBase):
return ['BRL']
def get_rates(self, ccy):
json = self.get_json('api.therocktrading.com',
'/v1/funds/BTCEUR/ticker')
return {'EUR': Decimal(json['last'])}
class Unocoin(ExchangeBase): class Unocoin(ExchangeBase):