Correctif nom monnaie

This commit is contained in:
nyanloutre 2017-12-21 20:06:32 +01:00
parent 04ae81b1b3
commit aae82d3ecc
Signed by: nyanloutre
GPG Key ID: F85D93686A3A9063
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -55,7 +55,7 @@ def get_balance(account):
def get_value(amount): def get_value(amount):
if(NETWORK == "doge"): if(NETWORK == "DOGE"):
with urllib.request.urlopen("https://api.coinmarketcap.com/v1/ticker" + with urllib.request.urlopen("https://api.coinmarketcap.com/v1/ticker" +
"/dogecoin/?convert=EUR") as url: "/dogecoin/?convert=EUR") as url:
data = json.loads(url.read().decode()) data = json.loads(url.read().decode())