Package org.knowm.xchange.poloniex
Interface PoloniexAuthenticated
@Path("tradingApi")
@Produces("application/json")
@Consumes("application/x-www-form-urlencoded")
public interface PoloniexAuthenticated
- Author:
- Zach Holmes
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuy
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String amount, String rate, String currencyPair, Integer fillOrKill, Integer immediateOrCancel, Integer postOnly) cancelOrder
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderNumber) generateNewAddress
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency) getMarginPosition
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair) getMarginPosition
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, PoloniexAuthenticated.AllPairs all) marginBuy
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String amount, String rate, String currencyPair, Double lendingRate) marginSell
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String amount, String rate, String currencyPair, Double lendingRate) moveOrder
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderNumber, String amount, String rate, Integer immediateOrCancel, Integer postOnly) returnActiveLoans
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) returnAvailableAccountBalances
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) returnAvailableAccountBalances
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String account) returnCompleteBalances
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String account) returnDepositAddresses
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) returnDepositsWithdrawals
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, Long startTime, Long endTime) returnFeeInfo
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) returnMarginAccountSummary
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) returnOpenOrders
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair) returnOpenOrders
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, PoloniexAuthenticated.AllPairs all) returnOrderTrades
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderID) returnTradableBalances
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) returnTradeHistory
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, Long startTime, Long endTime, Integer limit) returnTradeHistory
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, Long startTime, Long endTime, Integer limit, String overload) sell
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String amount, String rate, String currencyPair, Integer fillOrKill, Integer immediateOrCancel, Integer postOnly) transferBalance
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, BigDecimal amount, String fromAccount, String toAccount) withdraw
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, BigDecimal amount, String address, String paymentId)
-
Method Details
-
returnCompleteBalances
@POST @FormParam("command") HashMap<String,PoloniexBalance> returnCompleteBalances(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("account") String account) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnActiveLoans
@POST @FormParam("command") HashMap<String,PoloniexLoan[]> returnActiveLoans(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnDepositAddresses
@POST @FormParam("command") HashMap<String,String> returnDepositAddresses(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
generateNewAddress
@POST @FormParam("command") PoloniexGenerateNewAddressResponse generateNewAddress(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnOpenOrders
@POST @FormParam("command") Map<String,PoloniexOpenOrder[]> returnOpenOrders(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currencyPair") PoloniexAuthenticated.AllPairs all) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnOrderTrades
@POST @FormParam("command") PoloniexUserTrade[] returnOrderTrades(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("orderNumber") String orderID) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnOpenOrders
@POST @FormParam("command") PoloniexOpenOrder[] returnOpenOrders(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currencyPair") String currencyPair) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnTradeHistory
@POST @FormParam("command") PoloniexUserTrade[] returnTradeHistory(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currencyPair") String currencyPair, @FormParam("start") Long startTime, @FormParam("end") Long endTime, @FormParam("limit") Integer limit) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnMarginAccountSummary
@POST @FormParam("command") PoloniexMarginAccountResponse returnMarginAccountSummary(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
getMarginPosition
@POST @FormParam("command") PoloniexMarginPostionResponse getMarginPosition(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currencyPair") String currencyPair) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
getMarginPosition
@POST @FormParam("command") Map<String,PoloniexMarginPostionResponse> getMarginPosition(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currencyPair") PoloniexAuthenticated.AllPairs all) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnTradeHistory
@POST @FormParam("command") HashMap<String,PoloniexUserTrade[]> returnTradeHistory(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currencyPair") String currencyPair, @FormParam("start") Long startTime, @FormParam("end") Long endTime, @FormParam("limit") Integer limit, @FormParam("ignore") String overload) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
buy
@POST @FormParam("command") PoloniexTradeResponse buy(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") String amount, @FormParam("rate") String rate, @FormParam("currencyPair") String currencyPair, @FormParam("fillOrKill") Integer fillOrKill, @FormParam("immediateOrCancel") Integer immediateOrCancel, @FormParam("postOnly") Integer postOnly) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
sell
@POST @FormParam("command") PoloniexTradeResponse sell(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") String amount, @FormParam("rate") String rate, @FormParam("currencyPair") String currencyPair, @FormParam("fillOrKill") Integer fillOrKill, @FormParam("immediateOrCancel") Integer immediateOrCancel, @FormParam("postOnly") Integer postOnly) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
marginBuy
@POST @FormParam("command") PoloniexTradeResponse marginBuy(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") String amount, @FormParam("rate") String rate, @FormParam("currencyPair") String currencyPair, @FormParam("lendingRate") Double lendingRate) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
marginSell
@POST @FormParam("command") PoloniexTradeResponse marginSell(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") String amount, @FormParam("rate") String rate, @FormParam("currencyPair") String currencyPair, @FormParam("lendingRate") Double lendingRate) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
moveOrder
@POST @FormParam("command") PoloniexMoveResponse moveOrder(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("orderNumber") String orderNumber, @FormParam("amount") String amount, @FormParam("rate") String rate, @FormParam("immediateOrCancel") Integer immediateOrCancel, @FormParam("postOnly") Integer postOnly) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
cancelOrder
@POST @FormParam("command") HashMap<String,String> cancelOrder(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("orderNumber") String orderNumber) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
withdraw
@POST @FormParam("command") WithdrawalResponse withdraw(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("address") String address, @FormParam("paymentId") @Nullable String paymentId) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
transferBalance
@POST @FormParam("command") TransferResponse transferBalance(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("fromAccount") String fromAccount, @FormParam("toAccount") String toAccount) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnFeeInfo
@POST @FormParam("command") HashMap<String,String> returnFeeInfo(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnAvailableAccountBalances
@POST @FormParam("command") PoloniexAccountBalance returnAvailableAccountBalances(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @Nullable @FormParam("account") String account) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnTradableBalances
@POST @FormParam("command") Map<String,Map<String, returnTradableBalancesBigDecimal>> (@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnAvailableAccountBalances
@POST @FormParam("command") PoloniexAccountBalance[] returnAvailableAccountBalances(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-
returnDepositsWithdrawals
@POST @FormParam("command") PoloniexDepositsWithdrawalsResponse returnDepositsWithdrawals(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("start") Long startTime, @FormParam("end") Long endTime) throws PoloniexException, IOException - Throws:
PoloniexException
IOException
-