Class DragonexAccountService
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService<DragonexExchange>
-
- org.knowm.xchange.dragonex.service.DragonexBaseService
-
- org.knowm.xchange.dragonex.service.DragonexAccountServiceRaw
-
- org.knowm.xchange.dragonex.service.DragonexAccountService
-
- All Implemented Interfaces:
AccountService
,BaseService
public class DragonexAccountService extends DragonexAccountServiceRaw implements AccountService
-
-
Field Summary
-
Fields inherited from class org.knowm.xchange.dragonex.service.DragonexBaseService
ContentSHA1
-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Constructor Description DragonexAccountService(Exchange exchange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeHistoryParams
createFundingHistoryParams()
CreateTradeHistoryParams
object specific to this exchange.AccountInfo
getAccountInfo()
Get account infoList<FundingRecord>
getFundingHistory(TradeHistoryParams params)
String
withdrawFunds(Currency currency, BigDecimal amount, String address)
Convenience method, typically just delegates to withdrawFunds(WithdrawFundsParams params)-
Methods inherited from class org.knowm.xchange.dragonex.service.DragonexAccountServiceRaw
coinPrepayHistory, coinWithdrawAddrList, coinWithdrawHistory, coinWithdrawNew, tokenNew, tokenStatus, userCoins
-
Methods inherited from class org.knowm.xchange.dragonex.service.DragonexBaseService
utcNow
-
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
getDynamicTradingFees, getDynamicTradingFeesByInstrument, requestDepositAddress, requestDepositAddressData, withdrawFunds, withdrawFunds
-
-
-
-
Constructor Detail
-
DragonexAccountService
public DragonexAccountService(Exchange exchange)
-
-
Method Detail
-
getAccountInfo
public AccountInfo getAccountInfo() throws IOException
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
-
createFundingHistoryParams
public TradeHistoryParams createFundingHistoryParams()
Description copied from interface:AccountService
CreateTradeHistoryParams
object specific to this exchange. Object created by this method may be used to discover supported and requiredAccountService.getFundingHistory(TradeHistoryParams)
parameters and should be passed only to the method in the same class as the createFundingHistoryParams that created the object.- Specified by:
createFundingHistoryParams
in interfaceAccountService
-
getFundingHistory
public List<FundingRecord> getFundingHistory(TradeHistoryParams params) throws IOException
- Specified by:
getFundingHistory
in interfaceAccountService
- 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
-
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
-
-