Package org.knowm.xchange.lgo
Interface Lgo
@Produces("application/json")
@Path("/v1")
public interface Lgo
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCurrencies(long timestamp, si.mazi.rescu.ParamsDigest signature) getLastTrades(long timestamp, si.mazi.rescu.ParamsDigest signature, String productId, int maxResults, String page, String sort) getOrderBook(long timestamp, si.mazi.rescu.ParamsDigest signature, String productId) getPriceHistory(long timestamp, si.mazi.rescu.ParamsDigest signature, String productId, String startTime, String endTime, int granularity) getProducts(long timestamp, si.mazi.rescu.ParamsDigest signature) placeEncryptedOrder(LgoEncryptedOrder placeOrder, long timestamp, si.mazi.rescu.ParamsDigest signature) placeUnencryptedCancelOrder(long timestamp, si.mazi.rescu.ParamsDigest signature, String orderId) placeUnencryptedOrder(LgoUnencryptedOrder placeOrder, long timestamp, si.mazi.rescu.ParamsDigest signature)
-
Field Details
-
X_LGO_DATE
- See Also:
-
AUTHORIZATION
- See Also:
-
PRODUCT_ID
- See Also:
-
MAX_RESULTS
- See Also:
-
PAGE
- See Also:
-
SORT
- See Also:
-
ORDER_ID
- See Also:
-
GRANULARITY
- See Also:
-
END
- See Also:
-
START
- See Also:
-
-
Method Details
-
getProducts
@GET @Path("/live/products") LgoProducts getProducts(@HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature) throws IOException, LgoException - Throws:
IOExceptionLgoException
-
getCurrencies
@GET @Path("/live/currencies") LgoCurrencies getCurrencies(@HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature) throws IOException, LgoException - Throws:
IOExceptionLgoException
-
getLastTrades
@GET @Path("/history/trades") WithCursor<LgoUserTrades> getLastTrades(@HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature, @QueryParam("product_id") String productId, @QueryParam("max_results") int maxResults, @QueryParam("page") String page, @QueryParam("sort") String sort) throws IOException, LgoException - Throws:
IOExceptionLgoException
-
getOrderBook
@GET @Path("/live/products/{product_id}/book") LgoOrderbook getOrderBook(@HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature, @PathParam("product_id") String productId) throws IOException, LgoException - Throws:
IOExceptionLgoException
-
placeEncryptedOrder
@POST @Path("/live/orders/encrypted") @Produces("application/json") @Consumes("application/json") LgoPlaceOrderResponse placeEncryptedOrder(LgoEncryptedOrder placeOrder, @HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature) throws IOException, LgoException - Throws:
IOExceptionLgoException
-
placeUnencryptedOrder
@POST @Path("/live/orders") @Produces("application/json") @Consumes("application/json") LgoPlaceOrderResponse placeUnencryptedOrder(LgoUnencryptedOrder placeOrder, @HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature) throws IOException, LgoException - Throws:
IOExceptionLgoException
-
placeUnencryptedCancelOrder
@DELETE @Path("/live/orders/{order_id}") @Produces("application/json") @Consumes("application/json") LgoPlaceOrderResponse placeUnencryptedCancelOrder(@HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature, @PathParam("order_id") String orderId) throws IOException, LgoException - Throws:
IOExceptionLgoException
-
getPriceHistory
@GET @Path("/history/products/{product_id}/candles") LgoPriceHistory getPriceHistory(@HeaderParam("X-LGO-DATE") long timestamp, @HeaderParam("Authorization") si.mazi.rescu.ParamsDigest signature, @PathParam("product_id") String productId, @QueryParam("start") String startTime, @QueryParam("end") String endTime, @QueryParam("granularity") int granularity) throws IOException, LgoException - Throws:
IOExceptionLgoException
-