Skip to content

Commit

Permalink
add currency code for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Feb 8, 2024
1 parent a01a556 commit 22de48e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apiserver/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ def update_stock_status():

try:
stock_status = {
"HSI": format_number(get_ticker_info("^HSI")),
"IXIC": format_number(get_ticker_info("^IXIC")),
"GSPC": format_number(get_ticker_info("^GSPC")),
"SS": format_number(get_ticker_info("000001.SS")),
"HSI": "HK$" + format_number(get_ticker_info("^HSI")),
"IXIC": "$" + format_number(get_ticker_info("^IXIC")),
"GSPC": "$" + format_number(get_ticker_info("^GSPC")),
"SS": "¥" + format_number(get_ticker_info("000001.SS")),
"HSI_TREND": format_number(get_ticker_info("^HSI", trend=True)),
"IXIC_TREND": format_number(get_ticker_info("^IXIC", trend=True)),
"GSPC_TREND": format_number(get_ticker_info("^GSPC", trend=True)),
Expand Down

0 comments on commit 22de48e

Please sign in to comment.