Files
discord-stock-bot/.env.example
Michael Simard 639abc71f6 Replace Yahoo Finance with Polygon.io for chart data
- Add Polygon.io API client for reliable historical data access
- Update bot to use Polygon instead of Yahoo Finance for charts
- Add POLYGON_API_KEY to config and environment example
- Polygon free tier: 5 API calls/minute, more reliable than Yahoo
- Fallback to FinViz chart URL when Polygon unavailable

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-26 11:48:42 -06:00

18 lines
424 B
Plaintext

# Discord Configuration
DISCORD_TOKEN=your_discord_bot_token_here
CHANNEL_ID=your_channel_id_here,optional_second_channel_id
STARTUP_ANNOUNCEMENT=
STARTUP_ANNOUNCEMENT_CHANNEL_ID=
# Bot Configuration
COMMAND_PREFIX=!
# Stock Configuration
PRIMARY_TICKER=PYPL
STOCK_API_PROVIDER=finnhub
FINNHUB_API_KEY=your_finnhub_api_key_here
POLYGON_API_KEY=your_polygon_api_key_here
# Scheduling Configuration
UPDATE_INTERVAL_HOURS=1