Package org.knowm.xchange.yobit
Interface YoBit
@Path("/")
@Produces("application/json")
public interface YoBit
-
Method Summary
Modifier and TypeMethodDescriptionactiveOrders
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String market) cancelOrder
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, Long orderId) getDepositAddress
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String coinName, Boolean needNew) getInfo
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getOrderBooks
(String currencyPairs, long limit) getTickers
(String currencyPairs) orderInfo
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, Long orderId) trade
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String market, String type, BigDecimal price, BigDecimal amount) tradeHistory
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, Long offset, Integer count, Long fromTransactionId, Long endTransactionId, String order, Long sinceTime, Long endTime, String currencyPair) withdrawCoinsToAddress
(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String coinName, BigDecimal amount, String address)
-
Method Details
-
getProducts
- Throws:
IOException
-
getOrderBooks
@GET @Path("api/3/depth/{currencyPairs}") YoBitOrderBooksReturn getOrderBooks(@PathParam("currencyPairs") String currencyPairs, @QueryParam("limit") long limit) throws IOException - Throws:
IOException
-
getTrades
@GET @Path("api/3/trades/{currencyPairs}") YoBitTrades getTrades(@PathParam("currencyPairs") String currencyPairsCurrency) throws IOException - Throws:
IOException
-
getTickers
@GET @Path("api/3/ticker/{currencyPairs}") YoBitTickersReturn getTickers(@PathParam("currencyPairs") String currencyPairs) throws IOException - Throws:
IOException
-
getInfo
@POST @Path("/tapi") BaseYoBitResponse getInfo(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
withdrawCoinsToAddress
@POST @Path("/tapi") BaseYoBitResponse withdrawCoinsToAddress(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("coinName") String coinName, @FormParam("amount") BigDecimal amount, @FormParam("address") String address) throws IOException - Throws:
IOException
-
getDepositAddress
@POST @Path("/tapi") BaseYoBitResponse getDepositAddress(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("coinName") String coinName, @FormParam("need_new") Boolean needNew) throws IOException - Throws:
IOException
-
tradeHistory
@POST @Path("/tapi") BaseYoBitResponse tradeHistory(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("form") Long offset, @FormParam("count") Integer count, @FormParam("from_id") Long fromTransactionId, @FormParam("end_id") Long endTransactionId, @FormParam("order") String order, @FormParam("since") Long sinceTime, @FormParam("end") Long endTime, @FormParam("pair") String currencyPair) throws IOException - Throws:
IOException
-
activeOrders
@POST @Path("/tapi") BaseYoBitResponse activeOrders(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("pair") String market) throws IOException - Throws:
IOException
-
orderInfo
@POST @Path("/tapi") BaseYoBitResponse orderInfo(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("order_id") Long orderId) throws IOException - Throws:
IOException
-
cancelOrder
@POST @Path("/tapi") BaseYoBitResponse cancelOrder(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("order_id") Long orderId) throws IOException - Throws:
IOException
-
trade
@POST @Path("/tapi") BaseYoBitResponse trade(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") YoBitDigest signatureCreator, @FormParam("method") String method, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("pair") String market, @FormParam("type") String type, @FormParam("rate") BigDecimal price, @FormParam("amount") BigDecimal amount) throws IOException - Throws:
IOException
-