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
Nested Classes Modifier and Type Interface Description static classPoloniexAuthenticated.AllPairs
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PoloniexTradeResponsebuy(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)HashMap<String,String>cancelOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderNumber)PoloniexGenerateNewAddressResponsegenerateNewAddress(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency)PoloniexMarginPostionResponsegetMarginPosition(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair)Map<String,PoloniexMarginPostionResponse>getMarginPosition(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, PoloniexAuthenticated.AllPairs all)PoloniexTradeResponsemarginBuy(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String amount, String rate, String currencyPair, Double lendingRate)PoloniexTradeResponsemarginSell(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String amount, String rate, String currencyPair, Double lendingRate)PoloniexMoveResponsemoveOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderNumber, String amount, String rate, Integer immediateOrCancel, Integer postOnly)HashMap<String,PoloniexLoan[]>returnActiveLoans(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)PoloniexAccountBalance[]returnAvailableAccountBalances(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)PoloniexAccountBalancereturnAvailableAccountBalances(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String account)HashMap<String,PoloniexBalance>returnCompleteBalances(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String account)HashMap<String,String>returnDepositAddresses(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)PoloniexDepositsWithdrawalsResponsereturnDepositsWithdrawals(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, Long startTime, Long endTime)HashMap<String,String>returnFeeInfo(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)PoloniexMarginAccountResponsereturnMarginAccountSummary(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)PoloniexOpenOrder[]returnOpenOrders(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair)Map<String,PoloniexOpenOrder[]>returnOpenOrders(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, PoloniexAuthenticated.AllPairs all)PoloniexUserTrade[]returnOrderTrades(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderID)Map<String,Map<String,BigDecimal>>returnTradableBalances(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)PoloniexUserTrade[]returnTradeHistory(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, Long startTime, Long endTime, Integer limit)HashMap<String,PoloniexUserTrade[]>returnTradeHistory(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, Long startTime, Long endTime, Integer limit, String overload)PoloniexTradeResponsesell(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)TransferResponsetransferBalance(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, BigDecimal amount, String fromAccount, String toAccount)WithdrawalResponsewithdraw(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, BigDecimal amount, String address, String paymentId)
-
-
-
Method Detail
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
returnTradableBalances
@POST @FormParam("command") Map<String,Map<String,BigDecimal>> returnTradableBalances(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") si.mazi.rescu.ParamsDigest signature, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws PoloniexException, IOException- Throws:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
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:
PoloniexExceptionIOException
-
-