This project is a Java libray to consume the Euro foreign exchange reference rates API. It is built with Micronaut and you can use it in a Micronaut app or as a standalone library.

Dependency snippet

To use it with Gradle:

implementation 'com.softamo:eurorates:1.0.1-SNAPSHOT'

To use it with Maven:

<dependency><groupId>com.softamo</groupId><artifactId>eurorates</artifactId><version>1.0.1-SNAPSHOT</version><type>pom</type></dependency>

Usage

If you want to use the library in Micronaut application, the library registers a bean of type como.softamos.eurorates.EuroRatesApi in the Micronaut’s application context.

You can use the library without a Micronaut Application Context. In that case, to obtain a EuroRatesApi do:

EuroRatesApi euroRatesApi = new ManualEuroRatesApi();

The api contains methods to obtain the current rates, historic rates and last 90 days rates.

Build

This library uses Gradle.

It uses the plugins: