Class CoinbaseAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
org.knowm.xchange.coinbase.v2.service.CoinbaseAccountServiceRaw
org.knowm.xchange.coinbase.v2.service.CoinbaseAccountService
- All Implemented Interfaces:
AccountService
,BaseService
public final class CoinbaseAccountService extends CoinbaseAccountServiceRaw implements AccountService
-
Nested Class Summary
Nested classes/interfaces inherited from class org.knowm.xchange.coinbase.v2.service.CoinbaseAccountServiceRaw
CoinbaseAccountServiceRaw.CreateCoinbaseAccountPayload
Nested classes/interfaces inherited from class org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
CoinbaseBaseService.HttpMethod
-
Field Summary
Fields inherited from class org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
coinbase, signatureCreator2
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description CoinbaseAccountService(Exchange exchange)
-
Method Summary
Modifier and Type Method Description TradeHistoryParams
createFundingHistoryParams()
CreateTradeHistoryParams
object specific to this exchange.AccountInfo
getAccountInfo()
Get account infoString
withdrawFunds(WithdrawFundsParams params)
Withdraw funds from this account.Methods inherited from class org.knowm.xchange.coinbase.v2.service.CoinbaseAccountServiceRaw
createCoinbaseAccount, getCoinbaseAccount, getCoinbaseAccounts, getCoinbasePaymentMethods, getDeposits, getTransactions, getWithdrawals
Methods inherited from class org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
getCoinbaseCurrencies, getCoinbaseTime, getSignature, showCurl
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.knowm.xchange.service.account.AccountService
getDynamicTradingFeesByInstrument, getFundingHistory, requestDepositAddress, requestDepositAddressData, withdrawFunds, withdrawFunds
-
Constructor Details
-
CoinbaseAccountService
-
-
Method Details
-
getAccountInfo
Description copied from interface:AccountService
Get account info- Specified by:
getAccountInfo
in interfaceAccountService
- Returns:
- the AccountInfo object, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-
withdrawFunds
public String withdrawFunds(WithdrawFundsParams params) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOExceptionDescription copied from interface:AccountService
Withdraw funds from this account. Allows to withdraw digital currency funds from the exchange account to an external address- Specified by:
withdrawFunds
in interfaceAccountService
- Parameters:
params
- The withdrawl details- Returns:
- The result of the withdrawal (usually a transaction ID)
- Throws:
ExchangeException
- - Indication that the exchange reported some kind of error with the request or responseNotAvailableFromExchangeException
- - Indication that the exchange does not support the requested function or dataNotYetImplementedForExchangeException
- - Indication that the exchange supports the requested function or data, but it has not yet been implementedIOException
- - Indication that a networking error occurred while fetching JSON data
-
createFundingHistoryParams
Description copied from interface:AccountService
CreateTradeHistoryParams
object specific to this exchange. Object created by this method may be used to discover supported and requiredAccountService.getFundingHistory(TradeHistoryParams)
parameters and should be passed only to the method in the same class as the createFundingHistoryParams that created the object.- Specified by:
createFundingHistoryParams
in interfaceAccountService
-