Class CoinbaseBaseService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
-
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
CoinbaseAccountService,CoinbaseMarketDataService,CoinbaseTradeService
public class CoinbaseBaseService extends BaseExchangeService implements BaseService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoinbaseBaseService.HttpMethod
-
Field Summary
Fields Modifier and Type Field Description protected CoinbaseAuthenticatedcoinbaseprotected CoinbaseV2DigestsignatureCreator2-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCoinbaseBaseService(Exchange exchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CoinbaseCurrencyData.CoinbaseCurrency>getCoinbaseCurrencies()Unauthenticated resource that returns currencies supported on Coinbase.CoinbaseTimeData.CoinbaseTimegetCoinbaseTime()Unauthenticated resource that tells you the server time.protected StringgetSignature(BigDecimal timestamp, CoinbaseBaseService.HttpMethod method, String path, String body)protected voidshowCurl(CoinbaseBaseService.HttpMethod method, String apiKey, BigDecimal timestamp, String signature, String path, String json)-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, verifyOrder, verifyOrder, verifyOrder
-
-
-
-
Field Detail
-
coinbase
protected final CoinbaseAuthenticated coinbase
-
signatureCreator2
protected final CoinbaseV2Digest signatureCreator2
-
-
Constructor Detail
-
CoinbaseBaseService
protected CoinbaseBaseService(Exchange exchange)
-
-
Method Detail
-
getCoinbaseCurrencies
public List<CoinbaseCurrencyData.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- See Also:
- developers.coinbase.com/api/v2#get-currencies
-
getCoinbaseTime
public CoinbaseTimeData.CoinbaseTime getCoinbaseTime() throws IOException
Unauthenticated resource that tells you the server time.- Returns:
- The current server time.
- Throws:
IOException- See Also:
- developers.coinbase.com/api/v2#get-current-time
-
getSignature
protected String getSignature(BigDecimal timestamp, CoinbaseBaseService.HttpMethod method, String path, String body)
-
showCurl
protected void showCurl(CoinbaseBaseService.HttpMethod method, String apiKey, BigDecimal timestamp, String signature, String path, String json)
-
-