org.knowm.xchange.taurus.Taurus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-taurus Show documentation
Show all versions of xchange-taurus Show documentation
XChange implementation for Taurusexchange
The newest version!
package org.knowm.xchange.taurus;
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.taurus.dto.marketdata.TaurusOrderBook;
import org.knowm.xchange.taurus.dto.marketdata.TaurusTicker;
import org.knowm.xchange.taurus.dto.marketdata.TaurusTransaction;
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public interface Taurus {
@GET
@Path("order_book/")
TaurusOrderBook getOrderBook() throws IOException;
@GET
@Path("ticker/")
TaurusTicker getTicker() throws IOException;
@GET
@Path("transactions/")
TaurusTransaction[] getTransactions() throws IOException;
@GET
@Path("transactions/")
TaurusTransaction[] getTransactions(@QueryParam("time") Time time) throws IOException;
enum Time {
hour,
minute
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy