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 details)

Uploaded Source

Built Distribution

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

pd_fred-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pd_fred-0.1.0.tar.gz.

File metadata

  • Download URL: pd_fred-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pd_fred-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e500b5d76c410bf80bf2b9a2d973a18978c6fc617046a73f28f221b59d0ad355
MD5 bb581546a48b4773b8f6103182a2c159
BLAKE2b-256 bf2d1ebf4f2c758345d8efddb5d4567918097dabcd98d8146bd1226e4e61db98

See more details on using hashes here.

File details

Details for the file pd_fred-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pd_fred-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pd_fred-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4420fd84306697159d07b8997c059acf79d38b779d6c92526a4149825ac8efef
MD5 8ba6d3a960e1a67ecbe4d1b508d116cf
BLAKE2b-256 d5d45b5af1ec59c0cc507ba2fe128e90b8bd41324ab1502eb56d8702f03df84f

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