Skip to main content

Financial Research Data Services

Project description


FRDS - Financial Research Data Services

LICENSE DOWNLOADS Test Code style: black

frds is a Python library to simplify the complexities often encountered in financial research. It provides a collection of ready-to-use methods for computing a wide array of measures in the literature.

It is developed by Dr. Mingze Gao from the University of Sydney, as a personal project during his postdoctoral research fellowship.


pip install frds


This library is still under development and breaking changes may be expected.

If there's any issue (likely), please contact me at

Supported measures and algorithms

For a complete list of supported built-in measures, please check and


Some simple examples.

Absorption Ratio

For example, Kritzman, Li, Page, and Rigobon (2010) propose an Absorption Ratio that measures the fraction of the total variance of a set of asset returns explained or absorbed by a fixed number of eigenvectors. It captures the extent to which markets are unified or tightly coupled.

>>> import numpy as np
from frds.measures import AbsorptionRatio
>>> data = np.array( # Hypothetical 6 daily returns of 3 assets.
...             [
...                 [0.015, 0.031, 0.007, 0.034, 0.014, 0.011],
...                 [0.012, 0.063, 0.027, 0.023, 0.073, 0.055],
...                 [0.072, 0.043, 0.097, 0.078, 0.036, 0.083],
...             ]
...         )
ar = AbsorptionRatio(data)

Bivariate GARCH-CCC

Use frds.algorithms.GARCHModel_CCC to estimate a bivariate Constant Conditional Correlation (CCC) GARCH model. The results are as good as those obtained in Stata, marginally better based on log-likelihood.

>>> import pandas as pd
>>> from pprint import pprint
>>> from frds.algorithms import GARCHModel_CCC
>>> data_url = ""
>>> df = pd.read_stata(data_url, convert_dates=["date"])
>>> nissan = df["nissan"].to_numpy() * 100
>>> toyota = df["toyota"].to_numpy() * 100
>>> model_ccc = GARCHModel_CCC(toyota, nissan)
>>> res =
>>> pprint(res)

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

frds-2.0.1.tar.gz (178.6 kB view hashes)

Uploaded source

Built Distributions

frds-2.0.1-cp311-cp311-win_amd64.whl (223.7 kB view hashes)

Uploaded cp311

frds-2.0.1-cp311-cp311-win32.whl (219.5 kB view hashes)

Uploaded cp311

frds-2.0.1-cp311-cp311-macosx_10_9_x86_64.whl (214.9 kB view hashes)

Uploaded cp311

frds-2.0.1-cp310-cp310-win_amd64.whl (223.7 kB view hashes)

Uploaded cp310

frds-2.0.1-cp310-cp310-win32.whl (219.5 kB view hashes)

Uploaded cp310

frds-2.0.1-cp310-cp310-macosx_10_9_x86_64.whl (214.9 kB view hashes)

Uploaded cp310

frds-2.0.1-cp39-cp39-win_amd64.whl (223.6 kB view hashes)

Uploaded cp39

frds-2.0.1-cp39-cp39-win32.whl (219.5 kB view hashes)

Uploaded cp39

frds-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl (214.9 kB view hashes)

Uploaded cp39

frds-2.0.1-cp38-cp38-win_amd64.whl (223.7 kB view hashes)

Uploaded cp38

frds-2.0.1-cp38-cp38-win32.whl (219.5 kB view hashes)

Uploaded cp38

frds-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl (214.9 kB view hashes)

Uploaded cp38

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