Discord bot that creates price comparison charts for cryptocurrencies and stocks using real-time market data.
Deploy to Railway (Recommended):
- Fork this repository → Get Discord Bot Token & Polygon.io API Key
railway up
→ Set environment variables in Railway dashboard → Invite bot to server
Run Locally:
git clone https://github.com/aljazfrancic/stonks-bot.git
cd stonks-bot && ./scripts/setup.sh
# Edit .env with your API keys, then: python bot.py
Environment Variables:
DISCORD_TOKEN=your_discord_bot_token
POLYGON=your_polygon_api_key
Scripts:
./scripts/setup.sh
- Quick local setup./scripts/deploy.sh
- Deploy to Railway
To use the bot, send it a direct message on Discord or post in any channel the bot has access to on a Discord server that the bot is in. The message should conform to the following guidelines.
!stonks
!stonks <number of days>
for example:
!stonks 3
!stonks 14
!stonks <number of days> <tickers with spaces>
for example:
!stonks 365 X:BTCUSD GOOG NVDA AAPL
Tip: You can mix stock and cryptocurrency tickers in the same command.
Navigation Menu stonks-bot
Code Issues Pull requests Commit e5ac8bb aljazfrancic aljazfrancic authored 2 minutes ago · · Verified Update README.md main 1 parent 32e88ad commit e5ac8bb 1 file changed Search within code
README.md -10 Lines changed: 0 additions & 10 deletions
Original file line number Diff line number Diff line change @@ -72,16 +72,6 @@ will produce:
Tip: You can mix stock and cryptocurrency tickers in the same command.
- Revert back to CoinGecko
- Overall code quality improvements