Giter VIP home page Giter VIP logo

thefznkhan / realtimemarketbot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9 KB

This Telegram bot allows users to fetch real-time stock data directly within Telegram. Users can select from a list of predefined stocks or enter a custom stock symbol to retrieve relevant information such as open, high, low, close prices, and volume.

Home Page: https://t.me/RealTimeMarketBot

License: MIT License

Python 100.00%

realtimemarketbot's Introduction

RealTimeMarketBot

This Telegram bot allows users to fetch real-time stock data directly within Telegram. Users can select from a list of predefined stocks or enter a custom stock symbol to retrieve relevant information such as open, high, low, and close prices, and volume.

Features

  • Predefined Stocks: Choose from a list of essential stocks such as AAPL, GOOGL, MSFT, and more.
  • Custom Stock Symbols: Enter custom stock symbols to fetch data for publicly traded companies.
  • Multiple Durations: Select from various durations including 1 minute, 5 minutes, 15 minutes, 30 minutes, 60 minutes, daily, weekly, and monthly.
  • Interactive Interface: User-friendly interface with inline keyboards for easy navigation.
  • Real-time Data: Fetches real-time stock data from an external API.

Requirements

  • Python 3.8+
  • The following Python packages:
    • python-telegram-bot
    • requests
    • configparser

Setup

  1. Clone the repository:
    git clone https://github.com/THEFZNKHAN/RealTimeMarketBot
    cd RealTimeMarketBot
  2. Create a virtual environment:
    python -m venv .venv
    source .venv/bin/activate  # On Windows, use .venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Configure the bot:
    • Create a configuration file config/config.ini with the following content
    [TelegramAPI]
    bot_token = YOUR_TELEGRAM_BOT_TOKEN
    bot_name = YOUR_BOT_NAME
    
    [StockAPI]
    api_key = YOUR_ALPHA_VANTAGE_API_KEY
    stock_url = https://www.alphavantage.co/query
  5. Running the Bot:
    python main.py

Contributing

Feel free to submit issues, fork the repository, and send pull requests. We welcome contributions from the community!

Live Demo

RealTimeMarketBot

realtimemarketbot's People

Contributors

thefznkhan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.