Interface CexIO

All Known Subinterfaces:
CexIOAuthenticated

@Path("api") @Produces("application/json") public interface CexIO
Author:
brox
  • Method Details

    • getAllTickers

      @GET @Path("tickers/USD/EUR/GBP/RUB/BTC") CexIOTickersResponse getAllTickers() throws IOException
      Gets all tickers for the CexIO market

      At the moment CexIO has the following 5 markets: USD, EUR, GBP, RUB, BTC

      We are hardcoding those 5 markets in the path since ResCU rest client does not support passing an arbitrary number of optional path params.

      If RecCU supported that then we would like to get rid of this method and create a method with the following signature getTickers(Set<String>) where each string in the set will be added as a path parameter

      See https://github.com/mmazi/rescu/issues/110

      Returns:
      The tickers response
      Throws:
      IOException
    • getTicker

      @GET @Path("ticker/{ident}/{currency}") CexIOTicker getTicker(@PathParam("ident") String tradeableIdentifier, @PathParam("currency") String currency) throws IOException
      Throws:
      IOException
    • getDepth

      @GET @Path("order_book/{ident}/{currency}") CexIODepth getDepth(@PathParam("ident") String tradeableIdentifier, @PathParam("currency") String currency) throws IOException
      Throws:
      IOException
    • getTrades

      @GET @Path("trade_history/{ident}/{currency}/") CexIOTrade[] getTrades(@PathParam("ident") String tradeableIdentifier, @PathParam("currency") String currency) throws IOException
      Throws:
      IOException
    • getTradesSince

      @POST @Path("trade_history/{ident}/{currency}/") CexIOTrade[] getTradesSince(@PathParam("ident") String tradeableIdentifier, @PathParam("currency") String currency, @DefaultValue("1") @FormParam("since") long since) throws IOException
      Throws:
      IOException
    • getCurrencyLimits

      @GET @Path("currency_limits") CexIOCurrencyLimits getCurrencyLimits() throws IOException
      Throws:
      IOException