{"id":13700000,"url":"https://github.com/cttn/Stockex","last_synced_at":"2025-05-04T18:34:01.825Z","repository":{"id":13688865,"uuid":"16382670","full_name":"cttn/Stockex","owner":"cttn","description":"Python wrapper for Yahoo! Finance API.","archived":false,"fork":false,"pushed_at":"2023-05-22T21:34:06.000Z","size":42,"stargazers_count":33,"open_issues_count":2,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T02:37:08.165Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cttn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-01-30T16:22:00.000Z","updated_at":"2024-02-27T07:04:09.000Z","dependencies_parsed_at":"2024-01-18T17:43:59.479Z","dependency_job_id":"d27390ba-3d82-4078-abf9-d2839f95b4da","html_url":"https://github.com/cttn/Stockex","commit_stats":{"total_commits":77,"total_committers":4,"mean_commits":19.25,"dds":"0.38961038961038963","last_synced_commit":"4115f92523e1c0f73965779f8f103308c109c5e4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttn%2FStockex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttn%2FStockex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttn%2FStockex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cttn%2FStockex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cttn","download_url":"https://codeload.github.com/cttn/Stockex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252382845,"owners_count":21739226,"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-08-02T20:00:46.924Z","updated_at":"2025-05-04T18:33:58.562Z","avatar_url":"https://github.com/cttn.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":["Data Sources"],"readme":"# Stockex\n\n\u003c!-- [![Build Status](https://travis-ci.org/josuebrunel/Stockex.svg?branch=master)](https://travis-ci.org/josuebrunel/Stockex) --\u003e\n[![Coverage Status](https://coveralls.io/repos/josuebrunel/Stockex/badge.svg?branch=master)](https://coveralls.io/r/josuebrunel/Stockex?branch=master)\n\u003c!-- [![Code Health](https://landscape.io/github/josuebrunel/Stockex/master/landscape.svg?style=flat)](https://landscape.io/github/josuebrunel/Stockex/master) --\u003e\nPython 3 wrapper for Yahoo! Finance API.\n\n\n\n## Requirements\n\n* Python 3\n\n\n\n## Install\n\nFrom PYPI:\n```shell\npip install stockex\n```\n\nFrom Github:\n```shell\ngit clone https://github.com/cttn/Stockex.git\n\ncd Stockex\n\npython setup.py install\n```\n\n\n## Example Usage\n\n```python\nfrom stockex import stockwrapper as sw\n\ndata = sw.YahooData()\n\n# Print Current data of a Stock\nprint(data.get_current(['GOOG']))\n\n# Print historical data of a Stock, returns data of last week\nprint(data.get_historical(\"GOOG\"))\n\n# Print historical data of a Stock according to the startDate and endDate\nprint(data.get_historical('YHOO', ['Open', 'Close', 'High', 'Low'],\n                          startDate='2014-09-11', endDate='2015-02-10', limit=5))\n\n# Trivial formatting\nprint(\"Google stock: Date and Price\")\nfor item in data.get_historical(\"GOOG\"):\n    print(item['Date'] + '\\t' + item['Close'])\n\n\n# Other methods:\n \n# Do a custom YQL query to Yahoo! Finance YQL API:\ndata.enquire('select * from yahoo.finance.quotes where symbol in (\"GOOG\", \"C\")')\n\n# Get news feed of a Company\ndata.get_news_feed(\"GOOG\")\n\n# Get options data\ndata.get_options_info(\"GOOG\")\n\n# Get industry ids\ndata.get_industry_ids()\n\n# Get industry index from a given id\ndata.get_industry_index('914')\n```\n\n\n## Contributing\n\nContributions of all sorts are welcomed.\nFeel free to fork, make pull requests, ask for features, etc.\n\n\n## Credits\n\nBased on the Python2.7 (Public Domain) script StockScraper: [Code](https://github.com/gurch101/StockScraper) and [Docs](http://www.gurchet-rai.net/dev/yahoo-finance-yql).\n\n\n## License\n\nPublic Domain.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcttn%2FStockex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcttn%2FStockex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcttn%2FStockex/lists"}