github.com/pdaian/flashboys2@v0.0.0-20190718175736-b101c35361f0/update.py (about)

     1  import os, time
     2  
     3  while True:
     4      print(time.time())
     5  
     6      os.system("python3 write_csv.py")
     7      os.system("python3 read_csv.py")
     8      #os.system("cp data/gas_slots.csv data/gas_slots_cache.csv")
     9      #os.system("python3 calculate_slots.py > slotout")
    10      #os.system("python3 get_auction_slots_intersection.py")
    11      os.system("python3 get_pairwise_data.py") # todo fix div by 0
    12      os.system("python3 get_bq_relayers.py")
    13      os.system("python3 get_bq_txlist.py")
    14      os.system("python3 get_bq_logs.py")
    15      os.system("python3 get_bq_blocks.py")
    16      os.system("python3 get_bq_fees.py")
    17      os.system("python3 get_bq_summarystats.py") # todo fix argv error
    18      os.system("rm -rf data/eth.csv")
    19      os.system("wget https://coinmetrics.io/newdata/eth.csv -O data/eth.csv")
    20      os.system("python3 calculate_profit_from_logs.py")
    21      os.system("python3 csv_to_sqlite.py")
    22  
    23      print(time.time())
    24  
    25      time.sleep(300 * 60)