Updated on 2026-08-14
This commit is contained in:
parent
ae4c521813
commit
e56e411930
6 changed files with 75 additions and 76 deletions
|
|
@ -26,7 +26,7 @@ interface TangemTechApi {
|
|||
): CoinsResponse
|
||||
|
||||
@GET("rates")
|
||||
suspend fun rates(
|
||||
suspend fun getRates(
|
||||
@Query("currencyId") currencyId: String,
|
||||
@Query("coinIds") coinIds: String,
|
||||
): RatesResponse
|
||||
|
|
|
|||
|
|
@ -41,15 +41,6 @@ class TangemTechService(
|
|||
}
|
||||
}
|
||||
|
||||
suspend fun rates(
|
||||
currency: String,
|
||||
ids: List<String>,
|
||||
): Result<RatesResponse> = withContext(Dispatchers.IO) {
|
||||
performRequest {
|
||||
api.rates(currency.lowercase(), ids.joinToString(","))
|
||||
}
|
||||
}
|
||||
|
||||
fun addHeaderInterceptors(interceptors: List<AddHeaderInterceptor>) {
|
||||
headerInterceptors.removeAll(interceptors)
|
||||
headerInterceptors.addAll(interceptors)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue