From 0537a99d65e835f74af142fd1a4d36d270b68d79 Mon Sep 17 00:00:00 2001 From: sgrtye Date: Fri, 23 Feb 2024 11:47:09 +0000 Subject: [PATCH] add Euro back to list --- apiserver/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/main.py b/apiserver/main.py index b5cbdc1..e137c6d 100644 --- a/apiserver/main.py +++ b/apiserver/main.py @@ -30,7 +30,7 @@ xui_session = requests.Session() tickers = yfinance.Tickers( - "^IXIC ^GSPC 000001.SS AAPL GOOG NVDA TSLA GBPCNY=X CNY=X CADCNY=X BTC-USD ETH-USD" + "^IXIC ^GSPC 000001.SS AAPL GOOG NVDA TSLA GBPCNY=X EURCNY=X CNY=X CADCNY=X BTC-USD ETH-USD" ) @@ -142,7 +142,7 @@ def update_currency_status(): global exchange_status try: - info = get_info_by_ticker("GBPCNY=X CNY=X CADCNY=X") + info = get_info_by_ticker("GBPCNY=X EURCNY=X CNY=X CADCNY=X") for ticker, value in info.items(): exchange_status[ticker] = value