A telegram bot that tells you if a stock is overbought or oversold
With this, hopefully your returns (and you!) would be over the moon ππ
- Start a chat session with OverTheMoonBot on Telegram
- Enter a stock symbol (e.g.
SPY
) to check if it is overbought or oversold
Python 3.10
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pre-commit install
Create a .env
file in the project root directory with the following keys:
DETA_PROJECT_KEY=<your_key>
TELEGRAM_API_TOKEN=<your_token>
source venv/bin/activate
uvicorn main:app --reload
- Push to main branch
- Set webhook by calling:
https://api.telegram.org/bot{TELEGRAM_API_TOKEN}/setWebhook?url={APP_BASE_URL}
- Confirm that webhook was set successfully by calling:
https://api.telegram.org/bot{TELEGRAM_API_TOKEN}/getWebhookInfo
under Environment:
- set Python version in environment variables
- set .env in secret files
under Settings:
- set
uvicorn main:app --host 0.0.0.0 --port 10000
as start command
under Collections settings:
- create new data keys
TODO
- notification
- /backtest
- codecov