{"id":21165849,"url":"https://github.com/sidmohan0/yahoofinancewizard","last_synced_at":"2026-04-24T20:03:39.557Z","repository":{"id":243319345,"uuid":"812095701","full_name":"sidmohan0/yahoofinancewizard","owner":"sidmohan0","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-08T01:53:42.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T00:55:47.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sidmohan0.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,"publiccode":null,"codemeta":null}},"created_at":"2024-06-08T00:28:17.000Z","updated_at":"2025-05-28T14:24:27.000Z","dependencies_parsed_at":"2024-06-08T02:38:41.962Z","dependency_job_id":null,"html_url":"https://github.com/sidmohan0/yahoofinancewizard","commit_stats":null,"previous_names":["sidmohan0/yahoofinancewizard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sidmohan0/yahoofinancewizard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmohan0%2Fyahoofinancewizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmohan0%2Fyahoofinancewizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmohan0%2Fyahoofinancewizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmohan0%2Fyahoofinancewizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidmohan0","download_url":"https://codeload.github.com/sidmohan0/yahoofinancewizard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmohan0%2Fyahoofinancewizard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32238748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":"2024-11-20T14:46:55.997Z","updated_at":"2026-04-24T20:03:39.536Z","avatar_url":"https://github.com/sidmohan0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n## Overview\n\nStreamlit appication that runs a market wizard Q\u0026A bot using Groq for hosted inference, 'llama3-70b-8192' as the LLM, and Yahoo Finance as the source of financial data.  \n\nThe application has a few functions that the model uses to perform calculations and to respond to common queries that a user might ask.  \n\n\n## Installation\n\n### Prerequisites\n- Python 3.9\n- Docker (for deployment)\n\n### Setup\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/sidmohan0/yahoofinancewizard.git\n    cd yahoofinancewizard\n    ```\n\n2. **Install required Python packages**:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n3. **Set up environment variables**:\n    - Create a `.env` file in the project root.\n    - Add your Groq API key:\n        ```\n        GROQ_API_KEY=your_groq_api_key_here\n        ```\n\n4. **Run the application**:\n    ```bash\n    streamlit run app.py\n    ```\n\n## Usage\n\n1. **Ask about current stock prices**:\n    - Example: \"What's the current price of Meta stock?\"\n\n2. **Request historical stock prices**:\n    - Example: \"Show me the historical prices of Apple vs Microsoft stock over the past 6 months.\"\n\n## Deployment with Docker\n\n1. **Build the Docker image**:\n    ```bash\n    docker build -t yahoofinancewizard:latest -f app/Dockerfile .\n    ```\n\n2. **Run the Docker container**:\n    ```bash\n    docker run -d -p 8501:8501 yahoofinancewizard:latest\n    ```\n\n3. **Access the application**:\n    - Open your browser and go to `http://localhost:8501`.\n\n\n### Functions\n\n1. **`get_stock_info(symbol, key)`**:\n    - Retrieves specific information about a stock based on the provided key.\n    \n2. **`get_historical_price(symbol, start_date, end_date)`**:\n    - Fetches historical stock prices for the given date range.\n\n3. **`plot_price_over_time(historical_price_dfs)`**:\n    - Plots the historical prices for comparison using Plotly.\n\n4. **`call_functions(llm_with_tools, user_prompt)`**:\n    - Handles user prompts, invokes relevant tools, and generates responses.\n\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\nFor any issues or contributions, please feel free to create a pull request or open an issue in the repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmohan0%2Fyahoofinancewizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidmohan0%2Fyahoofinancewizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmohan0%2Fyahoofinancewizard/lists"}