public interface ICurrencyConverter
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
convert(java.math.BigDecimal amount,
ICurrency sourceCurrency,
ICurrency targetCurrency,
OfferSide side,
int scale)
Converts given amount from one currency to another.
|
java.math.BigDecimal |
convert(java.math.BigDecimal amount,
ICurrency sourceCurrency,
ICurrency targetCurrency,
OfferSide side,
int scale,
boolean blocking)
Converts given amount from one currency to another.
|
java.math.BigDecimal |
convert(java.math.BigDecimal amount,
ICurrency sourceCurrency,
ICurrency targetCurrency,
OfferSide side,
int scale,
long time)
Converts given amount from one currency to another using price at specified time.
|
double |
convert(double amount,
ICurrency sourceCurrency,
ICurrency targetCurrency,
OfferSide side,
int scale)
Converts given amount from one currency to another.
|
double |
convert(double amount,
ICurrency sourceCurrency,
ICurrency targetCurrency,
OfferSide side,
int scale,
boolean blocking)
Converts given amount from one currency to another.
|
double |
convert(double amount,
ICurrency sourceCurrency,
ICurrency targetCurrency,
OfferSide side,
int scale,
long time)
Converts given amount from one currency to another using price at specified time.
|
java.math.BigDecimal |
convertCommission(java.math.BigDecimal commission,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale)
Converts commission from one currency to another.
|
java.math.BigDecimal |
convertCommission(java.math.BigDecimal commission,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
boolean blocking)
Converts commission from one currency to another.
|
java.math.BigDecimal |
convertCommission(java.math.BigDecimal commission,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
long time)
Converts commission from one currency to another using price at specified time.
|
double |
convertCommission(double commission,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale)
Converts commission from one currency to another.
|
double |
convertCommission(double commission,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
boolean blocking)
Converts commission from one currency to another.
|
double |
convertCommission(double commission,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
long time)
Converts commission from one currency to another using price at specified time.
|
java.math.BigDecimal |
convertProfitLoss(java.math.BigDecimal profitLoss,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale)
Converts P/L from one currency to another.
|
java.math.BigDecimal |
convertProfitLoss(java.math.BigDecimal profitLoss,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
boolean blocking)
Converts P/L from one currency to another.
|
java.math.BigDecimal |
convertProfitLoss(java.math.BigDecimal profitLoss,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
long time)
Converts P/L from one currency to another using price at specified time.
|
double |
convertProfitLoss(double profitLoss,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale)
Converts P/L from one currency to another.
|
double |
convertProfitLoss(double profitLoss,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
boolean blocking)
Converts P/L from one currency to another.
|
double |
convertProfitLoss(double profitLoss,
ICurrency sourceCurrency,
ICurrency targetCurrency,
int scale,
long time)
Converts P/L from one currency to another using price at specified time.
|
double convert(double amount, ICurrency sourceCurrency, ICurrency targetCurrency, OfferSide side, int scale)
Double.NaN
is returned when price for conversion is unavailable.amount
- amount which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madeside
- offer side used to determine price for conversionscale
- result value scaledouble convert(double amount, ICurrency sourceCurrency, ICurrency targetCurrency, OfferSide side, int scale, boolean blocking)
amount
- amount which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madeside
- offer side used to determine price for conversionscale
- result value scaleblocking
- pass true
if calling thread is allowed to block when price for conversion need to be loaded, false
otherwisedouble convert(double amount, ICurrency sourceCurrency, ICurrency targetCurrency, OfferSide side, int scale, long time)
amount
- amount which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madeside
- offer side used to determine price for conversionscale
- result value scaletime
- time at which price for conversion is determinedjava.math.BigDecimal convert(java.math.BigDecimal amount, ICurrency sourceCurrency, ICurrency targetCurrency, OfferSide side, int scale)
null
is returned when price for conversion is unavailable.amount
- amount which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madeside
- offer side used to determine price for conversionscale
- result value scalejava.math.BigDecimal convert(java.math.BigDecimal amount, ICurrency sourceCurrency, ICurrency targetCurrency, OfferSide side, int scale, boolean blocking)
amount
- amount which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madeside
- offer side used to determine price for conversionscale
- result value scaleblocking
- pass true
if calling thread is allowed to block when price for conversion need to be loaded, false
otherwisejava.math.BigDecimal convert(java.math.BigDecimal amount, ICurrency sourceCurrency, ICurrency targetCurrency, OfferSide side, int scale, long time)
amount
- amount which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madeside
- offer side used to determine price for conversionscale
- result value scaletime
- time at which price for conversion is determineddouble convertCommission(double commission, ICurrency sourceCurrency, ICurrency targetCurrency, int scale)
Double.NaN
is returned when price for conversion is unavailable.commission
- commission which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaledouble convertCommission(double commission, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, boolean blocking)
commission
- commission which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaleblocking
- pass true
if calling thread is allowed to block when price for conversion need to be loaded, false
otherwisedouble convertCommission(double commission, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, long time)
commission
- commission which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaletime
- time at which price for conversion is determinedjava.math.BigDecimal convertCommission(java.math.BigDecimal commission, ICurrency sourceCurrency, ICurrency targetCurrency, int scale)
null
is returned when price for conversion is unavailable.commission
- commission which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scalejava.math.BigDecimal convertCommission(java.math.BigDecimal commission, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, boolean blocking)
commission
- commission which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaleblocking
- pass true
if calling thread is allowed to block when price for conversion need to be loaded, false
otherwisejava.math.BigDecimal convertCommission(java.math.BigDecimal commission, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, long time)
commission
- commission which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaletime
- time at which price for conversion is determineddouble convertProfitLoss(double profitLoss, ICurrency sourceCurrency, ICurrency targetCurrency, int scale)
Double.NaN
is returned when price for conversion is unavailable.profitLoss
- P/L which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaledouble convertProfitLoss(double profitLoss, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, boolean blocking)
profitLoss
- P/L which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaleblocking
- pass true
if calling thread is allowed to block when price for conversion need to be loaded, false
otherwisedouble convertProfitLoss(double profitLoss, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, long time)
profitLoss
- P/L which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaletime
- time at which price for conversion is determinedjava.math.BigDecimal convertProfitLoss(java.math.BigDecimal profitLoss, ICurrency sourceCurrency, ICurrency targetCurrency, int scale)
null
is returned when price for conversion is unavailable.profitLoss
- P/L which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scalejava.math.BigDecimal convertProfitLoss(java.math.BigDecimal profitLoss, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, boolean blocking)
profitLoss
- P/L which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaleblocking
- pass true
if calling thread is allowed to block when price for conversion need to be loaded, false
otherwisejava.math.BigDecimal convertProfitLoss(java.math.BigDecimal profitLoss, ICurrency sourceCurrency, ICurrency targetCurrency, int scale, long time)
profitLoss
- P/L which is to be convertedsourceCurrency
- the currency from which conversion is madetargetCurrency
- the currency to which conversion is madescale
- result value scaletime
- time at which price for conversion is determinedCopyright © 2024. All rights reserved.