Class CryptonitAccountService

  • All Implemented Interfaces:
    org.knowm.xchange.service.account.AccountService, org.knowm.xchange.service.BaseService

    public class CryptonitAccountService
    extends CryptonitAccountServiceRaw
    implements org.knowm.xchange.service.account.AccountService
    Author:
    Matija Mazi
    • Constructor Detail

      • CryptonitAccountService

        public CryptonitAccountService​(org.knowm.xchange.Exchange exchange)
        Constructor
        Parameters:
        exchange -
    • Method Detail

      • getAccountInfo

        public org.knowm.xchange.dto.account.AccountInfo getAccountInfo()
                                                                 throws IOException
        Specified by:
        getAccountInfo in interface org.knowm.xchange.service.account.AccountService
        Throws:
        IOException
      • withdrawFunds

        public String withdrawFunds​(org.knowm.xchange.currency.Currency currency,
                                    BigDecimal amount,
                                    String address)
                             throws IOException
        Specified by:
        withdrawFunds in interface org.knowm.xchange.service.account.AccountService
        Throws:
        IOException
      • withdrawFunds

        public String withdrawFunds​(org.knowm.xchange.service.trade.params.WithdrawFundsParams params)
                             throws org.knowm.xchange.exceptions.ExchangeException,
                                    org.knowm.xchange.exceptions.NotAvailableFromExchangeException,
                                    org.knowm.xchange.exceptions.NotYetImplementedForExchangeException,
                                    IOException
        Specified by:
        withdrawFunds in interface org.knowm.xchange.service.account.AccountService
        Throws:
        org.knowm.xchange.exceptions.ExchangeException
        org.knowm.xchange.exceptions.NotAvailableFromExchangeException
        org.knowm.xchange.exceptions.NotYetImplementedForExchangeException
        IOException
      • requestDepositAddress

        public String requestDepositAddress​(org.knowm.xchange.currency.Currency currency,
                                            String... arguments)
                                     throws IOException
        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 interface org.knowm.xchange.service.account.AccountService
        Throws:
        IOException
      • createFundingHistoryParams

        public org.knowm.xchange.service.trade.params.TradeHistoryParams createFundingHistoryParams()
        Specified by:
        createFundingHistoryParams in interface org.knowm.xchange.service.account.AccountService
      • getFundingHistory

        public List<org.knowm.xchange.dto.account.FundingRecord> getFundingHistory​(org.knowm.xchange.service.trade.params.TradeHistoryParams params)
                                                                            throws org.knowm.xchange.exceptions.ExchangeException,
                                                                                   org.knowm.xchange.exceptions.NotAvailableFromExchangeException,
                                                                                   org.knowm.xchange.exceptions.NotYetImplementedForExchangeException,
                                                                                   IOException
        Specified by:
        getFundingHistory in interface org.knowm.xchange.service.account.AccountService
        Throws:
        org.knowm.xchange.exceptions.ExchangeException
        org.knowm.xchange.exceptions.NotAvailableFromExchangeException
        org.knowm.xchange.exceptions.NotYetImplementedForExchangeException
        IOException