Class CoinbaseBaseService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
CoinbaseAccountServiceRaw
,CoinbaseMarketDataService
,CoinbaseTradeService
public class CoinbaseBaseService extends BaseExchangeService implements BaseService
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoinbaseBaseService.HttpMethod
-
Field Summary
Fields Modifier and Type Field Description protected CoinbaseAuthenticated
coinbase
protected CoinbaseV2Digest
signatureCreator2
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Modifier Constructor Description protected
CoinbaseBaseService(Exchange exchange)
-
Method Summary
Modifier and Type Method Description List<CoinbaseCurrencyData.CoinbaseCurrency>
getCoinbaseCurrencies()
Unauthenticated resource that returns currencies supported on Coinbase.CoinbaseTimeData.CoinbaseTime
getCoinbaseTime()
Unauthenticated resource that tells you the server time.protected String
getSignature(BigDecimal timestamp, CoinbaseBaseService.HttpMethod method, String path, String body)
protected void
showCurl(CoinbaseBaseService.HttpMethod method, String apiKey, BigDecimal timestamp, String signature, String path, String json)
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Field Details
-
coinbase
-
signatureCreator2
-
-
Constructor Details
-
CoinbaseBaseService
-
-
Method Details
-
getCoinbaseCurrencies
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
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)
-