Correctif nom monnaie
This commit is contained in:
parent
04ae81b1b3
commit
aae82d3ecc
2
run.py
2
run.py
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user