{"id":17464217,"url":"https://github.com/onlyphantom/stockmonitor","last_synced_at":"2025-04-19T19:57:44.381Z","repository":{"id":40980728,"uuid":"201864202","full_name":"onlyphantom/stockmonitor","owner":"onlyphantom","description":"A lightweight CLI script that pulls stock performance data and chart them","archived":false,"fork":false,"pushed_at":"2022-12-08T06:00:24.000Z","size":420,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T12:35:38.632Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onlyphantom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-12T05:34:21.000Z","updated_at":"2023-07-28T09:51:01.000Z","dependencies_parsed_at":"2023-01-24T16:17:14.316Z","dependency_job_id":null,"html_url":"https://github.com/onlyphantom/stockmonitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyphantom%2Fstockmonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyphantom%2Fstockmonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyphantom%2Fstockmonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onlyphantom%2Fstockmonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onlyphantom","download_url":"https://codeload.github.com/onlyphantom/stockmonitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249787141,"owners_count":21325570,"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":"2024-10-18T10:44:59.458Z","updated_at":"2025-04-19T19:57:44.355Z","avatar_url":"https://github.com/onlyphantom.png","language":"Python","readme":"# Description\nThis is a simple python script that is deliberately minimal. It is light enough to be extensible and build upon even for new developers with minimal familiarity with scripting.\n\nOut of the box, `stockmonitor` provides a utility script that takes one or more user-specified stock symbol (such as `FB`, `GOOGL`, `['FB', 'AAPL']`), and:\n1. Fetches stock data from Yahoo and put them in a nice table using pandas \n2. Renders the last 7 days of stock performance for the specified stock(s)\n3. Renders a line plot of the trading volume over the last 1 year for the specified stock(s)\n\n### Education-oriented\n- The script is only 20 lines long(!)\n- Deliberately lightweight, to keep it extensible for new developers\n- If you need help: reach out to me by email or open an issue.\n\n### Demo Usage\n- `python monitor.py FB `\n    Renders:\n    ```\n                        High         Low        Open       Close    Volume   Adj Close\n    Date                                                                            \n    2019-08-01  198.470001  190.880005  194.169998  192.729996  17777000  192.729996\n    2019-08-02  192.619995  188.070007  191.100006  189.020004  15297000  189.020004\n    2019-08-05  185.669998  179.339996  184.690002  181.729996  23086700  181.729996\n    2019-08-06  185.789993  183.089996  183.690002  184.509995  18035700  184.509995\n    2019-08-07  186.369995  181.220001  183.600006  185.149994  15833200  185.149994\n    2019-08-08  190.339996  184.050003  186.619995  190.160004  14828900  190.160004\n    2019-08-09  190.979996  187.119995  190.000000  187.850006  10507300  187.850006\n    ```\n\n- `python monitor.py '[AAPL, FB]'`\n    Renders:\n    ```\n        Attributes        High                     Low  ...      Volume   Adj Close            \n    Symbols           AAPL          FB        AAPL  ...          FB        AAPL          FB\n    Date                                            ...                                    \n    2019-08-01  218.029999  198.470001  206.740005  ...  17777000.0  207.641068  192.729996\n    2019-08-02  206.429993  192.619995  201.630005  ...  15297000.0  203.247772  189.020004\n    2019-08-05  198.649994  185.669998  192.580002  ...  23086700.0  192.608185  181.729996\n    2019-08-06  198.070007  185.789993  194.039993  ...  18035700.0  196.254333  184.509995\n    2019-08-07  199.559998  186.369995  193.820007  ...  15833200.0  198.286606  185.149994\n    2019-08-08  203.529999  190.339996  199.389999  ...  14828900.0  202.659988  190.160004\n    2019-08-09  202.759995  190.979996  199.289993  ...  10507300.0  200.990005  187.850006\n    ```\n\nIf TKInter is installed, it also renders a line chart using one or more of the columns. By default, it renders the `Volume` column but can be specified:\n    ![](screen1.png)\n\n\nOther Example Usage:\n- `python monitor.py GOOGL Close`\n- `python monitor.py FB \"['Close', 'Open']\"`\n- `python monitor.py --symbol=AAPL --plot=Low` (explicit flags)\n- `python monitor.py --help` for documentation\n\n## Installation\n1. Download or Clone this repository\n2. Navigate to the directory where you downloaded this repository  \n3. Run: `pip install -r requirements.txt` to install the dependencies\n4. After successful installation, run one of the sample code from the **Demo Usage** section.\n\n## Dependencies\n- Pandas\n- Matplotlib\n- Python Fire\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyphantom%2Fstockmonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonlyphantom%2Fstockmonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyphantom%2Fstockmonitor/lists"}