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
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
Hashes for FINANCEPP-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e41dbc18d4d07fd05de927152ad99f21c574ee1a24939b0a8403f276aa8a6fc |
|
MD5 | ceaa0cef3a7ead9044d192872c1e2fcd |
|
BLAKE2b-256 | f9be2b1eb9492c6675b3e085c982faef13c0dd720a644c3b3d10eca53ba3d7dd |