Package org.knowm.xchange.bitso.service
Class BitsoAccountService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.bitso.service.BitsoBaseService
org.knowm.xchange.bitso.service.BitsoAccountServiceRaw
org.knowm.xchange.bitso.service.BitsoAccountService
- All Implemented Interfaces:
AccountService
,BaseService
public class BitsoAccountService extends BitsoAccountServiceRaw implements AccountService
- Author:
- Matija Mazi
-
Field Summary
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description BitsoAccountService(Exchange exchange)
-
Method Summary
Modifier and Type Method Description TradeHistoryParams
createFundingHistoryParams()
CreateTradeHistoryParams
object specific to this exchange.AccountInfo
getAccountInfo()
Get account infoString
requestDepositAddress(Currency currency, String... arguments)
This returns the currently set deposit address.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.bitso.service.BitsoAccountServiceRaw
getBitsoBalance, getBitsoBitcoinDepositAddress, withdrawBitsoFunds, withdrawToRipple
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
getDynamicTradingFeesByInstrument, getFundingHistory, requestDepositAddressData, withdrawFunds
-
Constructor Details
-
BitsoAccountService
-
-
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 IOExceptionDescription 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:
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
This returns the currently set deposit address. It will not generate a new address (ie. repeated calls will return the same address).- Specified by:
requestDepositAddress
in interfaceAccountService
- Parameters:
currency
- The digital currency that corresponds to the desired deposit address.arguments
- 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
-
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
-