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