Skip to content

Latest commit

Β 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ Telegram Stock Bot

This is a scheduled Python bot that fetches stock prices using Yahoo Finance and sends updates to a Telegram chat via a bot.

πŸ’– Support This Project If you found this project useful or want to support its development, consider contributing:

πŸ‘‰ Support via Linktree

Every little bit helps! πŸ™Œ

πŸš€ Features

  • βœ… Gets real-time stock prices using nsepython
  • βœ… Sends formatted messages to a Telegram chat
  • βœ… Scheduled to run at 9:30 AM and 2:00 PM IST daily via GitHub Actions
  • βœ… Securely uses GitHub Secrets for bot token and chat ID

πŸ› οΈ Technologies Used

  • Python 3.11
  • yfinance for stock data
  • Telegram Bot API
  • GitHub Actions for automation

πŸ“¦ Installation

Clone this repository:

git clone https://github.com/yourusername/telegram-stock-bot.git
cd telegram-stock-bot

πŸ“€ Environment Variables
Make sure to set the following secrets in your GitHub repository:

XLSXNSE_BOT_TOKEN – Your Telegram bot token

XLSXNSE_CHAT_ID – Your Telegram chat ID (can be user or group)

These are passed automatically to the bot through GitHub Actions using the env section.

πŸ“† GitHub Actions
The bot is automatically executed by a GitHub Action based on this schedule:

πŸ•˜ 9:30 AM IST – 0 4 * * * (UTC)

πŸ•‘ 2:00 PM IST – 30 8 * * * (UTC)

You can also manually trigger the workflow from the Actions tab in your repo.

πŸ’‘ Example Message Sent

----------> πŸ“ˆ NSE STOCKS INFO πŸ“ˆ<----------
TCS: β‚Ή3575.25
INFY: β‚Ή1455.10
RELIANCE: β‚Ή2811.65

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages