Algorithm for finance
Project description
This package has multiple purposes.
Covid Resilience :
The first purpose of the package is, given a list of stock tickers is 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.
CovidResilience(stock_index = "STOXX 600", start_date = None, end_date = None, 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 ex : CovidResilience("STOXX 600","2020-01-19", "2021-01-19", 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webapp2PP-1.0.1.tar.gz.
File metadata
- Download URL: webapp2PP-1.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b992c655beca8e2881b84afaabca884676774301f8e302bbe5836ccda01d306d
|
|
| MD5 |
21ac01521d258395730bf54f9832763a
|
|
| BLAKE2b-256 |
5a6ef152a91ced26d0fa54e6e58baa5cd0db7e9789527ae27f3b6e53cdc950b2
|
File details
Details for the file webapp2PP-1.0.1-py3-none-any.whl.
File metadata
- Download URL: webapp2PP-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bef81afff0b1c6abf500c198526dda677bef76f996b72260dfcbd9e51e40ae4
|
|
| MD5 |
74540c76c031c896d9f32d86fdc90434
|
|
| BLAKE2b-256 |
3ccf43690c8cd9652805afa5a709111c35a457b0373a2e00790f6881be418738
|