Skip to main content

Fetches historical EOD (end of day) prices from yahoo finance

Project description

Copyright (c) 2017 Andrew Porter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Download-URL: https://github.com/AndrewRPorter/yahoo-historical/releases
Description: ================
yahoo-historical
================

Installation
------------

.. code::

python -m pip install yahoo-historical

Usage
-----

.. code::

arguments:
ticker The ticker symbol to download historical data for
start Start day in form [Year,Month,Day]

optional arguments:
end End day in form [Year,Month,Day]

Usage Examples:

.. code::

>>>from yahoo_historical import Fetcher
>>>data = Fetcher("AAPL", [2007,1,1], [2017,1,1])
>>>print(data.getHistorical())

Date Open High Low Close Adj Close Volume
0 2007-01-03 12.327143 12.368571 11.700000 10.812462 11.971429 309579900
1 2007-01-04 12.007143 12.278571 11.974286 11.052453 12.237143 211815100
2 2007-01-05 12.252857 12.314285 12.057143 10.973743 12.150000 208685400
3 2007-01-08 12.280000 12.361428 12.182858 11.027935 12.210000 199276700
4 2007-01-09 12.350000 13.282857 12.164286 11.944029 13.224286 837324600
5 2007-01-10 13.535714 13.971429 13.350000 12.515617 13.857142 738220000
6 2007-01-11 13.705714 13.825714 13.585714 12.360788 13.685715 360063200
7 2007-01-12 13.512857 13.580000 13.318571 12.208535 13.517143 328172600
8 2007-01-16 13.668571 13.892858 13.635715 12.528520 13.871428 311019100
9 2007-01-17 13.937143 13.942857 13.545714 12.251113 13.564285 411565000
10 2007-01-18 13.157143 13.158571 12.721429 11.492435 12.724286 591151400

Motivation
----------

After struggling to download Yahoo Finance historical data since they closed
the ichart API, I decided to combine a few open source scripts into a
class that can do it all!

License
-------

MIT License

Copyright (c) 2017 Andrew Porter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Platform: UNKNOWN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yahoo_historical-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

yahoo_historical-0.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file yahoo_historical-0.1.2.tar.gz.

File metadata

File hashes

Hashes for yahoo_historical-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fb197b2dc61b23e04079967bbf0cbf42c347a966bda778b64db48ff8c207a1bd
MD5 cc07fb45a8bb483cba0f4bfd3db24253
BLAKE2b-256 87bd3832f75b75ca0ff89292933c67563d7d09c4b8e62c780596d9ae275c4abe

See more details on using hashes here.

File details

Details for the file yahoo_historical-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for yahoo_historical-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef4948a73d9a98b4f44f22de41c1cdfcc0cb40240bd44e879337a8d31e49980f
MD5 3dce761e9d4bc71c408b0a4221b4db7d
BLAKE2b-256 0f1d2f60e3f686446d3c0af45f1f4997ab5b41b81fbbe46835007c0326c7ba01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page