Beispiel #1
0
 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])
Beispiel #2
0
 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)