Class BitstampAccountServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.bitstamp.service.BitstampBaseService
org.knowm.xchange.bitstamp.service.BitstampAccountServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
BitstampAccountService
public class BitstampAccountServiceRaw extends BitstampBaseService
- Author:
- gnandiga
-
Field Summary
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Modifier Constructor Description protected
BitstampAccountServiceRaw(Exchange exchange)
-
Method Summary
Methods inherited from class org.knowm.xchange.bitstamp.service.BitstampBaseService
handleError
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BitstampAccountServiceRaw
-
-
Method Details
-
getBitstampBalance
- Throws:
IOException
-
withdrawBitstampFunds
public BitstampWithdrawal withdrawBitstampFunds(Currency currency, BigDecimal amount, String address) throws IOException- Throws:
IOException
-
withdrawBitstampFunds
public BitstampWithdrawal withdrawBitstampFunds(Currency currency, BigDecimal amount, String address, String tag) throws IOExceptionThis method can withdraw any currency if withdrawal endpoint is configured in BitstampAuthenticatedV2- Throws:
IOException
-
withdrawAddrAmount
To prevent code repetition we try to resolve client method -
withdrawRippleFunds
public BitstampWithdrawal withdrawRippleFunds(BigDecimal amount, String address, Long destinationTag) throws IOException- Throws:
IOException
-
withdrawXLM
public BitstampWithdrawal withdrawXLM(BigDecimal amount, String address, String memo) throws IOException- Throws:
IOException
-
getBitstampBitcoinDepositAddress
- Throws:
IOException
-
getBitstampBitcoinCashDepositAddress
- Throws:
IOException
-
getBitstampLitecoinDepositAddress
- Throws:
IOException
-
getBitstampEthereumDepositAddress
- Throws:
IOException
-
getRippleDepositAddress
Ripple IOU deposit address- Throws:
IOException
-
getXRPDepositAddress
XRP deposit address- Throws:
IOException
-
withdrawToRipple
public boolean withdrawToRipple(BigDecimal amount, Currency currency, String rippleAddress) throws IOException- Returns:
- true if withdrawal was successful. Note that due to a bug on Bitstamp's side, withdrawal always fails if two-factor authentication is enabled for the account.
- Throws:
IOException
-
getUnconfirmedDeposits
- Throws:
IOException
-
getWithdrawalRequests
- Throws:
IOException
-
getBitstampUserTransactions
public BitstampUserTransaction[] getBitstampUserTransactions(Long numberOfTransactions, CurrencyPair pair, Long offset, String sort, Long sinceTimestamp, String sinceId) throws IOException- Throws:
IOException
-
getBitstampUserTransactions
public BitstampUserTransaction[] getBitstampUserTransactions(Long numberOfTransactions, Long offset, String sort, Long sinceTimestamp, String sinceId) throws IOException- Throws:
IOException
-
transferSubAccountBalanceToMain
public BitstampTransferBalanceResponse transferSubAccountBalanceToMain(BigDecimal amount, String currency, String subAccount) throws IOException- Throws:
IOException
-
withdrawSepa
public BitstampWithdrawal withdrawSepa(BigDecimal amount, String name, String IBAN, String BIK, String address, String postalCode, String city, String countryAlpha2) throws IOException- Throws:
IOException
-
withdrawSepa
public BitstampWithdrawal withdrawSepa(BigDecimal amount, String name, String IBAN, String BIK, String address, String postalCode, String city, String countryAlpha2, String comment) throws IOException- Throws:
IOException
-
withdrawInternational
public BitstampWithdrawal withdrawInternational(BigDecimal amount, String name, String IBAN, String BIK, String address, String postalCode, String city, String countryAlpha2, String bankName, String bankAddress, String bankPostalCode, String bankCity, String bankCountryAlpha2, BitstampAuthenticatedV2.BankCurrency bankReceiverCurrency) throws IOException- Throws:
IOException
-
withdrawInternational
public BitstampWithdrawal withdrawInternational(BigDecimal amount, String name, String IBAN, String BIK, String address, String postalCode, String city, String countryAlpha2, String bankName, String bankAddress, String bankPostalCode, String bankCity, String bankCountryAlpha2, BitstampAuthenticatedV2.BankCurrency bankReceiverCurrency, String comment) throws IOException- Throws:
IOException
-