Skip to main content

A package for calculating systemic risk in the market

Project description

systemic_risk

Estimate systematic liquidity in the market using only close and volume data: https://www.financialresearch.gov/working-papers/files/OFRwp-2015-11_Systemwide-Commonalities-in-Market-Liquidity.pdf

Getting Started

Dependencies

Installation

pip install systemic_risk

or

pip install -U systemic_risk

Example

import yfinance as yf
from systemic_risk import Liquidity as lq
yf_df = yf.download('SPY, ^FTSE, ^N225', start='2003-01-01', end='2022-01-01')
close, volume = yf_df["Close"].to_numpy(), yf_df["Volume"].to_numpy()
obj = lq.Liquidity(close, volume)
obj.fit_transform()

from systemic_risk import BrownianBridgeSim as bbs
simulated_data = bbs.BrownianBridgeSim(close).simulate()
print(simulated_data.shape)

Authors

Flynn Chen Daniel Rodriguez Sony Wicaksono Doris Schioberg Devon Cross William Casey King

License

This project is licensed under the MIT License - see the LICENSE file for details

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

systemic_risk-0.0.8.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

systemic_risk-0.0.8-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file systemic_risk-0.0.8.tar.gz.

File metadata

  • Download URL: systemic_risk-0.0.8.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for systemic_risk-0.0.8.tar.gz
Algorithm Hash digest
SHA256 339d7997ab5c35f51b52ab17c9f490eed2bc1f638dcf7d2af95f708c0a6cdf5e
MD5 d760132bb8b984505866a1580fb30372
BLAKE2b-256 9f9f02abbfeb346a6f06150b16cf6f4e888e8e7b4197f43ce3ba13c8781dda91

See more details on using hashes here.

File details

Details for the file systemic_risk-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: systemic_risk-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for systemic_risk-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a3874d197f3e419dc988c3229bac59fa79b688e0a0f145c07c841680e10add63
MD5 435f016dfdcdeaf86a21d1f6e3b3caa9
BLAKE2b-256 d2b5d85bf181dca036b5481e5d1194ca917c218b0101d917032e07b407654651

See more details on using hashes here.

Supported by

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