Class CoinfloorAccountService

All Implemented Interfaces:
AccountService, BaseService

public class CoinfloorAccountService extends CoinfloorAccountServiceRaw implements AccountService
  • Constructor Details

    • CoinfloorAccountService

      public CoinfloorAccountService(Exchange exchange)
  • Method Details

    • getAccountInfo

      public AccountInfo getAccountInfo() throws IOException
      Description copied from interface: AccountService
      Get account info
      Specified by:
      getAccountInfo in interface AccountService
      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 interface AccountService
      Parameters:
      currency - The currency to withdraw
      amount - The amount to withdraw
      address - 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

      public String withdrawFunds(WithdrawFundsParams params)
      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 interface AccountService
      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 interface AccountService
      Parameters:
      currency - The digital currency that corresponds to the desired deposit address.
      args - Necessary argument(s) as a String
      Returns:
      the internal deposit address to send funds to
      Throws:
      NotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or data