Package org.knowm.xchange.bybit
Interface BybitAuthenticated
@Path("/v5")
@Produces("application/json")
public interface BybitAuthenticated
-
Method Summary
Modifier and TypeMethodDescriptionamendOrder
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, BybitAmendOrderPayload payload) getAllCoinsBalance
(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, BybitPlaceOrderPayload payload) placeMarketOrder
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, BybitPlaceOrderPayload payload)
-
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:
IOException
BybitException
-
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:
IOException
BybitException
-
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:
IOException
BybitException
-
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:
IOException
BybitException
-
placeMarketOrder
@POST @Path("/order/create") @Consumes("application/json") 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, BybitPlaceOrderPayload payload) throws IOException, BybitException - Throws:
IOException
BybitException
-
placeLimitOrder
@POST @Path("/order/create") @Consumes("application/json") 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, BybitPlaceOrderPayload payload) throws IOException, BybitException - Throws:
IOException
BybitException
-
amendOrder
@POST @Path("/order/amend") @Consumes("application/json") BybitResult<BybitOrderResponse> amendOrder(@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, BybitAmendOrderPayload payload) throws IOException, BybitException - Throws:
IOException
BybitException
-