Package org.knowm.xchange.krakenfutures
Interface KrakenFuturesAuthenticated
- All Superinterfaces:
KrakenFutures
@Path("/api/v3")
@Produces("application/json")
public interface KrakenFuturesAuthenticated
extends KrakenFutures
- Author:
- Jean-Christophe Laruelle
-
Method Summary
Modifier and TypeMethodDescriptionaccounts
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) batchOrder
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BatchOrder orderCommands) cancelAllOrdersAfter
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long timeoutSeconds) cancelAllOrdersByInstrument
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String symbol) cancelOrder
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String order_id) changeOrder
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String cliOrdId, BigDecimal limitPrice, String orderId, BigDecimal size, BigDecimal stopPrice) fills
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String lastFillTime) getOrdersStatuses
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, KrakenFuturesOrderStatusRequest orderIds) openOrders
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) openPositions
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) sendOrder
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderType, String symbol, String side, BigDecimal size, BigDecimal limitPrice, String cliOrdId, boolean reduceOnly, BigDecimal stopPrice, String triggerSignal) Methods inherited from interface org.knowm.xchange.krakenfutures.KrakenFutures
getHistory, getInstruments, getOrderBook, getTickers
-
Method Details
-
accounts
@GET @Path("accounts") KrakenFuturesAccounts accounts(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
sendOrder
@POST @Path("sendorder") KrakenFuturesOrder sendOrder(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @QueryParam("orderType") String orderType, @QueryParam("symbol") String symbol, @QueryParam("side") String side, @QueryParam("size") BigDecimal size, @QueryParam("limitPrice") BigDecimal limitPrice, @QueryParam("cliOrdId") String cliOrdId, @QueryParam("reduceOnly") boolean reduceOnly, @QueryParam("stopPrice") BigDecimal stopPrice, @QueryParam("triggerSignal") String triggerSignal) throws IOException - Throws:
IOException
-
batchOrder
@POST @Path("batchorder") BatchOrderResult batchOrder(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("json") BatchOrder orderCommands) throws IOException - Throws:
IOException
-
cancelOrder
@POST @Path("cancelorder") KrakenFuturesCancel cancelOrder(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @QueryParam("order_id") String order_id) throws IOException - Throws:
IOException
-
cancelAllOrdersByInstrument
@POST @Path("cancelallorders") KrakenFuturesCancelAllOrders cancelAllOrdersByInstrument(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
cancelAllOrdersAfter
@POST @Path("cancelallordersafter") KrakenFuturesCancelAllOrdersAfter cancelAllOrdersAfter(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @QueryParam("timeout") long timeoutSeconds) throws IOException - Throws:
IOException
-
openOrders
@GET @Path("openorders") KrakenFuturesOpenOrders openOrders(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
getOrdersStatuses
@POST @Path("orders/status") @Produces("application/x-www-form-urlencoded") KrakenFuturesOrdersStatusesResponse getOrdersStatuses(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, KrakenFuturesOrderStatusRequest orderIds) throws IOException - Throws:
IOException
-
changeOrder
@POST @Path("editorder") KrakenFuturesEditOrderResponse changeOrder(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @QueryParam("cliOrdId") String cliOrdId, @QueryParam("limitPrice") BigDecimal limitPrice, @QueryParam("orderId") String orderId, @QueryParam("size") BigDecimal size, @QueryParam("stopPrice") BigDecimal stopPrice) throws IOException - Throws:
IOException
-
fills
@GET @Path("fills") KrakenFuturesFills fills(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @QueryParam("lastFillTime") String lastFillTime) throws IOException - Throws:
IOException
-
openPositions
@GET @Path("openpositions") KrakenFuturesOpenPositions openPositions(@HeaderParam("APIKey") String apiKey, @HeaderParam("Authent") si.mazi.rescu.ParamsDigest signer, @HeaderParam("Nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-