Package org.knowm.xchange.coinbase.v2
Interface Coinbase
-
- All Known Subinterfaces:
CoinbaseAuthenticated
@Path("/") @Produces("application/json") public interface Coinbase
-
-
Field Summary
Fields Modifier and Type Field Description static StringCB_VERSIONAll API calls should be made with a CB-VERSION header which guarantees that your call is using the correct API version.static StringCB_VERSION_VALUEstatic org.slf4j.LoggerLOG
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoinbasePriceDatagetBuyPrice(String apiVersion, String pair)CoinbaseCurrencyDatagetCurrencies(String apiVersion)CoinbaseExchangeRateDatagetCurrencyExchangeRates(String apiVersion)CoinbasePriceDatagetHistoricalSpotRate(String apiVersion, String pair, String date)CoinbasePriceDatagetSellPrice(String apiVersion, String pair)CoinbasePriceDatagetSpotRate(String apiVersion, String pair)CoinbaseTimeDatagetTime(String apiVersion)
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
-
CB_VERSION
static final String 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:
- Constant Field Values
-
CB_VERSION_VALUE
static final String CB_VERSION_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrencies
@GET @Path("currencies") CoinbaseCurrencyData getCurrencies(@HeaderParam("CB-VERSION") String apiVersion) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getCurrencyExchangeRates
@GET @Path("exchange-rates") CoinbaseExchangeRateData getCurrencyExchangeRates(@HeaderParam("CB-VERSION") String apiVersion) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getBuyPrice
@GET @Path("prices/{pair}/buy") CoinbasePriceData getBuyPrice(@HeaderParam("CB-VERSION") String apiVersion, @PathParam("pair") String pair) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getSellPrice
@GET @Path("prices/{pair}/sell") CoinbasePriceData getSellPrice(@HeaderParam("CB-VERSION") String apiVersion, @PathParam("pair") String pair) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getSpotRate
@GET @Path("prices/{pair}/spot") CoinbasePriceData getSpotRate(@HeaderParam("CB-VERSION") String apiVersion, @PathParam("pair") String pair) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
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:
IOExceptionCoinbaseException
-
getTime
@GET @Path("time") CoinbaseTimeData getTime(@HeaderParam("CB-VERSION") String apiVersion) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
-