Skip to main content

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

webappPP-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

webappPP-1.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file webappPP-1.0.2.tar.gz.

File metadata

  • Download URL: webappPP-1.0.2.tar.gz
  • Upload date:
  • Size: 3.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

Hashes for webappPP-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f1aa1e6214de39de297f60a6feedd47a70c9b3bd8816ea3ed4ecc07082ba7d16
MD5 2a8f43d7d65fc803770efaa3f030499d
BLAKE2b-256 1e4d8d98631c60fbb0543e740ae174910f8ef20d6ff7a26f8944ef2314adb5ef

See more details on using hashes here.

File details

Details for the file webappPP-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: webappPP-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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

Hashes for webappPP-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4503d229eb7bd7ac8b43f77d9ffa83778f2de503a19f0b748c95f18dcc64a046
MD5 b8e4acdb6b0f42c119f7967eacf2ea08
BLAKE2b-256 c9fc80ac6c95f6f6f6ff30ba53bef524f6c2ac8d87f3e5e755392346eeae41d6

See more details on using hashes here.

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