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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e500b5d76c410bf80bf2b9a2d973a18978c6fc617046a73f28f221b59d0ad355
|
|
| MD5 |
bb581546a48b4773b8f6103182a2c159
|
|
| BLAKE2b-256 |
bf2d1ebf4f2c758345d8efddb5d4567918097dabcd98d8146bd1226e4e61db98
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4420fd84306697159d07b8997c059acf79d38b779d6c92526a4149825ac8efef
|
|
| MD5 |
8ba6d3a960e1a67ecbe4d1b508d116cf
|
|
| BLAKE2b-256 |
d5d45b5af1ec59c0cc507ba2fe128e90b8bd41324ab1502eb56d8702f03df84f
|