Interface CoinGeckoApiService


public interface CoinGeckoApiService
  • Method Details

    • ping

      @GET("ping") retrofit2.Call<Ping> ping()
    • getPrice

      @GET("simple/price") retrofit2.Call<Map<String,Map<String,Double>>> getPrice(@Query("ids") String ids, @Query("vs_currencies") String vsCurrencies, @Query("include_market_cap") boolean includeMarketCap, @Query("include_24hr_vol") boolean include24hrVol, @Query("include_24hr_change") boolean include24hrChange, @Query("include_last_updated_at") boolean includeLastUpdatedAt)
    • getTokenPrice

      @GET("simple/token_price/{id}") retrofit2.Call<Map<String,Map<String,Double>>> getTokenPrice(@Path("id") String id, @Query("contract_addresses") String contractAddress, @Query("vs_currencies") String vsCurrencies, @Query("include_market_cap") boolean includeMarketCap, @Query("include_24hr_vol") boolean include24hrVol, @Query("include_24hr_change") boolean include24hrChange, @Query("include_last_updated_at") boolean includeLastUpdatedAt)
    • getSupportedVsCurrencies

      @GET("simple/supported_vs_currencies") retrofit2.Call<List<String>> getSupportedVsCurrencies()
    • getCoinList

      @GET("coins/list") retrofit2.Call<List<CoinList>> getCoinList()
    • getCoinMarkets

      @GET("coins/markets") retrofit2.Call<List<CoinMarkets>> getCoinMarkets(@Query("vs_currency") String vsCurrency, @Query("ids") String ids, @Query("order") String order, @Query("per_page") Integer perPage, @Query("page") Integer page, @Query("sparkline") boolean sparkline, @Query("price_change_percentage") String priceChangePercentage)
    • getCoinById

      @GET("coins/{id}") retrofit2.Call<CoinFullData> getCoinById(@Path("id") String id, @Query("localization") boolean localization, @Query("tickers") boolean tickers, @Query("market_data") boolean marketData, @Query("community_data") boolean communityData, @Query("developer_data") boolean developerData, @Query("sparkline") boolean sparkline)
    • getCoinTickerById

      @GET("coins/{id}/tickers") retrofit2.Call<CoinTickerById> getCoinTickerById(@Path("id") String id, @Query("exchange_ids") String exchangeIds, @Query("page") Integer page, @Query("order") String order)
    • getCoinHistoryById

      @GET("coins/{id}/history") retrofit2.Call<CoinHistoryById> getCoinHistoryById(@Path("id") String id, @Query("date") String date, @Query("localization") boolean localization)
    • getCoinMarketChartById

      @GET("coins/{id}/market_chart") retrofit2.Call<MarketChart> getCoinMarketChartById(@Path("id") String id, @Query("vs_currency") String vsCurrency, @Query("days") Integer days)
    • getCoinMarketChartById

      @GET("coins/{id}/market_chart") retrofit2.Call<MarketChart> getCoinMarketChartById(@Path("id") String id, @Query("vs_currency") String vsCurrency, @Query("days") Integer days, @Query("interval") String interval)
    • getCoinMarketChartRangeById

      @GET("coins/{id}/market_chart/range") retrofit2.Call<MarketChart> getCoinMarketChartRangeById(@Path("id") String id, @Query("vs_currency") String vsCurrency, @Query("from") String from, @Query("to") String to)
    • getCoinOHLC

      @GET("coins/{id}/ohlc") retrofit2.Call<List<List<String>>> getCoinOHLC(@Path("id") String id, @Query("vs_currency") String vsCurrency, @Query("days") Integer days)
    • getCoinStatusUpdateById

      @GET("coins/{id}/status_updates") retrofit2.Call<StatusUpdates> getCoinStatusUpdateById(@Path("id") String id, @Query("per_page") Integer perPage, @Query("page") Integer page)
    • getCoinInfoByContractAddress

      @GET("coins/{id}/contract/{contract_address}") retrofit2.Call<CoinFullData> getCoinInfoByContractAddress(@Path("id") String id, @Path("contract_address") String contractAddress)
    • getAssetPlatforms

      @GET("asset_platforms") retrofit2.Call<List<AssetPlatforms>> getAssetPlatforms()
    • getExchanges

      @GET("exchanges") retrofit2.Call<List<Exchanges>> getExchanges(@Query("per_page") int perPage, @Query("page") int page)
    • getExchangesList

      @GET("exchanges/list") retrofit2.Call<List<ExchangesList>> getExchangesList()
    • getExchangesById

      @GET("exchanges/{id}") retrofit2.Call<ExchangeById> getExchangesById(@Path("id") String id)
    • getExchangesTickersById

      @GET("exchanges/{id}/tickers") retrofit2.Call<ExchangesTickersById> getExchangesTickersById(@Path("id") String id, @Query("coin_ids") String coinIds, @Query("page") Integer page, @Query("order") String order)
    • getExchangesStatusUpdatesById

      @GET("exchanges/{id}/status_updates") retrofit2.Call<StatusUpdates> getExchangesStatusUpdatesById(@Path("id") String id, @Query("per_page") Integer perPage, @Query("page") Integer page)
    • getExchangesVolumeChart

      @GET("exchanges/{id}/volume_chart") retrofit2.Call<List<List<String>>> getExchangesVolumeChart(@Path("id") String id, @Query("days") Integer days)
    • getStatusUpdates

      @GET("status_updates") retrofit2.Call<StatusUpdates> getStatusUpdates()
    • getStatusUpdates

      @GET("status_updates") retrofit2.Call<StatusUpdates> getStatusUpdates(@Query("category") String category, @Query("project_type") String projectType, @Query("per_page") Integer perPage, @Query("page") Integer page)
    • getEvents

      @GET("events") retrofit2.Call<Events> getEvents()
    • getEvents

      @GET("events") retrofit2.Call<Events> getEvents(@Query("country_code") String countryCode, @Query("type") String type, @Query("page") Integer page, @Query("upcoming_events_only") boolean upcomingEventsOnly, @Query("from_date") String fromDate, @Query("to_date") String toDate)
    • getEventsCountries

      @GET("events/countries") retrofit2.Call<EventCountries> getEventsCountries()
    • getEventsTypes

      @GET("events/types") retrofit2.Call<EventTypes> getEventsTypes()
    • getExchangeRates

      @GET("exchange_rates") retrofit2.Call<ExchangeRates> getExchangeRates()
    • getTrending

      @GET("search/trending") retrofit2.Call<Trending> getTrending()
    • getSearch

      @GET("search") retrofit2.Call<Search> getSearch(@Query("query") String query)
    • getGlobal

      @GET("global") retrofit2.Call<Global> getGlobal()
    • getDecentralizedFinanceDefi

      @GET("global/decentralized_finance_defi") retrofit2.Call<DecentralizedFinanceDefi> getDecentralizedFinanceDefi()