Package org.knowm.xchange.yobit.service
Class YoBitAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.yobit.service.YoBitBaseService<YoBit>
org.knowm.xchange.yobit.service.YoBitAccountServiceRaw
org.knowm.xchange.yobit.service.YoBitAccountService
- All Implemented Interfaces:
AccountService
,BaseService
public class YoBitAccountService extends YoBitAccountServiceRaw
-
Field Summary
Fields inherited from class org.knowm.xchange.yobit.service.YoBitBaseService
service, signatureCreator
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description YoBitAccountService(YoBitExchange exchange)
-
Method Summary
Modifier and Type Method Description AccountInfo
getAccountInfo()
Get account infoList<FundingRecord>
getFundingHistory(TradeHistoryParams params)
String
requestDepositAddress(Currency currency, String... args)
Request a digital currency address to fund this account.String
withdrawFunds(Currency currency, BigDecimal amount, String address)
Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)String
withdrawFunds(WithdrawFundsParams params)
Withdraw funds from this account.Methods inherited from class org.knowm.xchange.yobit.service.YoBitAccountServiceRaw
getDepositAddress, getInfo, withdrawCoinsToAddress
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, requestDepositAddressData, withdrawFunds
-
Constructor Details
-
YoBitAccountService
-
-
Method Details
-
getAccountInfo
Description copied from interface:AccountService
Get account info- 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 IOExceptionDescription copied from interface:AccountService
Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)- 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- Parameters:
params
- 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
-
requestDepositAddress
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- 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:
IOException
- - Indication that a networking error occurred while fetching JSON data
-
getFundingHistory
- Returns:
- list of funding history if available or an empty list otherwise. This should never return null.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-