{"id":15481170,"url":"https://github.com/dalenguyen/stockai","last_synced_at":"2025-04-22T15:24:28.855Z","repository":{"id":54262249,"uuid":"174908978","full_name":"dalenguyen/stockai","owner":"dalenguyen","description":"Stock prediction with Machine Learning (Ongoing Project)","archived":false,"fork":false,"pushed_at":"2023-05-23T00:51:52.000Z","size":323,"stargazers_count":17,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-25T07:44:31.451Z","etag":null,"topics":["python-package","python3","stock","stock-analysis","stock-prices"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalenguyen.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":"contributing.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"dalenguyen","patreon":null,"open_collective":null,"ko_fi":"dalenguyen","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-03-11T02:10:35.000Z","updated_at":"2023-02-13T11:58:24.000Z","dependencies_parsed_at":"2023-12-03T20:41:05.614Z","dependency_job_id":null,"html_url":"https://github.com/dalenguyen/stockai","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.25,"last_synced_commit":"68c97d2737d89b7a937f04a9f6b73554cbd186fd"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalenguyen%2Fstockai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalenguyen%2Fstockai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalenguyen%2Fstockai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalenguyen%2Fstockai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalenguyen","download_url":"https://codeload.github.com/dalenguyen/stockai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265567,"owners_count":21402131,"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":["python-package","python3","stock","stock-analysis","stock-prices"],"created_at":"2024-10-02T05:02:01.625Z","updated_at":"2025-04-22T15:24:28.831Z","avatar_url":"https://github.com/dalenguyen.png","language":"Python","funding_links":["https://github.com/sponsors/dalenguyen","https://ko-fi.com/dalenguyen"],"categories":[],"sub_categories":[],"readme":"# Stock AI\n\n[![PyPI version](https://badge.fury.io/py/stockai.svg)](https://badge.fury.io/py/stockai)\n[![Build Status](https://travis-ci.org/dalenguyen/stockai.svg?branch=master)](https://travis-ci.org/dalenguyen/stockai)\n\nPython module to get stock data from Yahoo! Finance\n\n_This is an ongoing project. If you have any requests or contributions, please create a [ticket](https://github.com/dalenguyen/stockai/issues)_\n\n## Install\n\nFrom PyPI with pip\n\n```sh\npip install stockai\n```\n\n## Development\n\nCreate a virtual environment\n\n```\npython3 -m venv venv\nsource env/bin/activate\n\npip3 install -r requirements.txt\n```\n\nFor MacOS, you may need to use this command in order to install ciso8601\n\n```\nARCHFLAGS=\"-arch x86_64\" pip install ciso8601\n```\n\n## Running Tests\n\n```\npython -m unittest tests/*\n```\n\n## Running Jupyter Notebook\n\n```\npip install jupyter\njupyter notebook\n```\n\n## Usage examples\n\n```python\nfrom stockai import Stock\ntd = Stock('TD.TO')\n\nprint(td.get_summary_profile())\nprint(td.get_price())\nprint(td.get_currency())\n```\n\n## Get Historical Prices\n\n```python\n### The date format should be yyyy-mm-dd\ntd.get_historical_prices('2019-01-01', '2019-01-05')\n\n### The result is a dictionary with ['volumn', 'low', 'open', 'hight', 'close', 'date', 'adjclose']\n{\n   'volume':[\n      3930300,\n      5407700,\n      5103400\n   ],\n   'low':[\n      67.12000274658203,\n      67.12000274658203,\n      67.66999816894531\n   ],\n   'open':[\n      67.51000213623047,\n      68.11000061035156,\n      68.0\n   ],\n   'high':[\n      68.43000030517578,\n      68.11000061035156,\n      68.1500015258789\n   ],\n   'close':[\n      68.25,\n      67.30000305175781,\n      67.9800033569336\n   ],\n   'date':[\n      1546439400,\n      1546525800,\n      1546612200\n   ],\n   'adjclose':[\n      67.57575225830078,\n      66.63513946533203,\n      67.30841827392578\n   ]\n}\n```\n\n## Disclaimer\n\nThis project is for learning purpose. This is not intended to be investment advice for trading purposes.\n\n- USE AT YOUR OWN RISK.\n- DO NOT LEVERAGE THIS IN ATTEMPT TO DISRUPT ORDERLY MARKET FUNCTIONS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalenguyen%2Fstockai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalenguyen%2Fstockai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalenguyen%2Fstockai/lists"}