fork test

This commit is contained in:
dertione 2017-10-13 15:50:50 +02:00 committed by GitHub
parent e7df373544
commit 37f6c213f6

View File

@ -0,0 +1,13 @@
#!/usr/bin/python3.6
from urllib.request import urlopen
currencies = ["ok","neo","dash","etc","eth","snt"]
for cur in currencies:
url = 'https://bittrex.com/Api/v2.0/pub/market/GetTicks?marketName=BTC-'+cur+'&tickInterval=fiveMin'
x = urlopen(url)
data = x.read()
str2 = str(data,'utf-8')
with open("btc-"+cur+".json", "w") as fichier:
fichier.write(str2)