Embed FinViz 5-minute intraday chart in stock updates
All stock price embeds now include a FinViz candlestick chart showing 5-minute intraday data with technical analysis indicators. Chart displays below price information in embed format. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
4
bot.py
4
bot.py
@@ -169,6 +169,10 @@ class StockBot(commands.Bot):
|
||||
embed.add_field(name="Change", value=change_str, inline=True)
|
||||
embed.add_field(name="Previous Close", value=f"${stock_data['previous_close']}", inline=True)
|
||||
|
||||
# Add FinViz 5-minute intraday chart
|
||||
chart_url = f"https://finviz.com/chart.ashx?t={ticker}&ty=c&ta=1&p=i5&s=l"
|
||||
embed.set_image(url=chart_url)
|
||||
|
||||
market_status = "🟢 Market Open" if stock_data['market_open'] else "🔴 Market Closed"
|
||||
embed.set_footer(text=f"{market_status}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user