public final class CoinbaseAccountService extends CoinbaseBasePollingService implements PollingAccountService
coinbase, signatureCreatorexchange| Constructor and Description |
|---|
CoinbaseAccountService(Exchange exchange)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
CoinbaseBaseResponse |
cancelCoinbaseRequest(String transactionId)
Authenticated resource which lets a user cancel a money request.
|
CoinbaseTransaction |
completeCoinbaseRequest(String transactionId)
Authenticated resource which lets a user complete a money request.
|
CoinbaseButton |
createCoinbaseButton(CoinbaseButton button)
Authenticated resource that creates a payment button, page, or iFrame to accept Bitcoin on your website.
|
CoinbaseOrder |
createCoinbaseOrder(CoinbaseButton button)
Authenticated resource which returns an order for a new button.
|
CoinbaseOrder |
createCoinbaseOrder(String code)
Authenticated resource which lets you generate an order associated with a button.
|
CoinbaseAddress |
generateCoinbaseReceiveAddress()
Authenticated resource that generates a new Bitcoin receive address for the user.
|
CoinbaseAddress |
generateCoinbaseReceiveAddress(String callbackUrl,
String label)
Authenticated resource that generates a new Bitcoin receive address for the user.
|
AccountInfo |
getAccountInfo()
Get account info
|
CoinbaseAccountChanges |
getCoinbaseAccountChanges()
Authenticated resource which returns all related changes to an account.
|
CoinbaseAccountChanges |
getCoinbaseAccountChanges(Integer page)
Authenticated resource which returns all related changes to an account.
|
CoinbaseAddresses |
getCoinbaseAddresses()
Authenticated resource that returns Bitcoin addresses a user has associated with their account.
|
CoinbaseAddresses |
getCoinbaseAddresses(Integer page,
Integer limit,
String filter)
Authenticated resource that returns Bitcoin addresses a user has associated with their account.
|
CoinbaseMoney |
getCoinbaseBalance()
Authenticated resource that returns the user’s current account balance in BTC.
|
CoinbaseContacts |
getCoinbaseContacts()
Authenticated resource that returns contacts the user has previously sent to or received from.
|
CoinbaseContacts |
getCoinbaseContacts(Integer page,
Integer limit,
String filter)
Authenticated resource that returns contacts the user has previously sent to or received from.
|
CoinbaseOrder |
getCoinbaseOrder(String orderIdOrCustom)
Authenticated resource which returns order details for a specific order id or merchant custom.
|
CoinbaseOrders |
getCoinbaseOrders()
Authenticated resource which returns a merchant’s orders that they have received.
|
CoinbaseOrders |
getCoinbaseOrders(Integer page)
Authenticated resource which returns a merchant’s orders that they have received.
|
CoinbaseAddress |
getCoinbaseReceiveAddress()
Authenticated resource that returns the user’s current Bitcoin receive address.
|
CoinbaseRecurringPayment |
getCoinbaseRecurringPayment(String recurringPaymentId)
Authenticated resource that lets you show an individual recurring payment.
|
CoinbaseRecurringPayments |
getCoinbaseRecurringPayments()
Authenticated resource that lets you list all your recurring payments (scheduled buys, sells, and subscriptions you’ve created with merchants).
|
CoinbaseRecurringPayments |
getCoinbaseRecurringPayments(Integer page,
Integer limit)
Authenticated resource that lets you list all your recurring payments (scheduled buys, sells, and subscriptions you’ve created with merchants).
|
CoinbaseSubscription |
getCoinbaseSubscription(String subscriptionId)
Authenticated resource that lets you (as a merchant) show an individual subscription than a customer has created with you.
|
CoinbaseSubscriptions |
getCoinbaseSubscriptions()
Authenticated resource that lets you (as a merchant) list all the subscriptions customers have made with you.
|
CoinbaseSubscriptions |
getCoinbaseSubscriptions(Integer page,
Integer limit)
Authenticated resource that lets you (as a merchant) list all the subscriptions customers have made with you.
|
CoinbaseTransaction |
getCoinbaseTransaction(String transactionIdOrIdemField)
Authenticated resource which returns the details of an individual transaction.
|
CoinbaseTransactions |
getCoinbaseTransactions()
Authenticated resource which returns the user’s most recent transactions.
|
CoinbaseTransactions |
getCoinbaseTransactions(Integer page)
Authenticated resource which returns the user’s most recent transactions.
|
CoinbaseUsers |
getCoinbaseUsers()
Authenticated resource that shows the current user and their settings.
|
boolean |
redeemCoinbaseToken(String tokenId)
Authenticated resource which claims a redeemable token for its address and Bitcoin.
|
String |
requestDepositAddress(String currency,
String... arguments)
Request a digital currency address to fund this account.
|
CoinbaseTransaction |
requestMoneyCoinbaseRequest(CoinbaseTransaction.CoinbaseRequestMoneyRequest transactionRequest)
Authenticated resource which lets the user request money from a Bitcoin address.
|
CoinbaseBaseResponse |
resendCoinbaseRequest(String transactionId)
Authenticated resource which lets the user resend a money request.
|
CoinbaseTransaction |
sendMoneyCoinbaseRequest(CoinbaseTransaction.CoinbaseSendMoneyRequest transactionRequest)
Authenticated resource which lets you send money to an email or Bitcoin address.
|
CoinbaseUser |
updateCoinbaseUser(CoinbaseUser user)
Authenticated resource that lets you update account settings for the current user.
|
String |
withdrawFunds(String currency,
BigDecimal amount,
String address)
Withdraw funds from this account.
|
createCoinbaseToken, createCoinbaseUser, createCoinbaseUser, getCoinbaseCurrencies, handleResponsegetExchangeSymbols, verifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExchangeSymbolspublic CoinbaseAccountService(Exchange exchange)
exchange - public AccountInfo getAccountInfo() throws IOException
PollingAccountServicegetAccountInfo in interface PollingAccountServiceIOException - - Indication that a networking error occurred while fetching JSON datapublic String withdrawFunds(String currency, BigDecimal amount, String address) throws IOException
PollingAccountServicewithdrawFunds in interface PollingAccountServicecurrency - The currency to withdrawamount - The amount to withdrawaddress - The destination addressCoinbaseAccountServiceRaw.getCoinbaseTransaction(String transactionIdOrIdemField) to retreive more information about the
transaction, including the blockchain transaction hash.IOException - - Indication that a networking error occurred while fetching JSON datapublic String requestDepositAddress(String currency, String... arguments) throws IOException
PollingAccountServicerequestDepositAddress in interface PollingAccountServicecurrency - The digital currency that corresponds to the desired deposit address.IOException - - Indication that a networking error occurred while fetching JSON datapublic CoinbaseUsers getCoinbaseUsers() throws IOException
CoinbaseUsers wrapper around the current CoinbaseUser containing account settings.IOExceptionpublic CoinbaseUser updateCoinbaseUser(CoinbaseUser user) throws IOException
getCoinbaseUsers() to retrieve the current user
first.user - CoinbaseUser with new information to be updated.CoinbaseUser with the requested updated account settings.IOExceptionpublic boolean redeemCoinbaseToken(String tokenId) throws IOException
tokenId - IOExceptionpublic CoinbaseMoney getCoinbaseBalance() throws IOException
CoinbaseAmount wrapper around a CoinbaseMoney object representing the current user's balance.IOExceptionpublic CoinbaseAddress getCoinbaseReceiveAddress() throws IOException
CoinbaseAddress.IOExceptionpublic CoinbaseAddresses getCoinbaseAddresses() throws IOException
CoinbaseAddresses wrapper around a collection of CoinbaseAddress's associated with the current user's account.IOExceptionpublic CoinbaseAddresses getCoinbaseAddresses(Integer page, Integer limit, String filter) throws IOException
page - Optional parameter to request a desired page of results. Will return page 1 if the supplied page is null or less than 1.limit - Optional parameter to limit the maximum number of results to return. Will return up to 25 results by default if null or less than 1.filter - Optional String match to filter addresses. Matches the address itself and also if the use has set a ‘label’ on the address. No
filter is applied if filter is null or empty.CoinbaseAddresses wrapper around a collection of CoinbaseAddress's associated with the current user's account.IOExceptionpublic CoinbaseAddress generateCoinbaseReceiveAddress() throws IOException
CoinbaseAddress.IOExceptionpublic CoinbaseAddress generateCoinbaseReceiveAddress(String callbackUrl, String label) throws IOException
callbackUrl - Optional Callback URL to receive instant payment notifications whenever funds arrive to this address.label - Optional text label for the address which can be used to filter against when calling getCoinbaseAddresses().CoinbaseAddress.IOExceptionpublic CoinbaseAccountChanges getCoinbaseAccountChanges() throws IOException
getCoinbaseTransactions API call.
It is designed to be faster and provide more detail so you can generate an overview/summary of individual account changes. This is a paged
resource and will return 30 results representing the first page by default.IOExceptionpublic CoinbaseAccountChanges getCoinbaseAccountChanges(Integer page) throws IOException
getCoinbaseTransactions API call.
It is designed to be faster and provide more detail so you can generate an overview/summary of individual account changes.page - Optional parameter to request a desired page of results. Will return page 1 if the supplied page is null or less than 1.IOExceptionpublic CoinbaseContacts getCoinbaseContacts() throws IOException
CoinbaseContacts the user has previously sent to or received from.IOExceptionpublic CoinbaseContacts getCoinbaseContacts(Integer page, Integer limit, String filter) throws IOException
page - Optional parameter to request a desired page of results. Will return page 1 if the supplied page is null or less than 1.limit - Optional parameter to limit the maximum number of results to return. Will return up to 25 results by default if null or less than 1.filter - Optional String match to filter addresses. Matches the address itself and also if the use has set a ‘label’ on the address. No
filter is applied if filter is null or empty.CoinbaseContacts the user has previously sent to or received from.IOExceptionpublic CoinbaseTransactions getCoinbaseTransactions() throws IOException
CoinbaseTransactions.IOExceptionpublic CoinbaseTransactions getCoinbaseTransactions(Integer page) throws IOException
page - Optional parameter to request a desired page of results. Will return page 1 if the supplied page is null or less than 1.CoinbaseTransactions.IOExceptionpublic CoinbaseTransaction getCoinbaseTransaction(String transactionIdOrIdemField) throws IOException
transactionIdOrIdemField - IOExceptionpublic CoinbaseTransaction requestMoneyCoinbaseRequest(CoinbaseTransaction.CoinbaseRequestMoneyRequest transactionRequest) throws IOException
transactionRequest - CoinbaseTransaction representing the desired CoinbaseRequestMoneyRequest.IOExceptionpublic CoinbaseTransaction sendMoneyCoinbaseRequest(CoinbaseTransaction.CoinbaseSendMoneyRequest transactionRequest) throws IOException
transactionRequest - CoinbaseTransaction representing the desired CoinbaseSendMoneyRequest.IOExceptionpublic CoinbaseBaseResponse resendCoinbaseRequest(String transactionId) throws IOException
transactionId - IOExceptionpublic CoinbaseTransaction completeCoinbaseRequest(String transactionId) throws IOException
transactionId - CoinbaseTransaction representing the completed CoinbaseSendMoneyRequest.IOExceptionpublic CoinbaseBaseResponse cancelCoinbaseRequest(String transactionId) throws IOException
transactionId - IOExceptionpublic CoinbaseButton createCoinbaseButton(CoinbaseButton button) throws IOException
button - A CoinbaseButton containing the desired button configuration for Coinbase to create.CoinbaseButton.IOExceptionpublic CoinbaseOrders getCoinbaseOrders() throws IOException
getCoinbaseOrders(Integer page) to retrieve additional pages.IOExceptionpublic CoinbaseOrders getCoinbaseOrders(Integer page) throws IOException
page - Optional parameter to request a desired page of results. Will return page 1 if the supplied page is null or less than 1.IOExceptionpublic CoinbaseOrder getCoinbaseOrder(String orderIdOrCustom) throws IOException
orderIdOrCustom - IOExceptionpublic CoinbaseOrder createCoinbaseOrder(String code) throws IOException
code - The code of the button for which you wish to create an order.CoinbaseOrder.IOExceptionpublic CoinbaseOrder createCoinbaseOrder(CoinbaseButton button) throws IOException
button - A CoinbaseButton containing information to create a one time order.CoinbaseOrder.IOExceptionpublic CoinbaseRecurringPayments getCoinbaseRecurringPayments() throws IOException
IOExceptionpublic CoinbaseRecurringPayments getCoinbaseRecurringPayments(Integer page, Integer limit) throws IOException
page - Optional parameter to request a desired page of results. Will return page 1 if the supplied page is null or less than 1.limit - Optional parameter to limit the maximum number of results to return. Will return up to 25 results by default if null or less than 1.IOExceptionpublic CoinbaseRecurringPayment getCoinbaseRecurringPayment(String recurringPaymentId) throws IOException
recurringPaymentId - IOExceptionpublic CoinbaseSubscriptions getCoinbaseSubscriptions() throws IOException
CoinbaseSubscription objects where you are the merchant. This is a paged resource and will return the first page by default.IOExceptionpublic CoinbaseSubscriptions getCoinbaseSubscriptions(Integer page, Integer limit) throws IOException
CoinbaseSubscription objects where you are the merchant.page - Optional parameter to request a desired page of results. Will return page 1 if the supplied page is null or less than 1.limit - Optional parameter to limit the maximum number of results to return. Will return up to 25 results by default if null or less than 1.IOExceptionpublic CoinbaseSubscription getCoinbaseSubscription(String subscriptionId) throws IOException
CoinbaseSubscription object where you are the merchant.subscriptionId - IOExceptionCopyright © 2012–2017 Xeiam, LLC. All rights reserved.