This package includes Stock analysis tools and data extractor by using Yahoo Finance..
Installation
pip install stockAnalysis
Yahoo Finance S&P500 Extrator
Method and Params: YahooFinance( Symbol , Range/Duration , interval )
Symbol is the stock ticker symbol, e.g. ‘AAPL’ for Apple or ‘GOOG’ for Google.
range/duration is the desired range of the query, allowed parameters are [1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max].
interval is the desired interval of the quote, e.g. every 5 minutes, allowed parameters are [1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3m].
USAGE
'''Create an instance of yahoo finance class and pass the parameters as string '''
yf = YahooFinance('AAPL', '6mo', '1d')
'''Gets all the prices within given time frame'''
get_quotes = yf.CompanyQuotes()
'''Populates the output data as a json file '''
write_data = yf.writeOutput()
'''Reads from the output file. Takes only two parameter Path and Data Series
Parameter string should be [High, Low, Open , Close] '''
r_data = yf.readOutput('output.json', 'close')
'''SMA and EMA methods takes two parameters first param is Data and second is the time frame. '''
get_sma = yf.sma(r_data, 14)
get_ema = yf.ema(r_data, 14)
'''RSI method takes two parameters first param is Data and second is the time frame. '''
get_rsi = yf.RSI(r_data, 14)
'''MACD method takes three parameters first param is Data, second is the slows and third one is the fast'''
get_macd = yf.macd(r_data, 25, 14)
CONTACT
The package is created by Sadik Erisen. Please send email to fserisen@gmail.com if you have questions or comments.
LICENCE
MIT
Metadata
Release files for stockAnalysis 1.4.1
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 |
|---|---|---|---|---|
| stockAnalysis-1.4.1.tar.gz | 6.9 kB | Without provenance | Details for stockAnalysis-1.4.1.tar.gz |
Release files / stockAnalysis-1.4.1.tar.gz
| Download URL | stockAnalysis-1.4.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aece7fd5dd2e3b9e0e83d7e4bf7195ecf363244fe61978143c526b9cd6368789
|
|
BLAKE2b-256 checksum How to use checksums |
182438865aa82d6f75e1dfd54d61cae58afc1b6eda2a18eb90e418702ae758c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/3.6 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
|
Security for stockAnalysis 1.4.1
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.