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.1.tar.gz (5.6 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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bonos_lib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 55bf7a21af9c781511a7b0c2ef46594797e192af11b1aee9ba7bceba66385a8a
MD5 e9ddb0a8bfb33efb0e3ba5c45e6ea32c
BLAKE2b-256 5dc70cfa87e37c16c730e8d0e2d0cf8cf724201a988484b48a1e7db5feb23d14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bonos_lib-0.1.1-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.14.2

File hashes

Hashes for bonos_lib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6d6fccf9d26c8ccf8d8ac075f129db3bf1b8467808991ddee32602446781b4e
MD5 f1d5f65967e9618db9aebfde24779735
BLAKE2b-256 8a83374993ab86bf8c6c96e57fe15f576939f2e96c10058a930dee73cf37f196

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