Closed tiero closed 2 years ago
cc/ @sekulicd any ideas?
Do we have exact request that failed? @tiero
The request body was
{
"time_range": {
"predefined_period": 2
},
"market_ids": [
"1", "6", "5", "2"
],
"reference_currency": "eur",
"page": {
"page_size": 288
}
}
Could be maybe related to rate limit error by external exchange rate api.
Would be best to catch this? Maybe best to return anyway data we have, to prevent external dependency halt our response? eventually we can return the reference price converted empty when it happens?
@tiero yeah, lets refactor a bit this by having some cache of prices from which we will fetch data and refresh it periodically.
@tiero yeah, lets refactor a bit this by having some cache of prices from which we will fetch data and refresh it periodically.
I think it's important having not huge window of refresh: if happens a cached price too "old" (like more than 5 minutes?) best to return empty, than a wrong/old price
Would you take this? @altafan
Clients using gRPC get randomly the below error calling the MarketPrice endpoint