You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the double percent (`%%`) between the group and artifactId. That'll ensure you get the right package for your Scala version.
@@ -58,13 +54,13 @@ Case class with defaults:
58
54
59
55
```scala
60
56
caseclassForexConfig(
61
-
nowishCacheSize: Int=13530,
57
+
nowishCacheSize: Int=13530,
62
58
nowishSecs: Int=300,
63
59
eodCacheSize: Int=405900,
64
60
getNearestDay: EodRounding=EodRoundDown,
65
61
baseCurrency: String="USD"
66
-
)
67
-
```
62
+
)
63
+
```
68
64
69
65
To go through each in turn:
70
66
@@ -76,7 +72,7 @@ To go through each in turn:
76
72
77
73
4.`getNearestDay` is the rounding configuration for latest eod(at) lookup. The lookup will be performed on the next day if the rounding mode is set to EodRoundUp, and on the previous day if EodRoundDown.
78
74
79
-
5.`baseCurrency` can be configured to different currencies by the users.
75
+
5.`baseCurrency` can be configured to different currencies by the users.
80
76
81
77
For an explanation for the default values please see section **4.4 Explanation of defaults** below.
82
78
@@ -87,9 +83,9 @@ Case class with defaults:
87
83
```scala
88
84
caseclassOerClientConfig(
89
85
appId: String,
90
-
accountLevel: AccountType
86
+
accountLevel: AccountType
91
87
) extendsForexClientConfig
92
-
```
88
+
```
93
89
94
90
To go through each in turn:
95
91
@@ -141,22 +137,22 @@ Lookup the latest EOD (end-of-date) rate prior to your event _(cacheing availabl
141
137
```scala
142
138
importorg.joda.time.{DateTime, DateTimeZone}
143
139
144
-
// USD => JPY at the end of 12/03/2011
140
+
// USD => JPY at the end of 12/03/2011
145
141
valfx=Forex(ForexConfig(), OerClientConfig(appId, DeveloperAccount)) // round down to previous day by default
There are 165 currencies provided by the OER API, hence 165 * 164 pairs of currency combinations.
357
353
The key in nowish cache is a tuple of source currency and target currency, and the nowish cache was implemented in a way such that a lookup from CurrencyA to CurrencyB or from CurrencyB to CurrencyA will use the same exchange rate, so we don't need to store both in the caches. Hence there are (165 * 164 / 2) pairs of currencies for nowish cache.
@@ -405,7 +401,7 @@ limitations under the License.
0 commit comments