Package org.knowm.xchange.bybit
Interface BybitAuthenticated
@Path("/spot/v1")
@Produces("application/json")
public interface BybitAuthenticated
-
Method Summary
Modifier and Type Method Description BybitResult<BybitOrderDetails>
getOrder(String apiKey, String orderId, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, si.mazi.rescu.ParamsDigest signature)
BybitResult<BybitBalances>
getWalletBalances(String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, si.mazi.rescu.ParamsDigest signature)
BybitResult<BybitOrderRequest>
placeOrder(String apiKey, String symbol, long qty, String side, String type, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, si.mazi.rescu.ParamsDigest signature)
-
Method Details
-
getWalletBalances
@GET @Path("/account") BybitResult<BybitBalances> getWalletBalances(@QueryParam("api_key") String apiKey, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @QueryParam("sign") si.mazi.rescu.ParamsDigest signature) throws IOException, BybitException- Throws:
IOException
BybitException
-
getOrder
@GET @Path("/order") BybitResult<BybitOrderDetails> getOrder(@QueryParam("api_key") String apiKey, @QueryParam("orderId") String orderId, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @QueryParam("sign") si.mazi.rescu.ParamsDigest signature) throws IOException, BybitException- Throws:
IOException
BybitException
-
placeOrder
@POST @Path("/order") BybitResult<BybitOrderRequest> placeOrder(@FormParam("api_key") String apiKey, @FormParam("symbol") String symbol, @FormParam("qty") long qty, @FormParam("side") String side, @FormParam("type") String type, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam("sign") si.mazi.rescu.ParamsDigest signature) throws IOException, BybitException- Throws:
IOException
BybitException
-