1 package org.oxerr.chbtc; 2 3 import java.io.IOException; 4 5 import javax.ws.rs.GET; 6 import javax.ws.rs.Path; 7 import javax.ws.rs.QueryParam; 8 9 import org.oxerr.chbtc.dto.Depth; 10 import org.oxerr.chbtc.dto.TickerResponse; 11 import org.oxerr.chbtc.dto.Trade; 12 13 public interface CHBTCMarketData { 14 15 @GET 16 @Path("ticker") 17 TickerResponse getTicker() throws IOException; 18 19 @GET 20 @Path("depth") 21 Depth getDepth() throws IOException; 22 23 @GET 24 @Path("trades") 25 Trade[] getTrades() throws IOException; 26 27 @GET 28 @Path("trades") 29 Trade[] getTrades(@QueryParam("since") long since) throws IOException; 30 31 }