org.knowm.xchange.gateio.Gateio Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-gateio Show documentation
Show all versions of xchange-gateio Show documentation
XChange implementation for the Gate.io Exchange
package org.knowm.xchange.gateio;
import java.io.IOException;
import java.util.Map;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.gateio.dto.marketdata.GateioCandlestickHistory;
import org.knowm.xchange.gateio.dto.marketdata.GateioCoinInfoWrapper;
import org.knowm.xchange.gateio.dto.marketdata.GateioCurrencyPairs;
import org.knowm.xchange.gateio.dto.marketdata.GateioDepth;
import org.knowm.xchange.gateio.dto.marketdata.GateioMarketInfoWrapper;
import org.knowm.xchange.gateio.dto.marketdata.GateioTicker;
import org.knowm.xchange.gateio.dto.marketdata.GateioTradeHistory;
@Path("api2/1")
@Produces(MediaType.APPLICATION_JSON)
public interface Gateio {
@GET
@Path("marketinfo")
GateioMarketInfoWrapper getMarketInfo() throws IOException;
@GET
@Path("pairs")
GateioCurrencyPairs getPairs() throws IOException;
@GET
@Path("orderBooks")
Map getDepths() throws IOException;
@GET
@Path("tickers")
Map getTickers() throws IOException;
@GET
@Path("coininfo")
GateioCoinInfoWrapper getCoinInfo() throws IOException;
@GET
@Path("ticker/{ident}_{currency}")
GateioTicker getTicker(
@PathParam("ident") String tradeableIdentifier, @PathParam("currency") String currency)
throws IOException;
@GET
@Path("orderBook/{ident}_{currency}")
GateioDepth getFullDepth(
@PathParam("ident") String tradeableIdentifier, @PathParam("currency") String currency)
throws IOException;
@GET
@Path("tradeHistory/{ident}_{currency}")
GateioTradeHistory getTradeHistory(
@PathParam("ident") String tradeableIdentifier, @PathParam("currency") String currency)
throws IOException;
@GET
@Path("tradeHistory/{ident}_{currency}/{tradeId}")
GateioTradeHistory getTradeHistorySince(
@PathParam("ident") String tradeableIdentifier,
@PathParam("currency") String currency,
@PathParam("tradeId") String tradeId)
throws IOException;
@GET
@Path("candlestick2/{currency_pair}")
GateioCandlestickHistory getKlinesGate(
@PathParam("currency_pair") String tradePair,
@QueryParam("range_hour") Integer hours,
@QueryParam("group_sec") Long interval)
throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy