Interface CexIO

  • All Known Subinterfaces:
    CexIOAuthenticated

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

      • 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
      • 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