yahoo-finance
Python module to get stock data from Yahoo! Finance
Yahoo! Finance backend is http://datatables.org/. If this service is down or has network problems you will receive errors from group YQL*, eg. YQLQueryError.
You can monitor this service via https://www.datatables.org/healthchecker/
More details https://github.com/lukaszbanasiak/yahoo-finance/issues/44
Install
From PyPI with pip:
$ pip install yahoo-finance
From development repo (requires git)
$ git clone git://github.com/lukaszbanasiak/yahoo-finance.git
$ cd yahoo-finance
$ python setup.py install
Usage examples
Get currency data
Example: EUR/PLN (EURPLN=X)
>>> from yahoo_finance import Currency
>>> eur_pln = Currency('EURPLN')
>>> print eur_pln.get_bid()
'4.2007'
>>> print eur_pln.get_ask()
'4.2091'
>>> print eur_pln.get_rate()
'4.2049'
>>> print eur_pln.get_trade_datetime()
'2014-03-05 11:23:00 UTC+0000'
Refresh data from market
>>> eur_pln.refresh()
>>> print eur_pln.get_rate()
'4.2052'
>>> print eur_pln.get_trade_datetime()
'2014-03-05 11:27:00 UTC+0000'
Avalible methods
get_bid()
get_ask()
get_rate()
get_trade_datetime()
refresh()
Requirements
See requirements.txt
Metadata
Release files for yahoo-finance 1.4.0
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 | |
|---|---|---|---|---|
| yahoo-finance-1.4.0.tar.gz | 8.9 kB | Without provenance | Details |
Release files / yahoo-finance-1.4.0.tar.gz
| Download URL | yahoo-finance-1.4.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e3619e365faa3694c95888a45a53acd9567bc749ef92f764f2d11c64a22c0b9
|
|
BLAKE2b-256 checksum How to use checksums |
7c8c61e2250dd88a22a3156c2b44fd021140bf984b49800584cb0372193a116a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for yahoo-finance 1.4.0
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.