Пример #1
0
def write_map_inactive():
    x = cmc.get_coin_map('inactive')
    with open('coins_inactive.csv','w') as f:
        arr = ["id","symbol","name","first_historical_data"]
        s = "|".join([str(x) for x in arr])
        f.write(s + "\n")                
        i = 0
        for z in x:
            print (z)
            arr = [z["id"],z["symbol"],z["name"],z["first_historical_data"]]
            s = "|".join([str(x) for x in arr])
            i+=1
            f.write(s + "\n")                
Пример #2
0
def pull_active():
    x = cmc.get_coin_map('active')
    for z in x:
        print (z)
Пример #3
0
def write_map_inactive():
    x = cmc.get_coin_map('inactive')
Пример #4
0
def write_map_active():
    x = cmc.get_coin_map('active')