docs: def output(self):
      #re = "{%(time)s} %(name)s %(stock_no)s %(c)s %(range)+.2f(%(pp)+.2f%%) %(value)s" % {
      '''
      re = """<table>
              <tr><td>%(name)s</td><td>%(c)s</td><td>%(range)+.2f(%(pp)+.2f%%)</td></tr>
              <tr><td>%(stock_no)s</td><td>%(value)s</td><td>%(time)s</td></tr></table>""" % {
      '''
      if covstr(self.g['range']) > 0:
        css = "red"
      elif covstr(self.g['range']) < 0:
        css = "green"
      else:
        css = "gray"
  
      re = {
        'name': self.g['name'],
        'stock_no': self.g['no'],
        'time': self.g['time'],
        'open': self.g['open'],
        'h': self.g['h'],
        'l': self.g['l'],
        'c': self.g['c'],
        'max': self.g['max'],
        'min': self.g['min'],
        'range': covstr(self.g['range']),
        'ranges': self.g['ranges'],
        'value': self.g['value'],
        'pvalue': self.g['pvalue'],
        'pp': covstr(self.g['pp']),
        'top5buy': self.g['top5buy'],
        'top5sell': self.g['top5sell'],
        'crosspic': self.g['crosspic'],
        'css': css
      }
      return re