Package org.knowm.xchange.yobit
Interface YoBit
@Path("/")
@Produces("application/json")
public interface YoBit
-
Method Summary
Modifier and Type Method Description BaseYoBitResponse
activeOrders(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String market)
BaseYoBitResponse
cancelOrder(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, Long orderId)
BaseYoBitResponse
getDepositAddress(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String coinName, Boolean needNew)
BaseYoBitResponse
getInfo(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)
YoBitOrderBooksReturn
getOrderBooks(String currencyPairs, long limit)
YoBitInfo
getProducts()
YoBitTickersReturn
getTickers(String currencyPairs)
YoBitTrades
getTrades(String currencyPairsCurrency)
BaseYoBitResponse
orderInfo(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, Long orderId)
BaseYoBitResponse
trade(String apiKey, YoBitDigest signatureCreator, String method, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String market, String type, BigDecimal price, BigDecimal amount)
BaseYoBitResponse
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)
BaseYoBitResponse
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
-