{"id":41100081,"url":"https://github.com/tedawf/tradingview-telegram-alerts","last_synced_at":"2026-01-22T15:06:53.741Z","repository":{"id":227003509,"uuid":"770166204","full_name":"tedawf/tradingview-telegram-alerts","owner":"tedawf","description":"A real-time trading alert system that integrates TradingView with Telegram","archived":false,"fork":false,"pushed_at":"2025-08-08T05:44:05.000Z","size":3658,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T07:28:10.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tedawf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-11T03:47:23.000Z","updated_at":"2025-08-08T06:03:44.000Z","dependencies_parsed_at":"2025-05-15T19:35:44.586Z","dependency_job_id":"7870b537-85a1-4697-a4a3-f64fab2234dc","html_url":"https://github.com/tedawf/tradingview-telegram-alerts","commit_stats":null,"previous_names":["tedawf/tradingview-telegram-alerts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tedawf/tradingview-telegram-alerts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedawf%2Ftradingview-telegram-alerts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedawf%2Ftradingview-telegram-alerts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedawf%2Ftradingview-telegram-alerts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedawf%2Ftradingview-telegram-alerts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tedawf","download_url":"https://codeload.github.com/tedawf/tradingview-telegram-alerts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tedawf%2Ftradingview-telegram-alerts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28664898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T15:06:53.280Z","updated_at":"2026-01-22T15:06:53.736Z","avatar_url":"https://github.com/tedawf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TradingView Telegram Alerts\n\nA simple, self-hosted FastAPI Telegram bot that receives alerts from TradingView, captures charts via Playwright, and delivers them to a Telegram channel instantly.\n\n![Mobile screenshot](demo.png)\n\n## Features\n\n- **Instant alerts** from TradingView delivered to Telegram.\n- **Chart screenshots** captured with Playwright (headless Chromium).\n- **Async worker queue** to process chart captures without blocking webhook response.\n- **Telegram commands** for custom intervals, themes, and symbol-to-exchange mapping\n- **Simple self-hosting**: runs well on a Proxmox homelab LXC.\n\n![Bot Commands](commands.png)\n\n## Installation\n\n```bash\ngit clone https://github.com/tedawf/tradingview-telegram-alerts.git\ncd tradingview-telegram-alerts\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\nplaywright install chromium\n```\n\n.env.example\n\n```env\nTG_BOT_TOKEN=your_telegram_bot_token\nTG_CHANNEL_ID=-1001234567890   # channel ID (with -100 for channels)\n\n# for the bot to reply to your commands (not localhost!)\nDOMAIN=https://your.domain.com # used by deploy.sh script to set webhook for the telegram API\n```\n\nRun:\n\n```bash\nuvicorn app.main:app --host 0.0.0.0 --port 8000\n```\n\nSend a test webhook (text/plain):\n\n```bash\ncurl -X POST \"http://localhost:8000/alert\" -H \"Content-Type: text/plain\" --data \"BTCUSD Crossing 123456\"\n```\n\n---\n\n## Deployment\n\nThis repo includes `deploy.sh` which:\n\n- Activates the virtualenv\n- Installs Python dependencies\n- Restarts the `tvta-bot.service` systemd service\n- Sets the Telegram webhook to `$DOMAIN/command`\n\nExample tvta-bot.service:\n\n```ini\n[Unit]\nDescription=TradingView Telegram Alerts\nAfter=network.target\n\n[Service]\nUser=tvta_user\nWorkingDirectory=/opt/tvta\nExecStart=/opt/tvta/.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n```\n\nEnable and start the service:\n\n```bash\nsudo systemctl enable tvta-bot.service\nsudo systemctl start tvta-bot.service\n```\n\nThen run your `deploy.sh` on updates (`git pull`):\n\n```bash\n./deploy.sh\n```\n\n## Notes \u0026 Tips \u0026 Troubleshooting\n\n- Use /map and /unmap to manage exchange mappings without redeploying.\n- Limit `NUM_WORKERS` in main.py for low-RAM environments or increase the LXC memory.\n- If Playwright fails to launch in an LXC, ensure `nesting=1` and install Playwright dependencies (`playwright install-deps`) or use a full VM.\n\n## Contributing\n\nContributions are welcome - open an issue or submit a PR.\n\nFeel free to fork this repository!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedawf%2Ftradingview-telegram-alerts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftedawf%2Ftradingview-telegram-alerts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftedawf%2Ftradingview-telegram-alerts/lists"}