Class CoinbaseAccountService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
-
- org.knowm.xchange.coinbase.v2.service.CoinbaseAccountService
-
- All Implemented Interfaces:
AccountService,BaseService
public final class CoinbaseAccountService extends CoinbaseBaseService implements AccountService
-
-
Nested Class Summary
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoinbaseAccountData.CoinbaseAccountcreateCoinbaseAccount(String name)Authenticated resource that creates a new BTC account for the current user.TradeHistoryParamscreateFundingHistoryParams()AccountInfogetAccountInfo()CoinbaseAccountData.CoinbaseAccountgetCoinbaseAccount(Currency currency)Authenticated resource that shows the current user account for the give currency.List<CoinbaseAccountData.CoinbaseAccount>getCoinbaseAccounts()Authenticated resource that shows the current user accounts.List<CoinbasePaymentMethodsData.CoinbasePaymentMethod>getCoinbasePaymentMethods()Authenticated resource that shows the current user payment methods.MapgetDeposits(String accountId)MapgetTransactions(String accountId)MapgetWithdrawals(String accountId)StringwithdrawFunds(WithdrawFundsParams params)-
Methods inherited from class org.knowm.xchange.coinbase.v2.service.CoinbaseBaseService
getCoinbaseCurrencies, getCoinbaseTime, getSignature, showCurl
-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, 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
getDynamicTradingFees, getFundingHistory, requestDepositAddress, withdrawFunds
-
-
-
-
Constructor Detail
-
CoinbaseAccountService
public CoinbaseAccountService(Exchange exchange)
-
-
Method Detail
-
getAccountInfo
public AccountInfo getAccountInfo() throws IOException
- Specified by:
getAccountInfoin interfaceAccountService- Throws:
IOException
-
withdrawFunds
public String withdrawFunds(WithdrawFundsParams params) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
- Specified by:
withdrawFundsin interfaceAccountService- Throws:
ExchangeExceptionNotAvailableFromExchangeExceptionNotYetImplementedForExchangeExceptionIOException
-
createFundingHistoryParams
public TradeHistoryParams createFundingHistoryParams()
- Specified by:
createFundingHistoryParamsin interfaceAccountService
-
getTransactions
public Map getTransactions(String accountId) throws IOException
- Throws:
IOException
-
getDeposits
public Map getDeposits(String accountId) throws IOException
- Throws:
IOException
-
getWithdrawals
public Map getWithdrawals(String accountId) throws IOException
- Throws:
IOException
-
getCoinbaseAccounts
public List<CoinbaseAccountData.CoinbaseAccount> getCoinbaseAccounts() throws IOException
Authenticated resource that shows the current user accounts.- Throws:
IOException- See Also:
- developers.coinbase.com/api/v2#list-accounts
-
getCoinbaseAccount
public CoinbaseAccountData.CoinbaseAccount getCoinbaseAccount(Currency currency) throws IOException
Authenticated resource that shows the current user account for the give currency.- Throws:
IOException- See Also:
- developers.coinbase.com/api/v2#show-an-account
-
createCoinbaseAccount
public CoinbaseAccountData.CoinbaseAccount createCoinbaseAccount(String name) throws IOException
Authenticated resource that creates a new BTC account for the current user.- Throws:
IOException- See Also:
- developers.coinbase.com/api/v2#create-account
-
getCoinbasePaymentMethods
public List<CoinbasePaymentMethodsData.CoinbasePaymentMethod> getCoinbasePaymentMethods() throws IOException
Authenticated resource that shows the current user payment methods.- Throws:
IOException- See Also:
- developers.coinbase.com/api/v2?shell#list-payment-methods
-
-