Updated on 2026-08-14
This commit is contained in:
parent
f7412dfd86
commit
0cd5575681
20 changed files with 437 additions and 162 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -132,7 +132,7 @@ class NetworkModule {
|
|||
@Provides
|
||||
@DevTangemApi
|
||||
@Singleton
|
||||
fun provideCoinMarketsApi(
|
||||
fun provideTangemTechMarketsApi(
|
||||
@NetworkMoshi moshi: Moshi,
|
||||
@ApplicationContext context: Context,
|
||||
appVersionProvider: AppVersionProvider,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue