Class GeminiAccountService

    • Constructor Detail

      • GeminiAccountService

        public GeminiAccountService​(Exchange exchange)
        Constructor
        Parameters:
        exchange -
    • Method Detail

      • 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​(WithdrawFundsParams params)
                             throws IOException
        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)
        Throws:
        IOException - - Indication that a networking error occurred while fetching JSON data
      • requestDepositAddress

        public String requestDepositAddress​(Currency currency,
                                            String... arguments)
                                     throws IOException
        This will result in a new address being created each time, and is severely rate-limited
        Specified by:
        requestDepositAddress in interface AccountService
        Parameters:
        currency - The digital currency that corresponds to the desired deposit address.
        arguments - Necessary argument(s) as a String
        Returns:
        the internal deposit address to send funds to
        Throws:
        IOException - - Indication that a networking error occurred while fetching JSON data
      • getDynamicTradingFees

        public Map<CurrencyPair,​Fee> getDynamicTradingFees()
                                                          throws IOException
        Description copied from interface: AccountService
        Get the trading fees per currency pair as determined by the given exchange's rules for adjusting fees by recent volume traded. Some exchanges will provide the current fees per currency via a single API request, while others require more logic to compute by hand.
        Specified by:
        getDynamicTradingFees in interface AccountService
        Returns:
        map between currency pairs and their fees at the time of invocation.
        Throws:
        IOException - - Indication that a networking error occurred while fetching JSON data