Package org.knowm.xchange.cryptocom
Interface CryptoCom
@Path("/exchange/v1")
@Produces("application/json")
public interface CryptoCom
Crypto.com Exchange v1 REST API. Every call, public or private, shares the same
{id,
method, code, result} envelope (CryptoComResponse); private calls additionally sign a
CryptoComRequest body, so a single interface (rather than a public/private split) is
enough here - unlike most exchanges, Crypto.com does not authenticate via headers or query-string
digests.-
Method Summary
Modifier and TypeMethodDescriptioncancelAllOrders(CryptoComRequest request) cancelOrder(CryptoComRequest request) createOrder(CryptoComRequest request) createWithdrawal(CryptoComRequest request) getDepositAddress(CryptoComRequest request) getDepositHistory(CryptoComRequest request) getOpenOrders(CryptoComRequest request) getOrderDetail(CryptoComRequest request) getOrderHistory(CryptoComRequest request) getPublicTrades(String instrumentName, Integer count) getTickers(String instrumentName) getUserTrades(CryptoComRequest request) getWithdrawalHistory(CryptoComRequest request) userBalance(CryptoComRequest request)
-
Method Details
-
getInstruments
@GET @Path("public/get-instruments") CryptoComResponse getInstruments() throws IOException, CryptoComException- Throws:
IOExceptionCryptoComException
-
getBook
@GET @Path("public/get-book") CryptoComResponse getBook(@QueryParam("instrument_name") String instrumentName, @QueryParam("depth") Integer depth) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getPublicTrades
@GET @Path("public/get-trades") CryptoComResponse getPublicTrades(@QueryParam("instrument_name") String instrumentName, @QueryParam("count") Integer count) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getTickers
@GET @Path("public/get-tickers") CryptoComResponse getTickers(@QueryParam("instrument_name") String instrumentName) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
userBalance
@POST @Path("private/user-balance") @Consumes("application/json") CryptoComResponse userBalance(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
createOrder
@POST @Path("private/create-order") @Consumes("application/json") CryptoComResponse createOrder(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
cancelOrder
@POST @Path("private/cancel-order") @Consumes("application/json") CryptoComResponse cancelOrder(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
cancelAllOrders
@POST @Path("private/cancel-all-orders") @Consumes("application/json") CryptoComResponse cancelAllOrders(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getOpenOrders
@POST @Path("private/get-open-orders") @Consumes("application/json") CryptoComResponse getOpenOrders(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getOrderDetail
@POST @Path("private/get-order-detail") @Consumes("application/json") CryptoComResponse getOrderDetail(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getOrderHistory
@POST @Path("private/get-order-history") @Consumes("application/json") CryptoComResponse getOrderHistory(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getUserTrades
@POST @Path("private/get-trades") @Consumes("application/json") CryptoComResponse getUserTrades(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getDepositAddress
@POST @Path("private/get-deposit-address") @Consumes("application/json") CryptoComResponse getDepositAddress(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getDepositHistory
@POST @Path("private/get-deposit-history") @Consumes("application/json") CryptoComResponse getDepositHistory(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
getWithdrawalHistory
@POST @Path("private/get-withdrawal-history") @Consumes("application/json") CryptoComResponse getWithdrawalHistory(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-
createWithdrawal
@POST @Path("private/create-withdrawal") @Consumes("application/json") CryptoComResponse createWithdrawal(CryptoComRequest request) throws IOException, CryptoComException - Throws:
IOExceptionCryptoComException
-