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 CoinbaseAuthenticated
coinbase
protected si.mazi.rescu.ParamsDigest
signatureCreator
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Modifier Constructor Description protected
CoinbaseBaseService(Exchange exchange)
Constructor -
Method Summary
Modifier and Type Method Description CoinbaseToken
createCoinbaseToken()
Creates tokens redeemable for Bitcoin.CoinbaseUser
createCoinbaseUser(CoinbaseUser user)
Unauthenticated resource that creates a user with an email and password.CoinbaseUser
createCoinbaseUser(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
verifyOrder, verifyOrder, verifyOrder
-
Field Details
-
coinbase
-
signatureCreator
protected final si.mazi.rescu.ParamsDigest signatureCreator
-
-
Constructor Details
-
CoinbaseBaseService
Constructor- Parameters:
exchange
-
-
-
Method Details
-
getCoinbaseCurrencies
Unauthenticated resource that returns currencies supported on Coinbase.- Returns:
- A list of currency names and their corresponding ISO code.
- Throws:
IOException
-
createCoinbaseUser
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
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
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
-