Documentation of the "CovidResilience" package
The purpose of the package is, given a list of stock tickers, to state what are the most covid resilient stocks and what are the worst ones. It computes a very simple score based on the volatility and return of the stocks over different periods of time.
CovidResilience(stock_index = "STOXX 600", start_date = "2020-01-19", end_date = "2021-01-19", tickers = None)
Input:
- stock_index : benchmark (example : "CAC 40","S&P 500", "STOXX 600")
- start_date, end_date : strings, format "YYYY-MM-DD"
- tickers : list of tickers
Output:
- .relevant_data
- .relevant_data_returns
- .volatilities
- .rslt
Example (copy/paste):
!pip install FINANCEPP
from finance import covidresilient as cr
list_of_tickers = ["FP.PA","MC.PA","AI.PA","OR.PA", "RI.PA","AIR.PA"]
covidfilter = cr.CovidResilience("CAC 40","2020-01-19", "2021-01-19", tickers = list_of_tickers)
covidfilter.run()
covidfilter.rslt
Note that some of the tickers may not be the ones that are used by yahoo finance. Make sure you use the proper tickers.
Release files for FINANCEPP 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| FINANCEPP-1.3.3.tar.gz | 7.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| FINANCEPP-1.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / FINANCEPP-1.3.3.tar.gz
| Download URL | FINANCEPP-1.3.3.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8e2d5b9e5ea3b8a94b1bdea359a11b0fa75bdaf9fa909f92122f1083721400f
|
|
BLAKE2b-256 checksum How to use checksums |
09c5dac86f1d57737d191dd609f13d9fc8504dfe4c44c27710e7011ef5908c50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / FINANCEPP-1.3.3-py3-none-any.whl
| Download URL | FINANCEPP-1.3.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76f6805b5140faf951f3e88e638e1401166d4ce06bd360705361f046e4558343
|
|
BLAKE2b-256 checksum How to use checksums |
54144e0651228dccc95b638c47baad9de9cd1dbb70fd7738009f39360165f2f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|