Package org.knowm.xchange.latoken
Interface LatokenAuthenticated
- All Superinterfaces:
Latoken
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncancelAll
(String symbol, long timestamp, String dummy, String apiKey, si.mazi.rescu.ParamsDigest signature) cancelOrder
(String orderId, long timestamp, String dummy, String apiKey, si.mazi.rescu.ParamsDigest signature) getBalance
(String currency, Long timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) getBalances
(Long timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) getOpenOrders
(String symbol, long timestamp, int limit, String apiKey, si.mazi.rescu.ParamsDigest signature) getOrders
(String symbol, String status, int limit, String apiKey, si.mazi.rescu.ParamsDigest signature) getUserTrades
(String symbol, long timestamp, int limit, String apiKey, si.mazi.rescu.ParamsDigest signature) newOrder
(String symbol, String clientOrderId, LatokenOrderSide side, BigDecimal price, BigDecimal amount, OrderSubclass type, long timestamp, String dummy, String apiKey, si.mazi.rescu.ParamsDigest signature) testNewOrder
(String symbol, String clientOrderId, LatokenOrderSide side, BigDecimal price, BigDecimal amount, OrderSubclass type, long timestamp, String dummy, String apiKey, si.mazi.rescu.ParamsDigest signature) Methods inherited from interface org.knowm.xchange.latoken.Latoken
getAllCurrencies, getAllPairs, getAllTickers, getCurrencies, getOrderbook, getPair, getPairs, getRateLimits, getTicker, getTime, getTrades
-
Field Details
-
API_KEY
Header's key for client's secret API key- See Also:
-
SIGNATURE
Header's key for request signature.
The signature is created by using the secretAPI_KEY
to sign theapi-endpoint + query-string
of the request.
See Latoken documentation for further details.- See Also:
-
HASHTYPE
Header's key for hash function (Optional). Allowed values:HMAC-SHA256
(default),HMAC-SHA384
,HMAC-SHA512
- See Also:
-
-
Method Details
-
newOrder
@POST @Path("api/v1/Order/new") LatokenNewOrder newOrder(@QueryParam("symbol") String symbol, @QueryParam("cliOrdId") String clientOrderId, @QueryParam("side") LatokenOrderSide side, @QueryParam("price") BigDecimal price, @QueryParam("amount") BigDecimal amount, @QueryParam("orderType") OrderSubclass type, @QueryParam("timestamp") long timestamp, @FormParam("dummy") String dummy, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
testNewOrder
@POST @Path("api/v1/Order/test-order") LatokenTestOrder testNewOrder(@QueryParam("symbol") String symbol, @QueryParam("cliOrdId") String clientOrderId, @QueryParam("side") LatokenOrderSide side, @QueryParam("price") BigDecimal price, @QueryParam("amount") BigDecimal amount, @QueryParam("orderType") OrderSubclass type, @QueryParam("timestamp") long timestamp, @FormParam("dummy") String dummy, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
cancelOrder
@POST @Path("api/v1/Order/cancel") LatokenOrder cancelOrder(@QueryParam("orderId") String orderId, @QueryParam("timestamp") long timestamp, @FormParam("dummy") String dummy, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
cancelAll
@POST @Path("api/v1/Order/cancel_all") LatokenCancelledOrders cancelAll(@QueryParam("symbol") String symbol, @QueryParam("timestamp") long timestamp, @FormParam("dummy") String dummy, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
getOrder
@GET @Path("api/v1/Order/get_order") LatokenOrder getOrder(@QueryParam("orderId") String orderId, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
getOrders
@GET @Path("api/v1/Order/status") List<LatokenOrder> getOrders(@QueryParam("symbol") String symbol, @QueryParam("status") String status, @QueryParam("limit") int limit, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
getOpenOrders
@GET @Path("api/v1/Order/active") List<LatokenOrder> getOpenOrders(@QueryParam("symbol") String symbol, @QueryParam("timestamp") long timestamp, @QueryParam("limit") int limit, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
getUserTrades
@GET @Path("api/v1/Order/trades") LatokenUserTrades getUserTrades(@QueryParam("symbol") String symbol, @QueryParam("timestamp") long timestamp, @QueryParam("limit") int limit, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
getBalances
@GET @Path("api/v1/Account/balances") List<LatokenBalance> getBalances(@QueryParam("timestamp") Long timestamp, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-
getBalance
@GET @Path("api/v1/Account/balances/{currency}") LatokenBalance getBalance(@PathParam("currency") String currency, @QueryParam("timestamp") Long timestamp, @HeaderParam("X-LA-KEY") String apiKey, @HeaderParam("X-LA-SIGNATURE") si.mazi.rescu.ParamsDigest signature) throws IOException, LatokenException - Throws:
IOException
LatokenException
-