Class PoloniexAccountServiceRaw
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.poloniex.service.PoloniexBaseService
-
- org.knowm.xchange.poloniex.service.PoloniexAccountServiceRaw
-
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
PoloniexAccountService
public class PoloniexAccountServiceRaw extends PoloniexBaseService
- Author:
- Zach Holmes
-
-
Field Summary
-
Fields inherited from class org.knowm.xchange.poloniex.service.PoloniexBaseService
apiKey, poloniex, poloniexAuthenticated, signatureCreator
-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Constructor Description PoloniexAccountServiceRaw(Exchange exchange)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDepositAddress(String currency)HashMap<String,String>getDepositAddresses()HashMap<String,PoloniexBalance>getExchangeWallet()HashMap<String,PoloniexLoan[]>getLoanInfo()HashMap<String,PoloniexBalance>getWallets()PoloniexDepositsWithdrawalsResponsereturnDepositsWithdrawals(Date start, Date end)Stringtransfer(Currency currency, BigDecimal amount, PoloniexWallet fromWallet, PoloniexWallet toWallet)Stringwithdraw(Currency currency, BigDecimal amount, String address, String paymentId)-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, verifyOrder, verifyOrder, verifyOrder
-
-
-
-
Constructor Detail
-
PoloniexAccountServiceRaw
public PoloniexAccountServiceRaw(Exchange exchange)
Constructor- Parameters:
exchange-
-
-
Method Detail
-
getExchangeWallet
public HashMap<String,PoloniexBalance> getExchangeWallet() throws IOException
- Throws:
IOException
-
getWallets
public HashMap<String,PoloniexBalance> getWallets() throws IOException
- Throws:
IOException
-
getLoanInfo
public HashMap<String,PoloniexLoan[]> getLoanInfo() throws IOException
- Throws:
IOException
-
getDepositAddresses
public HashMap<String,String> getDepositAddresses() throws IOException
- Throws:
IOException
-
getDepositAddress
public String getDepositAddress(String currency) throws IOException
- Throws:
IOException
-
withdraw
public String withdraw(Currency currency, BigDecimal amount, String address, @Nullable String paymentId) throws IOException
- Parameters:
paymentId- For XMR withdrawals, you may optionally specify "paymentId".- Throws:
IOException
-
returnDepositsWithdrawals
public PoloniexDepositsWithdrawalsResponse returnDepositsWithdrawals(Date start, Date end) throws IOException
- Throws:
IOException
-
transfer
public String transfer(Currency currency, BigDecimal amount, PoloniexWallet fromWallet, PoloniexWallet toWallet) throws IOException
- Throws:
IOException
-
-