final case class ForexLookupWhen[F[_]](conversionAmount: Double, fromCurr: CurrencyUnit, toCurr: CurrencyUnit, config: ForexConfig, client: OerClient[F]) extends Product with Serializable
ForexLookupWhen is the final part of the fluent interface, methods in this class are the final stage of currency lookup/conversion
- conversionAmount
The amount of money to be converted, it is set to 1 for lookup operation
- fromCurr
The source currency
- toCurr
The target currency
- config
Forex config
- client
Passed down client that does actual work
- Alphabetic
- By Inheritance
- ForexLookupWhen
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ForexLookupWhen(conversionAmount: Double, fromCurr: CurrencyUnit, toCurr: CurrencyUnit, config: ForexConfig, client: OerClient[F])
- conversionAmount
The amount of money to be converted, it is set to 1 for lookup operation
- fromCurr
The source currency
- toCurr
The target currency
- config
Forex config
- client
Passed down client that does actual work
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
at(tradeDate: ZonedDateTime)(implicit M: Monad[F]): F[Either[OerResponseError, Money]]
Gets the latest end-of-day rate prior to the event or post to the event
Gets the latest end-of-day rate prior to the event or post to the event
- returns
Money representation in target currency or OerResponseError object if API request failed
- val client: OerClient[F]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val config: ForexConfig
- val conversionAmount: Double
- val conversionAmt: BigDecimal
-
def
eod(eodDate: ZonedDateTime)(implicit M: Monad[F]): F[Either[OerResponseError, Money]]
Gets the end-of-day rate for the specified date
Gets the end-of-day rate for the specified date
- returns
Money representation in target currency or OerResponseError object if API request failed
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val fromCurr: CurrencyUnit
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
now(implicit M: Monad[F], C: ZonedClock[F]): F[Either[OerResponseError, Money]]
Performs live currency lookup/conversion
Performs live currency lookup/conversion
- returns
Money representation in target currency or OerResponseError object if API request failed
-
def
nowish(implicit M: Monad[F], C: ZonedClock[F]): F[Either[OerResponseError, Money]]
Performs near-live currency lookup/conversion.
Performs near-live currency lookup/conversion. A cached version of the live exchange rate is used if a cache exists and the timestamp of that exchange rate is less than or equal to "nowishSecs" old. Otherwise a new lookup is performed.
- returns
Money representation in target currency or OerResponseError object if API request failed
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val toCurr: CurrencyUnit
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )