package org.knowm.xchange.bitso;
import java.io.IOException;
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 org.knowm.xchange.bitso.dto.BitsoException;
import org.knowm.xchange.bitso.dto.marketdata.BitsoOrderBook;
import org.knowm.xchange.bitso.dto.marketdata.BitsoTicker;
import org.knowm.xchange.bitso.dto.marketdata.BitsoTransaction;
/**
* @author Piotr Ładyżyński
*/
@Path("v2")
@Produces(MediaType.APPLICATION_JSON)
public interface Bitso {
/**
* Returns "bids" and "asks". Each is a list of open orders and each order is represented as a list of price and amount.
*/
@GET
@Path("order_book/")
public BitsoOrderBook getOrderBook() throws BitsoException, IOException;
@GET
@Path("ticker/")
public BitsoTicker getTicker() throws BitsoException, IOException;
/**
* Returns descending list of transactions.
*/
@GET
@Path("transactions/")
public BitsoTransaction[] getTransactions() throws BitsoException, IOException;
/**
* Returns descending list of transactions.
*/
@GET
@Path("transactions/")
public BitsoTransaction[] getTransactions(@QueryParam("time") String time) throws BitsoException, IOException;
}