Skip to main content

Algorithm for finance

Project description

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.

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

FINANCEPP-1.3.3.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

FINANCEPP-1.3.3-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page