Package org.knowm.xchange.coinbase
Interface Coinbase
-
- All Known Subinterfaces:
CoinbaseAuthenticated
@Path("api/v1") @Produces("application/json") public interface Coinbase- Author:
- jamespedwards42
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoinbaseTokencreateToken()CoinbaseUsercreateUser(CoinbaseUser user)CoinbasePricegetBuyPrice(BigDecimal quantity, String currency)List<CoinbaseCurrency>getCurrencies()Map<String,BigDecimal>getCurrencyExchangeRates()StringgetHistoricalSpotRates(Integer page)CoinbasePricegetSellPrice(BigDecimal quantity, String currency)CoinbaseMoneygetSpotRate(String currency)
-
-
-
Method Detail
-
getCurrencies
@GET @Path("currencies") List<CoinbaseCurrency> getCurrencies() throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getCurrencyExchangeRates
@GET @Path("currencies/exchange_rates") Map<String,BigDecimal> getCurrencyExchangeRates() throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getBuyPrice
@GET @Path("prices/buy") CoinbasePrice getBuyPrice(@QueryParam("qty") BigDecimal quantity, @QueryParam("currency") String currency) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getSellPrice
@GET @Path("prices/sell") CoinbasePrice getSellPrice(@QueryParam("qty") BigDecimal quantity, @QueryParam("currency") String currency) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getSpotRate
@GET @Path("prices/spot_rate") CoinbaseMoney getSpotRate(@QueryParam("currency") String currency) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
getHistoricalSpotRates
@GET @Produces("text/plain") @Path("prices/historical") String getHistoricalSpotRates(@QueryParam("page") Integer page) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
createUser
@POST @Consumes("application/json") @Path("users") CoinbaseUser createUser(CoinbaseUser user) throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
createToken
@POST @Path("tokens") CoinbaseToken createToken() throws IOException, CoinbaseException- Throws:
IOExceptionCoinbaseException
-
-