Package org.knowm.xchange.coinbase.v2
Interface Coinbase
- All Known Subinterfaces:
CoinbaseAuthenticated
@Path("/")
@Produces("application/json")
public interface Coinbase
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetBuyPrice
(String apiVersion, String pair) getCurrencies
(String apiVersion) getCurrencyExchangeRates
(String apiVersion) getHistoricalSpotRate
(String apiVersion, String pair, String date) getSellPrice
(String apiVersion, String pair) getSpotRate
(String apiVersion, String pair)
-
Field Details
-
LOG
static final org.slf4j.Logger LOG -
CB_VERSION
All API calls should be made with a CB-VERSION header which guarantees that your call is using the correct API version. developers.coinbase.com/api/v2#versioning- See Also:
-
CB_VERSION_VALUE
- See Also:
-
-
Method Details
-
getCurrencies
@GET @Path("currencies") CoinbaseCurrencyData getCurrencies(@HeaderParam("CB-VERSION") String apiVersion) throws IOException, CoinbaseException - Throws:
IOException
CoinbaseException
-
getCurrencyExchangeRates
@GET @Path("exchange-rates") CoinbaseExchangeRateData getCurrencyExchangeRates(@HeaderParam("CB-VERSION") String apiVersion) throws IOException, CoinbaseException - Throws:
IOException
CoinbaseException
-
getBuyPrice
@GET @Path("prices/{pair}/buy") CoinbasePriceData getBuyPrice(@HeaderParam("CB-VERSION") String apiVersion, @PathParam("pair") String pair) throws IOException, CoinbaseException - Throws:
IOException
CoinbaseException
-
getSellPrice
@GET @Path("prices/{pair}/sell") CoinbasePriceData getSellPrice(@HeaderParam("CB-VERSION") String apiVersion, @PathParam("pair") String pair) throws IOException, CoinbaseException - Throws:
IOException
CoinbaseException
-
getSpotRate
@GET @Path("prices/{pair}/spot") CoinbasePriceData getSpotRate(@HeaderParam("CB-VERSION") String apiVersion, @PathParam("pair") String pair) throws IOException, CoinbaseException - Throws:
IOException
CoinbaseException
-
getHistoricalSpotRate
@GET @Path("prices/{pair}/spot") CoinbasePriceData getHistoricalSpotRate(@HeaderParam("CB-VERSION") String apiVersion, @PathParam("pair") String pair, @QueryParam("date") String date) throws IOException, CoinbaseException - Throws:
IOException
CoinbaseException
-
getTime
@GET @Path("time") CoinbaseTimeData getTime(@HeaderParam("CB-VERSION") String apiVersion) throws IOException, CoinbaseException - Throws:
IOException
CoinbaseException
-