Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-17 17:43:48 +03:00
parent 3c8fb7f668
commit 21ef61585b
24 changed files with 1255 additions and 85 deletions

View file

@ -63,11 +63,13 @@ internal class MarketsBatchUpdateFetcher(
}
}
is TokenMarketUpdateRequest.UpdateQuotes -> {
val quotesRes = tangemTechApi.getQuotes(
currencyId = updateRequest.currencyId,
coinIds = idsToUpdate.joinToString(separator = ","),
fields = quoteFields.joinToString(separator = ","),
).getOrThrow()
val quotesRes = retryOnError {
tangemTechApi.getQuotes(
currencyId = updateRequest.currencyId,
coinIds = idsToUpdate.map { it.second }.flatten().joinToString(separator = ","),
fields = quoteFields.joinToString(separator = ","),
).getOrThrow()
}
update {
val res = toUpdate.map { batch ->