Skip to main content

Librería para yield curves de bonos cupón cero

Project description

bonos-lib - Bond Yield Curve Analysis

Una librería Python para calcular, interpolar y hacer bootstrapping de curvas de rendimiento (yield curves) a partir de bonos cupón cero.

Características

  • Cálculo de Yield Curve: Extrae las tasas de rendimiento desde bonos cupón cero
  • Bootstrapping: Construye tasas forward a partir de la curva de rendimiento
  • Interpolación Lineal: Interpola tasas para plazos no disponibles
  • Análisis Completo: Métricas y análisis integral de datos

Instalación

pip install bonos-lib

Uso Rápido

import pandas as pd
from bonos_lib import YieldCurveCalculator

# Cargar datos de bonos cupón cero
df = pd.read_csv('bonos.csv')

# Crear y calcular
calc = YieldCurveCalculator(nominal=100)
yields = calc.calculate_yields(df)
forwards = calc.bootstrap(yields)
tasa_30_dias = calc.interpolate(yields, days=30)

Formato CSV

dias,precio
30,99.25
60,98.50
90,97.75
180,96.00
360,92.00

Tutorial

Abre el tutorial en Google Colab Open In Colab

Documentación

Licencia

MIT License

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

bonos_lib-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

bonos_lib-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bonos_lib-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for bonos_lib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e45d04d66c3c2c42938fe4d05a2c1ed148e7fd6e5e3ed10f0d933a78cc7898f
MD5 3b61b8bc41446b5b259f17928e38a886
BLAKE2b-256 d51cddffc425968dcf611559db58fe354f6fdc33cfd194f624436b9d0f1b5bf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bonos_lib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for bonos_lib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d37b0d40ea74efc21797b9d5c8860a2c16e1b0c3ba6edaf8533500c727d045a7
MD5 858ed6aa283a619d7f658fa133920413
BLAKE2b-256 40bbb366b268a00ed16319c73ee34acbb2485d4ac1ae790c31ad8ec0e5606de4

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