Class CoinoneAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.coinone.service.CoinoneBaseService
org.knowm.xchange.coinone.service.CoinoneAccountServiceRaw
org.knowm.xchange.coinone.service.CoinoneAccountService
- All Implemented Interfaces:
AccountService
,BaseService
-
Field Summary
Fields inherited from class org.knowm.xchange.coinone.service.CoinoneBaseService
apiKey, apiSecret, coinone, payloadCreator, signatureCreator, url
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet account infowithdrawFunds
(Currency currency, BigDecimal amount, String address) Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)withdrawFunds
(WithdrawFundsParams withdrawFundsParams) Withdraw funds from this account.Methods inherited from class org.knowm.xchange.coinone.service.CoinoneAccountServiceRaw
getWallet, withdrawFund
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, withdrawFunds
-
Constructor Details
-
CoinoneAccountService
Constructor- Parameters:
exchange
-
-
-
Method Details
-
getAccountInfo
public AccountInfo getAccountInfo() throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOExceptionDescription 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:
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
-
withdrawFunds
public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException 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:
IOException
- - Indication that a networking error occurred while fetching JSON 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:
withdrawFundsParams
- The withdrawl details- Returns:
- The result of the withdrawal (usually a transaction ID)
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-