Class CoinbaseBaseService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.coinbase.service.CoinbaseBaseService
-
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
CoinbaseAccountService,CoinbaseMarketDataService,CoinbaseTradeService
public class CoinbaseBaseService extends BaseExchangeService implements BaseService
- Author:
- jamespedwards42
-
-
Field Summary
Fields Modifier and Type Field Description protected CoinbaseAuthenticatedcoinbaseprotected si.mazi.rescu.ParamsDigestsignatureCreator-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCoinbaseBaseService(Exchange exchange)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoinbaseTokencreateCoinbaseToken()Creates tokens redeemable for Bitcoin.CoinbaseUsercreateCoinbaseUser(CoinbaseUser user)Unauthenticated resource that creates a user with an email and password.CoinbaseUsercreateCoinbaseUser(CoinbaseUser user, String oAuthClientId)Unauthenticated resource that creates a user with an email and password.List<CoinbaseCurrency>getCoinbaseCurrencies()Unauthenticated resource that returns currencies supported on Coinbase.protected <R extends CoinbaseBaseResponse>
RhandleResponse(R response)-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, verifyOrder, verifyOrder, verifyOrder
-
-
-
-
Field Detail
-
coinbase
protected final CoinbaseAuthenticated coinbase
-
signatureCreator
protected final si.mazi.rescu.ParamsDigest signatureCreator
-
-
Constructor Detail
-
CoinbaseBaseService
protected CoinbaseBaseService(Exchange exchange)
Constructor- Parameters:
exchange-
-
-
Method Detail
-
getCoinbaseCurrencies
public List<CoinbaseCurrency> getCoinbaseCurrencies() throws IOException
Unauthenticated resource that returns currencies supported on Coinbase.- Returns:
- A list of currency names and their corresponding ISO code.
- Throws:
IOException
-
createCoinbaseUser
public CoinbaseUser createCoinbaseUser(CoinbaseUser user) throws IOException
Unauthenticated resource that creates a user with an email and password.- Parameters:
user- New Coinbase User information.- Returns:
- Information for the newly created user.
- Throws:
IOException- See Also:
- coinbase.com/api/doc/1.0/users/create.html
-
createCoinbaseUser
public CoinbaseUser createCoinbaseUser(CoinbaseUser user, String oAuthClientId) throws IOException
Unauthenticated resource that creates a user with an email and password.- Parameters:
user- New Coinbase User information.oAuthClientId- Optional client id that corresponds to your OAuth2 application.- Returns:
- Information for the newly created user, including information to perform future OAuth requests for the user.
- Throws:
IOException- See Also:
- coinbase.com/api/doc/1.0/users/create.html
-
createCoinbaseToken
public CoinbaseToken createCoinbaseToken() throws IOException
Creates tokens redeemable for Bitcoin.- Returns:
- The returned Bitcoin address can be used to send money to the token, and will be credited to the account of the token redeemer if money is sent both before or after redemption.
- Throws:
IOException- See Also:
- coinbase.com/api/doc/1.0/tokens/create.html
-
handleResponse
protected <R extends CoinbaseBaseResponse> R handleResponse(R response)
-
-