Skip to content

Commit

Permalink
[Main] Update Email Content
Browse files Browse the repository at this point in the history
  • Loading branch information
billpwchan committed Feb 23, 2024
1 parent 38623f9 commit 265645c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/data_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def get_stocks_email(stock_list: list) -> dict:
'Last Close': f"{stock_ticker.summary_detail[stock_code].get('currency', 'N/A')} {stock_ticker.summary_detail[stock_code].get('previousClose', 0):.3f}",
'Open': f"{stock_ticker.summary_detail[stock_code].get('currency', 'N/A')} {stock_ticker.price[stock_code].get('regularMarketDayHigh', 0):.3f}",
'Close': f"{stock_ticker.summary_detail[stock_code].get('currency', 'N/A')} {stock_ticker.price[stock_code].get('regularMarketPrice', 0):.3f}",
'% Change': f"{stock_ticker.price[stock_code].get('regularMarketChangePercent', 0):.2f}%",
'% Change': f"{float(stock_ticker.price[stock_code].get('regularMarketChangePercent', 0))*100:.2f}%",
'Volume': f"{stock_ticker.summary_detail[stock_code].get('currency', 'N/A')} {humanize.intword(stock_ticker.summary_detail[stock_code].get('volume', 'N/A'))}",
'52 Week Range': f"{stock_ticker.summary_detail[stock_code].get('currency', 'N/A')} {stock_ticker.summary_detail[stock_code].get('fiftyTwoWeekLow', 'N/A')}-{stock_ticker.summary_detail[stock_code].get('fiftyTwoWeekHigh', 'N/A')}",
'PE(Trailing/Forward)': f"{stock_ticker.summary_detail[stock_code].get('trailingPE', 'N/A')} / {stock_ticker.summary_detail[stock_code].get('forwardPE', 'N/A')}",
Expand Down

0 comments on commit 265645c

Please sign in to comment.