Package org.knowm.xchange.livecoin
Interface Livecoin
@Path("/")
@Produces("application/json")
public interface Livecoin
-
Method Summary
-
Method Details
-
getRestrictions
@GET @Path("exchange/restrictions") LivecoinRestrictions getRestrictions() throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
getOrderBook
@GET @Path("exchange/order_book?currencyPair={baseCurrency}/{targetCurrency}&depth={depth}&groupByPrice={groupByPrice}") LivecoinOrderBook getOrderBook(@PathParam("baseCurrency") String baseCurrency, @PathParam("targetCurrency") String targetCurrency, @PathParam("depth") int depth, @PathParam("groupByPrice") String groupByPrice) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
getAllOrderBooks
@GET @Path("exchange/all/order_book?depth={depth}&groupByPrice={groupByPrice}") LivecoinAllOrderBooks getAllOrderBooks(@PathParam("depth") int depth, @PathParam("groupByPrice") String groupByPrice) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
getTrades
@GET @Path("exchange/last_trades?currencyPair={baseCurrency}/{targetCurrency}") List<LivecoinTrade> getTrades(@PathParam("baseCurrency") String baseCurrency, @PathParam("targetCurrency") String targetCurrency) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
getTicker
@GET @Path("exchange/ticker?currencyPair={baseCurrency}/{targetCurrency}") LivecoinTicker getTicker(@PathParam("baseCurrency") String baseCurrency, @PathParam("targetCurrency") String targetCurrency) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
getTicker
@GET @Path("exchange/ticker") List<LivecoinTicker> getTicker() throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
balances
@GET @Path("payment/balances") List<LivecoinBalance> balances(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @QueryParam("currency") String currency) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
transactions
@GET @Path("payment/history/transactions") List<Map> transactions(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @QueryParam("start") String start, @QueryParam("end") String end, @QueryParam("types") String types, @QueryParam("limit") Integer limit, @QueryParam("offset") Long offset) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
paymentAddress
@GET @Path("payment/get/address") LivecoinWalletAddressResponse paymentAddress(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @QueryParam("currency") String currency) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
paymentOutCoin
@POST @Path("payment/out/coin") LivecoinPaymentOutResponse paymentOutCoin(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("wallet") String wallet) throws IOException, LivecoinException- Throws:
IOException
LivecoinException
-
paymentOutPayeer
@POST @Path("payment/out/payeer") LivecoinResponseWithDataMap paymentOutPayeer(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("wallet") String wallet, @FormParam("protect") String protect, @FormParam("protect_code") String protectCode, @FormParam("protect_period") Integer protectPeriod) throws IOException- Throws:
IOException
-
paymentOutCapitalist
@POST @Path("payment/out/capitalist") LivecoinResponseWithDataMap paymentOutCapitalist(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("wallet") String wallet) throws IOException- Throws:
IOException
-
paymentOutCard
@POST @Path("payment/out/card") LivecoinResponseWithDataMap paymentOutCard(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("card_number") String cardNumber, @FormParam("expiry_month") String expiryMonth, @FormParam("expiry_year") String expiryYear) throws IOException- Throws:
IOException
-
paymentOutOkPay
@POST @Path("payment/out/okpay") LivecoinResponseWithDataMap paymentOutOkPay(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("wallet") String wallet, @FormParam("invoice") String invoice) throws IOException- Throws:
IOException
-
paymentOutPerfectmoney
@POST @Path("payment/out/perfectmoney") LivecoinResponseWithDataMap paymentOutPerfectmoney(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("wallet") String wallet, @FormParam("protect_code") String protectCode, @FormParam("protect_period") Integer protectPeriod) throws IOException- Throws:
IOException
-
clientOrders
@GET @Path("exchange/client_orders") LivecoinPaginatedResponse<LivecoinUserOrder> clientOrders(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @QueryParam("currencyPair") String currencyPair, @QueryParam("openClosed") String openClosed, @QueryParam("issuedFrom") Long issuedFrom, @QueryParam("issuedTo") Long issuedTo, @QueryParam("startRow") Long startRow, @QueryParam("endRow") Long endRow) throws IOException- Throws:
IOException
-
buyWithLimitOrder
@POST @Path("exchange/buylimit") LivecoinOrderResponse buyWithLimitOrder(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currencyPair") String currencyPair, @FormParam("price") BigDecimal price, @FormParam("quantity") BigDecimal quantity) throws IOException- Throws:
IOException
-
sellWithLimitOrder
@POST @Path("exchange/selllimit") LivecoinOrderResponse sellWithLimitOrder(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currencyPair") String currencyPair, @FormParam("price") BigDecimal price, @FormParam("quantity") BigDecimal quantity) throws IOException- Throws:
IOException
-
buyWithMarketOrder
@POST @Path("exchange/buymarket") LivecoinOrderResponse buyWithMarketOrder(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currencyPair") String currencyPair, @FormParam("quantity") BigDecimal quantity) throws IOException- Throws:
IOException
-
sellWithMarketOrder
@POST @Path("exchange/sellmarket") LivecoinOrderResponse sellWithMarketOrder(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currencyPair") String currencyPair, @FormParam("quantity") BigDecimal quantity) throws IOException- Throws:
IOException
-
cancelLimitOrder
@POST @Path("exchange/cancellimit") LivecoinCancelResponse cancelLimitOrder(@HeaderParam("Api-key") String apiKey, @HeaderParam("Sign") LivecoinDigest signatureCreator, @FormParam("currencyPair") String currencyPair, @FormParam("orderId") long orderId) throws IOException- Throws:
IOException
-