{"id":27471124,"url":"https://github.com/swish78/stock-chatbot-backend","last_synced_at":"2025-04-16T01:39:25.930Z","repository":{"id":227986807,"uuid":"772871603","full_name":"Swish78/Stock-Chatbot-Backend","owner":"Swish78","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-18T13:48:44.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-18T15:16:48.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stock-chatbot-backend.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Swish78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-03-16T05:26:43.000Z","updated_at":"2024-03-17T05:53:24.000Z","dependencies_parsed_at":"2024-03-18T15:03:52.524Z","dependency_job_id":"db1fc115-b4ed-4d6a-8bcf-f8e3759cd6ca","html_url":"https://github.com/Swish78/Stock-Chatbot-Backend","commit_stats":null,"previous_names":["swish78/stock-chatbot-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2FStock-Chatbot-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2FStock-Chatbot-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2FStock-Chatbot-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2FStock-Chatbot-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swish78","download_url":"https://codeload.github.com/Swish78/Stock-Chatbot-Backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182795,"owners_count":21226123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-04-16T01:39:25.386Z","updated_at":"2025-04-16T01:39:25.922Z","avatar_url":"https://github.com/Swish78.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Chatbot Backend\n\nThis backend is designed to power a chatbot focused on providing information and insights about stocks. It leverages FastAPI for quick and efficient API development and integrates with various libraries such as yfinance, Pandas, and Matplotlib for fetching and visualizing stock data.\n\n## Features:\n\n- **Real-time Stock Data**: Utilizes yfinance to fetch real-time stock data, enabling users to inquire about the latest stock prices, market trends, and historical performance.\n\n- **Interactive Charts**: Integrates Matplotlib for generating interactive charts, allowing users to visualize stock performance trends over time.\n\n- **Natural Language Processing**: Employs OpenAI for natural language processing, enabling the chatbot to understand and respond to user queries in a conversational manner.\n\n## Installation:\n\n1. Clone this repository:\n   ```bash\n   git clone \u003chttps://github.com/Swish78/Stock-Chatbot-Backend/\u003e\n   cd stock-chatbot-backend\n   ```\n\n2. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Run the backend server:\n   ```bash\n   uvicorn main:app --reload\n   ```\n\n## Usage:\n\nOnce the backend server is up and running, the chatbot can be accessed through HTTP requests. Below are some example endpoints:\n\n- **GET /stock/{ticker}**: Retrieve information about a specific stock using its ticker symbol.\n- **POST /chatbot**: Send a text query to the chatbot and receive a response.\n\n## Examples:\n\n### Retrieve Stock Information:\n```bash\ncurl http://localhost:8000/stock/AAPL\n```\n\n### Query Chatbot:\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"query\": \"What is the current price of AAPL?\"}' http://localhost:8000/chatbot\n```\n\n## Contributors:\n\n- [Swayam](https://github.com/Swish78)\n\n## License:\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswish78%2Fstock-chatbot-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswish78%2Fstock-chatbot-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswish78%2Fstock-chatbot-backend/lists"}