Exemple #1
0
def weight():
  try:
    re = realtime.twsew().weight
  except:
    re = {'ERRORREPORT': "Can't fetch weight data."}
  return json.dumps(re, ensure_ascii = False)
Exemple #2
0
def TW_display():
  """ For real time TWSE display
      即時盤用,顯示大盤目前指數與成交量。
  """
  a = twsew().weight
  return a