Interface CurrencyConversionService

All Superinterfaces:
Service

public interface CurrencyConversionService
extends Service
Service for converting a monetary amount from one currency to another, at a given point in time, using a specific currency "API".
  • Method Summary

    Modifier and Type Method Description
    java.math.BigDecimal convert​(java.math.BigDecimal amount, CurrencyCode from, CurrencyCode to, java.util.Date date, CurrencyConverter converter)
    Converts an amount from one currency to another
    java.util.List<java.lang.String> listAPIs()
    Lists the available APIs for a user to choose from when creating a CurrencyConverter.
    void registerAPI​(CurrencyConversionAPI api)
    Registers additional APIs for custom service providers.