Interface CmcAuthenticated
@Path("/v1")
@Produces("application/json")
public interface CmcAuthenticated
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCurrencyInfo
(String apiKey, String symbol) getCurrencyMap
(String apiKey, String listingStatus, int start, int limit, String sort) getLatestListing
(String apiKey, int start, int limit, String convert, String sort, String sortDirection, String cryptocurrencyType) getLatestQuotes
(String apiKey, String symbol, String convert)
-
Field Details
-
API_KEY_HEADER
- See Also:
-
-
Method Details
-
getCurrencyInfo
@GET @Path("cryptocurrency/info") CmcCurrencyInfoResponse getCurrencyInfo(@HeaderParam("X-CMC_PRO_API_KEY") String apiKey, @QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getCurrencyMap
@GET @Path("cryptocurrency/map") CmcCurrencyMapResponse getCurrencyMap(@HeaderParam("X-CMC_PRO_API_KEY") String apiKey, @QueryParam("listing_status") String listingStatus, @QueryParam("start") int start, @QueryParam("limit") int limit, @QueryParam("sort") String sort) throws IOException - Throws:
IOException
-
getLatestListing
@GET @Path("cryptocurrency/listings/latest") CmcTickerListResponse getLatestListing(@HeaderParam("X-CMC_PRO_API_KEY") String apiKey, @QueryParam("start") int start, @QueryParam("limit") int limit, @QueryParam("convert") String convert, @QueryParam("sort") String sort, @QueryParam("sort_dir") String sortDirection, @QueryParam("cryptocurrency_type") String cryptocurrencyType) throws IOException - Throws:
IOException
-
getLatestQuotes
@GET @Path("cryptocurrency/quotes/latest") CmcTickerResponse getLatestQuotes(@HeaderParam("X-CMC_PRO_API_KEY") String apiKey, @QueryParam("symbol") String symbol, @QueryParam("convert") String convert) throws IOException - Throws:
IOException
-