예제 #1
0
파일: bitbot.py 프로젝트: tpsrep0rts/bitbot
 def print_db_results(self, db_results):
   for row in db_results:
     date_string = datetime.datetime.fromtimestamp(row[0]).strftime('%Y-%m-%d %H:%M:%S')
     self.last_price = row[1]
     print date_string + "\t" + utils.format_dollars(self.last_price) + "\t" + utils.format_slope(row[2])
예제 #2
0
파일: bitbot.py 프로젝트: tpsrep0rts/bitbot
 def print_price_data(self, price, time, slope, recommendation):
   date_string = datetime.datetime.fromtimestamp(time).strftime('%Y-%m-%d %H:%M:%S')
   print date_string + "\t" + utils.format_dollars(price)  + "\t" + utils.format_slope(slope) + "\t" + str(recommendation)