Request rates from one-frame as a batch
Closed this issue · 0 comments
what-the-functor commented
As a developer of the forex-mtl service
I want to request all supported rates from one-frame
And cache the results
So that, not more than 1000 requests are sent to one-frame for the API token per day (24h period)
Acceptance Criteria
Scenario 1 - Rate request - cold cache
Given a request for a FX rate
When the cache does not contain the rate
Then all supported rates are requested from one-frame
And the requested rate is returned
Scenario 2 - Rate request - warm cache
Given a request for a FX rate
When the cache contains the rate
Then the cached rate is returned
Scenario 3 - Rate age
Given a FX rate
Then the age of the rate is less than 5 minutes