Class CoinfloorAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.coinfloor.service.CoinfloorService
org.knowm.xchange.coinfloor.service.CoinfloorAuthenticatedService
org.knowm.xchange.coinfloor.service.CoinfloorAccountServiceRaw
org.knowm.xchange.coinfloor.service.CoinfloorAccountService
- All Implemented Interfaces:
AccountService
,BaseService
-
Field Summary
Fields inherited from class org.knowm.xchange.coinfloor.service.CoinfloorAuthenticatedService
coinfloor
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet account inforequestDepositAddress
(Currency currency, String... args) Request a digital currency address to fund this account.withdrawFunds
(Currency currency, BigDecimal amount, String address) Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)withdrawFunds
(WithdrawFundsParams params) Withdraw funds from this account.Methods inherited from class org.knowm.xchange.coinfloor.service.CoinfloorAccountServiceRaw
getCoinfloorBalance
Methods inherited from class org.knowm.xchange.coinfloor.service.CoinfloorService
normalise
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
createFundingHistoryParams, getDynamicTradingFeesByInstrument, getFundingHistory, requestDepositAddress, requestDepositAddressData, requestDepositAddressData, withdrawFunds
-
Constructor Details
-
CoinfloorAccountService
-
-
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(Currency currency, BigDecimal amount, String address) throws NotAvailableFromExchangeException Description copied from interface:AccountService
Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)- Specified by:
withdrawFunds
in interfaceAccountService
- Parameters:
currency
- The currency to withdrawamount
- The amount to withdrawaddress
- The destination address- Returns:
- The result of the withdrawal (usually a transaction ID)
- Throws:
NotAvailableFromExchangeException
- - Indication that the exchange does not support the requested function or data
-
withdrawFunds
Description 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)
-
requestDepositAddress
public String requestDepositAddress(Currency currency, String... args) throws NotAvailableFromExchangeException Description copied from interface:AccountService
Request a digital currency address to fund this account. Allows to fund the exchange account with digital currency from an external address- Specified by:
requestDepositAddress
in interfaceAccountService
- Parameters:
currency
- The digital currency that corresponds to the desired deposit address.args
- Necessary argument(s) as aString
- Returns:
- the internal deposit address to send funds to
- Throws:
NotAvailableFromExchangeException
- - Indication that the exchange does not support the requested function or data
-