Skip to main content

Python package to calculate Probability of Default using FRED data.

Project description

pd_fred

A Python package for calculating the Probability of Default (PD) using FRED data.

Installation

pip install pd_fred

Usage

from pd_fred import DataFetcher, PDefaultCalculator

# Fetch data
fetcher = DataFetcher(api_key='your_fred_api_key')
data = fetcher.get_data('DGS10')

# Calculate PD using the Merton model
pd_value = PDefaultCalculator.calculate_merton_model(
    asset_value=100, debt_value=80, asset_volatility=0.2, risk_free_rate=0.01, time_horizon=1
)

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

pd_fred-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pd_fred-0.1.0-py3-none-any.whl (4.6 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