Updated on 2026-08-14
This commit is contained in:
parent
0ae9e75e90
commit
bbce67bcd2
12 changed files with 68 additions and 11 deletions
|
|
@ -18,6 +18,7 @@ interface TangemTechMarketsApi {
|
|||
@Query("order") order: String,
|
||||
@Query("search") search: String?,
|
||||
@Query("timestamp") timestamp: Long?,
|
||||
@Query("showNetworks") showNetworks: Boolean? = null,
|
||||
): ApiResponse<TokenMarketListResponse>
|
||||
|
||||
@GET("v1/coins/{coin_id}")
|
||||
|
|
|
|||
|
|
@ -27,8 +27,16 @@ data class TokenMarketListResponse(
|
|||
@Json(name = "is_under_market_cap_limit") val isUnderMarketCapLimit: Boolean?,
|
||||
@Json(name = "staking_opportunities") val stakingOpportunities: List<StakingOpportunities>?,
|
||||
@Json(name = "max_yield_apy") val maxYieldApy: BigDecimal?,
|
||||
@Json(name = "networks") val networks: List<Network>? = null,
|
||||
) {
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class Network(
|
||||
@Json(name = "network_id") val networkId: String,
|
||||
@Json(name = "contract_address") val contractAddress: String?,
|
||||
@Json(name = "decimal_count") val decimalCount: Int?,
|
||||
)
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class PriceChangePercentage(
|
||||
@Json(name = "24h") val h24: BigDecimal?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue