Package org.knowm.xchange.bybit
Interface BybitAuthenticated
@Path("/v5")
@Produces("application/json")
public interface BybitAuthenticated
-
Method Summary
Modifier and TypeMethodDescriptiongetAllCoinsBalance(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String accountType) getFeeRates(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String category, String symbol) getOpenOrders(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String category, String orderId) getWalletBalance(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String accountType) placeLimitOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String category, String symbol, String side, String orderType, BigDecimal qty, BigDecimal price, Integer positionIdx, String orderLinkId, Boolean reduceOnly) placeMarketOrder(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String category, String symbol, String side, String orderType, BigDecimal qty, String orderLinkId)
-
Method Details
-
getWalletBalance
@GET @Path("/account/wallet-balance") BybitResult<BybitWalletBalance> getWalletBalance(@HeaderParam("X-BAPI-API-KEY") String apiKey, @HeaderParam("X-BAPI-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("X-BAPI-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @QueryParam("accountType") String accountType) throws IOException, BybitException - Throws:
IOExceptionBybitException
-
getAllCoinsBalance
@GET @Path("/asset/transfer/query-account-coins-balance") BybitResult<BybitAllCoinsBalance> getAllCoinsBalance(@HeaderParam("X-BAPI-API-KEY") String apiKey, @HeaderParam("X-BAPI-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("X-BAPI-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @QueryParam("accountType") String accountType) throws IOException, BybitException - Throws:
IOExceptionBybitException
-
getFeeRates
@GET @Path("/account/fee-rate") BybitResult<BybitFeeRates> getFeeRates(@HeaderParam("X-BAPI-API-KEY") String apiKey, @HeaderParam("X-BAPI-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("X-BAPI-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @QueryParam("category") String category, @QueryParam("symbol") String symbol) throws IOException, BybitException - Throws:
IOExceptionBybitException
-
getOpenOrders
@GET @Path("/order/realtime") BybitResult<BybitOrderDetails<BybitOrderDetail>> getOpenOrders(@HeaderParam("X-BAPI-API-KEY") String apiKey, @HeaderParam("X-BAPI-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("X-BAPI-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @QueryParam("category") String category, @QueryParam("orderId") String orderId) throws IOException, BybitException - Throws:
IOExceptionBybitException
-
placeMarketOrder
@POST @Path("/order/create") BybitResult<BybitOrderResponse> placeMarketOrder(@HeaderParam("X-BAPI-API-KEY") String apiKey, @HeaderParam("X-BAPI-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("X-BAPI-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam("category") String category, @FormParam("symbol") String symbol, @FormParam("side") String side, @FormParam("orderType") String orderType, @FormParam("qty") BigDecimal qty, @FormParam("orderLinkId") String orderLinkId) throws IOException, BybitException - Throws:
IOExceptionBybitException
-
placeLimitOrder
@POST @Path("/order/create") BybitResult<BybitOrderResponse> placeLimitOrder(@HeaderParam("X-BAPI-API-KEY") String apiKey, @HeaderParam("X-BAPI-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("X-BAPI-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam("category") String category, @FormParam("symbol") String symbol, @FormParam("side") String side, @FormParam("orderType") String orderType, @FormParam("qty") BigDecimal qty, @FormParam("price") BigDecimal price, @FormParam("positionIdx") Integer positionIdx, @FormParam("orderLinkId") String orderLinkId, @FormParam("reduceOnly") Boolean reduceOnly) throws IOException, BybitException - Throws:
IOExceptionBybitException
-