StockBot is a Python-based chatbot designed to provide quick and convenient information on publicly traded stocks. Leveraging the OpenAI Chat API, StockBot interprets natural language queries and executes a set of predefined functions, allowing users to gain insights into various aspects of the stock market.
- get_stock_price: Retrieve the current stock price for a specified company.
- calculate_SMA: Calculate the simple moving average for a given stock.
- calculate_EMA: Calculate the exponential moving average for a specified stock.
- calculate_RSI: Calculate the relative strength index for a particular stock.
- calculate_MACD: Calculate the moving average convergence divergence for a chosen stock.
- plot_stock_price: Generate a plot displaying the stock price trend over the last year.
- compare_stock_prices: Compare the stock prices of two companies over a specified period.
- average_volume: Obtain the average trading volume for a specific stock over the last month.
- get_dividend_info: Retrieve dividend information for a given stock.
- get_stock_news: Fetch the latest news headlines related to a particular stock.
- calculate_daily_returns: Get the daily return for a given stock.
Demo.mp4
StockBot may not cover all stocks, and the information provided may not be real-time. It's designed to offer quick insights based on historical and publicly available data.
This project is for educational and informational purposes only. It does not constitute financial advice. Use the information provided by StockBot responsibly and consider consulting with a financial professional for personalized guidance.
Copyright [2023] [Ravi Tiwari]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0