Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-16 11:07:58 +03:00
parent f7412dfd86
commit 0cd5575681
20 changed files with 437 additions and 162 deletions

View file

@ -34,7 +34,7 @@ interface TangemTechMarketsApi {
@GET("coins/history_preview")
suspend fun getCoinsListCharts(
@Query("coin_ids") coinIds: List<String>,
@Query("coin_ids") coinIds: String,
@Query("currency") currency: String,
@Query("interval") interval: String,
): ApiResponse<TokenMarketChartListResponse>

View file

@ -1,8 +1,3 @@
package com.tangem.datasource.api.markets.models.response
import com.squareup.moshi.Json
class TokenMarketChartListResponse(
@Json(name = "tokens")
val tokens: Map<String, TokenMarketChartResponse>,
)
typealias TokenMarketChartListResponse = Map<String, TokenMarketChartResponse>

View file

@ -132,7 +132,7 @@ class NetworkModule {
@Provides
@DevTangemApi
@Singleton
fun provideCoinMarketsApi(
fun provideTangemTechMarketsApi(
@NetworkMoshi moshi: Moshi,
@ApplicationContext context: Context,
appVersionProvider: AppVersionProvider,