Skip to content

About

Cliente Java para los webservices SOAP de cotizaciones del Banco Central del Uruguay.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

BCU WebServices

CI BCU

Maven Central Javadoc

Important

Sin asociación con el Banco Central del Uruguay.

Cliente Java para los webservices SOAP de cotizaciones del Banco Central del Uruguay:

  • WebService de Cotizaciones.
  • WebService de Monedas.
  • WebService de Último Cierre.

Basado en https://www.bcu.gub.uy/Acerca-de-BCU/RD_Solicitudes_Informacion/Documentaci%C3%B3n-Agregada/PedroScheeffer169.pdf.

Instalación

Requiere Java 25 o superior.

Gradle:

implementation("xyz.keibit:bcu-webservices:0.3.0")

Maven:

<dependency>
    <groupId>xyz.keibit</groupId>
    <artifactId>bcu-webservices</artifactId>
    <version>0.3.0</version>
</dependency>

Si se usa el module path, agregar requires xyz.keibit.bcu; al module-info.java.

Uso

var client = new BcuClient();

client.ultimoCierre();
// BcuUltimoCierreResponse[fecha=2026-10-23]

client.monedas(BcuMonedasGrupo.COTIZACIONES_LOCALES);
// BcuMonedasResponse[monedas=[
//     Moneda[codigo=501, nombre=PESO ARG.BILLETE],
//     Moneda[codigo=1001, nombre=REAL BILLETE],
//     Moneda[codigo=2224, nombre=DLS. USA CABLE],
//     Moneda[codigo=2225, nombre=DLS. USA BILLETE],
//     Moneda[codigo=2230, nombre=DLS.PROMED.FONDO],
//     Moneda[codigo=9700, nombre=UNIDAD PREVISIONAL],
//     Moneda[codigo=9800, nombre=UNIDAD INDEXADA],
//     Moneda[codigo=9900, nombre=UNIDAD REAJUSTAB]
// ]]

client.cotizaciones(
        List.of(2225, 9800), // DLS. USA BILLETE, UNIDAD INDEXADA
        LocalDate.of(2026, 10, 22),
        LocalDate.of(2026, 10, 23),
        BcuCotizacionesGrupo.COTIZACIONES_LOCALES
);
// BcuCotizacionesResponse[lineas=[
//     Linea[fecha=2026-10-22, monedaCodigo=2225, monedaNombre=DLS. USA BILLETE, monedaCodigoISO=DLS., monedaPaisEmisor=ESTADOS UNIDOS, tipoCambioCompra=40.083, tipoCambioVenta=40.083, arbitraje=1.0, formaArbitrar=UNIDAD_DE_MONEDA_POR_DOLARES_EEUU],
//     Linea[fecha=2026-10-23, monedaCodigo=2225, monedaNombre=DLS. USA BILLETE, monedaCodigoISO=DLS., monedaPaisEmisor=ESTADOS UNIDOS, tipoCambioCompra=40.078, tipoCambioVenta=40.078, arbitraje=1.0, formaArbitrar=UNIDAD_DE_MONEDA_POR_DOLARES_EEUU],
//     Linea[fecha=2026-10-22, monedaCodigo=9800, monedaNombre=UNIDAD INDEXADA, monedaCodigoISO=U.I., monedaPaisEmisor=URUGUAY, tipoCambioCompra=6.6734, tipoCambioVenta=6.6734, arbitraje=0.16649, formaArbitrar=DOLARES_EEUU_POR_UNIDAD_DE_MONEDA],
//     Linea[fecha=2026-10-23, monedaCodigo=9800, monedaNombre=UNIDAD INDEXADA, monedaCodigoISO=U.I., monedaPaisEmisor=URUGUAY, tipoCambioCompra=6.6745, tipoCambioVenta=6.6745, arbitraje=0.166538, formaArbitrar=DOLARES_EEUU_POR_UNIDAD_DE_MONEDA]
// ]]

About

Cliente Java para los webservices SOAP de cotizaciones del Banco Central del Uruguay.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages