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