Class PolygonCurrencyConverter
java.lang.Object
com.truebubo.maniflow.money.PolygonCurrencyConverter
- All Implemented Interfaces:
CurrencyConverter
Converts between currencies based on polygon api
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(CurrencyDesignation from, CurrencyDesignation to) How much of the {to currency} can we buy for 1 {from currency}static PolygonCurrencyConverter
get()
Lazily gets the converter
-
Method Details
-
get
-
convert
How much of the {to currency} can we buy for 1 {from currency}- Specified by:
convert
in interfaceCurrencyConverter
- Parameters:
from
- Currency we sellto
- Currency we buy- Returns:
- exchange rate
-