ystockquote
Python module - fetch stock quote data from Yahoo Finance
Requirements
Python 2.7 or Python 3.3+
Install
ytockquote can be installed from PyPI with pip:
$ pip install ystockquote
You can also clone the development repo to install (requires git):
$ git clone git://github.com/cgoldberg/ystockquote.git $ cd ystockquote $ python setup.py install
To run unit tests:
$ tox
Example Usage
>>> import ystockquote
>>> print(ystockquote.get_price_book('GOOGL'))
'51.18'
>>> print(ystockquote.get_bid_realtime('GOOGL'))
'904.77'
>>>
>>> import ystockquote
>>> from pprint import pprint
>>> pprint(ystockquote.get_historical_prices('GOOGL', '2013-01-03', '2013-01-08'))
{'2013-01-03': {'Adj Close': '723.67',
'Close': '723.67',
'High': '731.93',
'Low': '720.72',
'Open': '724.93',
'Volume': '2318200'},
'2013-01-04': {'Adj Close': '737.97',
'Close': '737.97',
'High': '741.47',
'Low': '727.68',
'Open': '729.34',
'Volume': '2763500'},
'2013-01-07': {'Adj Close': '734.75',
'Close': '734.75',
'High': '739.38',
'Low': '730.58',
'Open': '735.45',
'Volume': '1655700'},
'2013-01-08': {'Adj Close': '733.30',
'Close': '733.30',
'High': '736.30',
'Low': '724.43',
'Open': '735.54',
'Volume': '1676100'}}
>>>
Metadata
Release files for ystockquote 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ystockquote-0.2.5.tar.gz | 4.8 kB | Without provenance | Details for ystockquote-0.2.5.tar.gz |
Release files / ystockquote-0.2.5.tar.gz
| Download URL | ystockquote-0.2.5.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32533ebdadcc521d589de845256e3dfab603a4ca6889f98e8fe9ed03dbc05146
|
|
BLAKE2b-256 checksum How to use checksums |
b1adcf3959065e5d6db9d970a5c7234a358761d6d15ad83c5e81bf7ca0247fd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ystockquote 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.