
com.xeiam.xchange.poloniex.Poloniex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-poloniex Show documentation
Show all versions of xchange-poloniex Show documentation
XChange implementation for the Poloniex Exchange
The newest version!
package com.xeiam.xchange.poloniex;
/**
* @author Zach Holmes
*/
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
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.poloniex.dto.marketdata.PoloniexCurrencyInfo;
import com.xeiam.xchange.poloniex.dto.marketdata.PoloniexDepth;
import com.xeiam.xchange.poloniex.dto.marketdata.PoloniexMarketData;
import com.xeiam.xchange.poloniex.dto.marketdata.PoloniexPublicTrade;
@Path("public")
@Produces(MediaType.APPLICATION_JSON)
public interface Poloniex {
@GET
HashMap getCurrencyInfo(@QueryParam("command") String command) throws PoloniexException, IOException;
@GET
HashMap getTicker(@QueryParam("command") String command) throws PoloniexException, IOException;
@GET
PoloniexDepth getOrderBook(@QueryParam("command") String command, @QueryParam("currencyPair") String currencyPair)
throws PoloniexException, IOException;
@GET
PoloniexDepth getOrderBook(@QueryParam("command") String command, @QueryParam("currencyPair") String currencyPair,
@QueryParam("depth") Integer depth) throws PoloniexException, IOException;
@GET
PoloniexPublicTrade[] getTrades(@QueryParam("command") String command, @QueryParam("currencyPair") String currencyPair,
@QueryParam("start") Long startTime, @QueryParam("end") Long endTime) throws PoloniexException, IOException;
@GET
Map getAllOrderBooks(@QueryParam("command") String command, @QueryParam("currencyPair") String pair,
@QueryParam("depth") Integer depth) throws PoloniexException, IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy