{ "info": { "author": "Cttn", "author_email": "cj.cttn@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Stockex\n\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```\npip install stockex\n```\n\nFrom Github:\n```\ngit clone https://github.com/cttn/Stockex.git\n\ncd Stockex\n\npython setup.py install\n```\n\n\n## Example Usage\n\n```\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'],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", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cttn/Stockex", "keywords": null, "license": "Public Domain", "maintainer": null, "maintainer_email": null, "name": "Stockex", "package_url": "https://pypi.org/project/Stockex/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Stockex/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cttn/Stockex" }, "release_url": "https://pypi.org/project/Stockex/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Python 3 wrapper for Yahoo! Finance API", "version": "0.1.2" }, "last_serial": 1580572, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "50ca2e1942f48aa0ad01b6d4ab247027", "sha256": "1c955e1fdbc8e97c98ca0307fec7953c6b971d6ce81bda1c6461caadd77fa958" }, "downloads": -1, "filename": "Stockex-0.1.linux-x86_64.exe", "has_sig": false, "md5_digest": "50ca2e1942f48aa0ad01b6d4ab247027", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 65079, "upload_time": "2014-02-03T14:05:03", "url": "https://files.pythonhosted.org/packages/96/8e/678f81b13d216c059197c988d6b20bab3d6356e244ce110a685533f19d3b/Stockex-0.1.linux-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "9079e9d5f0de41ffd2cad2f9f26945dc", "sha256": "cbb6343774b05758363e1df09ebfa186bf8ad39f83da466debb5d092c0ce40ac" }, "downloads": -1, "filename": "Stockex-0.1.tar.gz", "has_sig": false, "md5_digest": "9079e9d5f0de41ffd2cad2f9f26945dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3154, "upload_time": "2014-02-03T14:04:56", "url": "https://files.pythonhosted.org/packages/83/39/3d2b228cd770986dc712e5ec65c943d97423ad2d697be29fea3da891cc10/Stockex-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1171a4ef067a8aa285cd05fc41b22ecd", "sha256": "26366b9f736357c4bfbb46e1af19e1ce55d5323d2fe470a3c0a9154859d556ef" }, "downloads": -1, "filename": "Stockex-0.1.1.linux-x86_64.exe", "has_sig": false, "md5_digest": "1171a4ef067a8aa285cd05fc41b22ecd", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 65118, "upload_time": "2014-02-06T13:09:31", "url": "https://files.pythonhosted.org/packages/ee/b0/5ab2686e965c6bfb41897ccb2195fc5737b0f28315a70f4be36a19f783c9/Stockex-0.1.1.linux-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "95feac051333648707eb51b7a95a67f3", "sha256": "96aed37af313a7db2ff708d23ad3238c527ea0fd3989ce5c4955fe8abd8ca44f" }, "downloads": -1, "filename": "Stockex-0.1.1.tar.gz", "has_sig": false, "md5_digest": "95feac051333648707eb51b7a95a67f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3212, "upload_time": "2014-02-06T13:09:18", "url": "https://files.pythonhosted.org/packages/61/bb/c0b738fcc756baa0c688f84a02a54e8de37668bd20a4cc524b6d7e49864d/Stockex-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "8a283a1de57a8712da91eb5016ffddaf", "sha256": "e2d8384eb125a30002ea169a7efe1b418ee927043b4022a12403e615fb2687c5" }, "downloads": -1, "filename": "Stockex-0.1.2.tar.gz", "has_sig": false, "md5_digest": "8a283a1de57a8712da91eb5016ffddaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3515, "upload_time": "2015-06-05T22:29:38", "url": "https://files.pythonhosted.org/packages/b9/2e/a00ee9a240c2aaba672ae1077ddbc145a11ce042a1e4d05010988c4391f5/Stockex-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8a283a1de57a8712da91eb5016ffddaf", "sha256": "e2d8384eb125a30002ea169a7efe1b418ee927043b4022a12403e615fb2687c5" }, "downloads": -1, "filename": "Stockex-0.1.2.tar.gz", "has_sig": false, "md5_digest": "8a283a1de57a8712da91eb5016ffddaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3515, "upload_time": "2015-06-05T22:29:38", "url": "https://files.pythonhosted.org/packages/b9/2e/a00ee9a240c2aaba672ae1077ddbc145a11ce042a1e4d05010988c4391f5/Stockex-0.1.2.tar.gz" } ] }