All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xeiam.xchange.coinsetter.CoinsetterMarketData Maven / Gradle / Ivy

package com.xeiam.xchange.coinsetter;

import java.io.IOException;
import java.math.BigDecimal;

import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterLast;
import com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterListDepth;
import com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterPairedDepth;
import com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterQuote;
import com.xeiam.xchange.coinsetter.dto.marketdata.CoinsetterTicker;

/**
 * RESTful/JSON API: Market Data.
 * 
 * @deprecated Use {@link com.xeiam.xchange.coinsetter.rs.CoinsetterMarketData} instead.
 */
@Path("/marketdata")
@Produces(MediaType.APPLICATION_JSON)
@Deprecated
public interface CoinsetterMarketData {

  @GET
  @Path("last")
  public CoinsetterLast getLast() throws CoinsetterException, IOException;

  @GET
  @Path("last")
  public CoinsetterLast getLast(@QueryParam("since") int lookback) throws CoinsetterException, IOException;

  @GET
  @Path("ticker")
  public CoinsetterTicker getTicker() throws CoinsetterException, IOException;

  @GET
  @Path("depth")
  public CoinsetterPairedDepth getPairedDepth(@QueryParam("depth") @DefaultValue("10") int depth,
      @QueryParam("exchange") @DefaultValue("SMART") String exchange) throws CoinsetterException, IOException;

  @GET
  @Path("depth")
  public CoinsetterListDepth getListDepth(@QueryParam("depth") @DefaultValue("10") int depth, @QueryParam("format") String format,
      @QueryParam("exchange") @DefaultValue("SMART") String exchange) throws CoinsetterException, IOException;

  @GET
  @Path("full_depth")
  public CoinsetterListDepth getFullDepth() throws CoinsetterException, IOException;

  @GET
  @Path("full_depth")
  public CoinsetterListDepth getFullDepth(@QueryParam("exchange") String exchange) throws CoinsetterException, IOException;

  @GET
  @Path("quote")
  public CoinsetterQuote getQuote(@QueryParam("quantity") BigDecimal quantity, @QueryParam("symbol") String symbol)
      throws CoinsetterException, IOException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy