Class BitbayAccountServiceRaw

    • Constructor Detail

      • BitbayAccountServiceRaw

        public BitbayAccountServiceRaw​(Exchange exchange)
    • Method Detail

      • transfer

        public BitbayBaseResponse transfer​(Currency currency,
                                           BigDecimal quantity,
                                           String address)
        Corresponds to POST /transfer end point.
        Parameters:
        currency - cryptocurrency to transfer
        quantity - amount of cryptocurrency, which will be transferred
        address - wallet address of receiver
        Returns:
        Success of transfer
        Throws:
        ExchangeException - if an error occurred.
      • withdraw

        public BitbayBaseResponse withdraw​(Currency currency,
                                           BigDecimal quantity,
                                           String account,
                                           boolean express,
                                           String bicOrSwiftCode)
        Corresponds to POST /withdraw end point.
        Parameters:
        currency - cryptocurrency to transfer
        quantity - amount of cryptocurrency, which will be transferred
        account - account number on which money would be transferred
        express - true/false
        bicOrSwiftCode - swift/bic number
        Returns:
        Success of withdraw
        Throws:
        ExchangeException - if an error occurred.