Package org.knowm.xchange.ascendex
Interface IAscendexAuthenticated
- All Superinterfaces:
IAscendex
@Path("api/pro/v1")
@Produces("application/json")
@Consumes("application/json")
public interface IAscendexAuthenticated
extends IAscendex
-
Method Summary
Modifier and TypeMethodDescriptioncancelAllOrders
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String accountCategory, String symbol) cancelOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String accountCategory, String orderId, String symbol, Long time) getCashAccountBalance
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature) getOpenOrders
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String accountCategory, String symbol) getOrderById
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String accountCategory, String orderId) getOrdersHistory
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String accountCategory, int numberOfRecords, String symbol, boolean executedOnly) placeOrder
(String apiKey, Long nonce, si.mazi.rescu.ParamsDigest signature, String accountCategory, AscendexPlaceOrderRequestPayload payload) Methods inherited from interface org.knowm.xchange.ascendex.IAscendex
getAllAssets, getAllProducts, getHistoricalBarData, getOrderbookDepth, getTrades
-
Method Details
-
getCashAccountBalance
@GET @Path("/cash/balance") AscendexResponse<List<AscendexCashAccountBalanceDto>> getCashAccountBalance(@HeaderParam("x-auth-key") String apiKey, @HeaderParam("x-auth-timestamp") Long nonce, @HeaderParam("x-auth-signature") si.mazi.rescu.ParamsDigest signature) throws IOException - Throws:
IOException
-
placeOrder
@POST @Path("/{account-category}/order") AscendexResponse<AscendexOrderResponse> placeOrder(@HeaderParam("x-auth-key") String apiKey, @HeaderParam("x-auth-timestamp") Long nonce, @HeaderParam("x-auth-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("account-category") String accountCategory, AscendexPlaceOrderRequestPayload payload) throws IOException - Throws:
IOException
-
cancelOrder
@DELETE @Path("/{account-category}/order") AscendexResponse<AscendexOrderResponse> cancelOrder(@HeaderParam("x-auth-key") String apiKey, @HeaderParam("x-auth-timestamp") Long nonce, @HeaderParam("x-auth-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("account-category") String accountCategory, @QueryParam("orderId") String orderId, @QueryParam("symbol") String symbol, @QueryParam("time") Long time) throws IOException - Throws:
IOException
-
cancelAllOrders
@DELETE @Path("/{account-category}/order/all") AscendexResponse<AscendexOrderResponse> cancelAllOrders(@HeaderParam("x-auth-key") String apiKey, @HeaderParam("x-auth-timestamp") Long nonce, @HeaderParam("x-auth-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("account-category") String accountCategory, @QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getOpenOrders
@GET @Path("/{account-category}/order/open") AscendexResponse<List<AscendexOpenOrdersResponse>> getOpenOrders(@HeaderParam("x-auth-key") String apiKey, @HeaderParam("x-auth-timestamp") Long nonce, @HeaderParam("x-auth-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("account-category") String accountCategory, @QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getOrderById
@GET @Path("/{account-category}/order/status") AscendexResponse<AscendexOpenOrdersResponse> getOrderById(@HeaderParam("x-auth-key") String apiKey, @HeaderParam("x-auth-timestamp") Long nonce, @HeaderParam("x-auth-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("account-category") String accountCategory, @QueryParam("orderId") String orderId) throws IOException - Throws:
IOException
-
getOrdersHistory
@GET @Path("/{account-category}/order/hist/current") AscendexResponse<List<AscendexOpenOrdersResponse>> getOrdersHistory(@HeaderParam("x-auth-key") String apiKey, @HeaderParam("x-auth-timestamp") Long nonce, @HeaderParam("x-auth-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("account-category") String accountCategory, @QueryParam("n") int numberOfRecords, @QueryParam("symbol") String symbol, @QueryParam("executedOnly") boolean executedOnly) throws IOException - Throws:
IOException
-