public class UnitConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TRADED_UNIT |
Constructor and Description |
---|
UnitConverter(AdapterConfiguration adapterConfiguration) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertFromOZTAmount(java.lang.String currencyPair,
java.lang.String amount,
java.lang.String unit) |
java.lang.String |
convertToDisplayedAmount(java.lang.String requestId,
java.lang.String assetClass,
java.lang.String amount,
java.lang.String currencyPair,
java.lang.String unit)
Anything converted from a traded amount with this method will only be an approximation of what was actually
traded
|
java.lang.String |
convertToDisplayedGFA(java.lang.String assetClass,
java.lang.String gfa,
java.lang.String currencyPair,
java.lang.String unit) |
java.lang.String |
convertToOZTAmount(java.lang.String currencyPair,
java.lang.String amount,
java.lang.String unit) |
java.lang.String |
convertToTradableAmount(java.lang.String requestId,
java.lang.String assetClass,
java.lang.String amount,
java.lang.String currencyPair,
java.lang.String unit) |
java.util.List<java.lang.String> |
getAllPreciousMetalsCurrencyPairs() |
public static final java.lang.String TRADED_UNIT
public UnitConverter(AdapterConfiguration adapterConfiguration) throws DataSourceConfigurationException
DataSourceConfigurationException
public java.util.List<java.lang.String> getAllPreciousMetalsCurrencyPairs()
public java.lang.String convertToTradableAmount(java.lang.String requestId, java.lang.String assetClass, java.lang.String amount, java.lang.String currencyPair, java.lang.String unit) throws ConversionException
ConversionException
public java.lang.String convertToDisplayedAmount(java.lang.String requestId, java.lang.String assetClass, java.lang.String amount, java.lang.String currencyPair, java.lang.String unit) throws ConversionException
ConversionException
public java.lang.String convertToDisplayedGFA(java.lang.String assetClass, java.lang.String gfa, java.lang.String currencyPair, java.lang.String unit) throws ConversionException
ConversionException
public java.lang.String convertToOZTAmount(java.lang.String currencyPair, java.lang.String amount, java.lang.String unit) throws ConversionException
ConversionException
public java.lang.String convertFromOZTAmount(java.lang.String currencyPair, java.lang.String amount, java.lang.String unit) throws ConversionException
ConversionException
Copyright © 2019 Caplin Systems.