Letras_Lecaps_Library---
**Letras_Lecaps_Library — Argentine Fixed-Rate Instruments & Dollar Futures Data**
Pine Script library that provides centralized reference data for Argentine Lecaps, Boncaps, and Matba-Rofex Dollar Futures contracts. Designed to be imported by indicators and strategies that need ticker symbols, maturity dates, and redemption prices without hardcoding them.
**What's inside**
The library exports simple accessor functions for three instrument classes:
- **Lecaps** (9 series): BCBA tickers, maturity price per VN100 (Monto_al_Vto), and payment date for each active short-term zero-coupon treasury bill.
- **Boncaps** (6 series): Same structure as Lecaps, covering longer-term capitalization bonds.
- **Dollar Futures** (12 contracts): MATBAROFEX tickers and expiry dates for USD/ARS futures.
Count functions (`lecapCount()`, `boncapCount()`, `futuresCount()`) return the number of active instruments in each category, so consuming scripts can adapt dynamically.
**Data sources**
- Lecaps & Boncaps: IAMC (Instituto Argentino de Mercado de Capitales) periodic report.
- Dollar Futures: A3 Mercados (Matba-Rofex), expiry dates verified against TradingView contract pages.
**How to use**
```pine
import EcoValores/Letras_Lecaps_Library/1 as lib
// Get the ticker and maturity data for the first Lecap
ticker = lib.lecapTicker1() // "BCBA:S27F6"
matPx = lib.lecapMaturityPrice1() // 125.84
matDt = lib.lecapMaturityDate1() // timestamp for 27/02/2026
```
**Update cycle**
This library reflects a point-in-time snapshot. It should be updated and republished after each public auction or when new IAMC data becomes available. Expired instruments are removed and new ones added, with count functions adjusted accordingly. The last data source date is noted in the script header.
**Related**
This library is the data backend for the **Breakeven Lecaps_Boncaps** indicator, which uses it to calculate and plot breakeven USD exchange rates across the term structure.
---
**Descripción en Español**
Librería Pine Script que centraliza los datos de referencia de Lecaps, Boncaps y contratos de Dólar Futuro de Matba-Rofex. Diseñada para ser importada por indicadores y estrategias que necesitan tickers, fechas de vencimiento y precios de rescate sin codificarlos directamente.
Exporta funciones de acceso para tres clases de instrumentos: Lecaps (9 series, tickers BCBA, precio al vencimiento por VN100 y fecha de pago), Boncaps (6 series, misma estructura), y Dólar Futuro (12 contratos, tickers MATBAROFEX y fecha de expiración). Las funciones de conteo permiten que los scripts consumidores se adapten dinámicamente.
Fuentes de datos: Lecaps y Boncaps del informe periódico del IAMC; Dólar Futuro de A3 Mercados (Matba-Rofex). La librería refleja una foto puntual y debe republicarse tras cada licitación o cuando haya nuevos datos disponibles.
Esta librería es el backend de datos del indicador **Breakeven Lecaps_Boncaps**, que la utiliza para calcular y graficar el tipo de cambio breakeven en dólares a lo largo de la curva.
---
**Disclaimer / Aviso legal**
This library is for informational and educational purposes only. It does not constitute investment advice. Data may be incomplete, delayed, or inaccurate. Verify all tickers and values independently before use. Past performance is not indicative of future results. Consult a licensed financial advisor before making investment decisions.
Esta librería es solo para fines informativos y educativos. No constituye asesoramiento de inversión. Los datos pueden ser incompletos, estar demorados o ser inexactos. Verifique todos los tickers y valores de forma independiente antes de utilizarla. El rendimiento pasado no es indicativo de resultados futuros. Consulte a un asesor financiero matriculado antes de invertir.
Biblioteka Pine Script®



