org.knowm.xchange.hitbtc.v2.Hitbtc Maven / Gradle / Ivy
package org.knowm.xchange.hitbtc.v2;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.QueryParam;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import org.knowm.xchange.hitbtc.v2.dto.HitbtcCandle;
import org.knowm.xchange.hitbtc.v2.dto.HitbtcCurrency;
import org.knowm.xchange.hitbtc.v2.dto.HitbtcOrderBook;
import org.knowm.xchange.hitbtc.v2.dto.HitbtcSymbol;
import org.knowm.xchange.hitbtc.v2.dto.HitbtcTicker;
import org.knowm.xchange.hitbtc.v2.dto.HitbtcTrade;
/** Version 2 of HitBtc API. See https://api.hitbtc.com/api/2/explore/ */
@Path("/api/2/")
public interface Hitbtc {
@GET
@Path("public/symbol")
List getSymbols() throws IOException;
@GET
@Path("public/currency")
List getCurrencies() throws IOException;
@GET
@Path("public/currency/{currency}")
HitbtcCurrency getCurrency(@PathParam("currency") String currency) throws IOException;
@GET
@Path("public/ticker")
List getTickers() throws IOException;
@GET
@Path("public/ticker/{symbol}")
HitbtcTicker getTicker(@PathParam("symbol") String symbol) throws IOException;
@GET
@Path("public/orderbook/{symbol}")
HitbtcOrderBook getOrderBook(
@PathParam("symbol") String symbol, @QueryParam("limit") Integer limit) throws IOException;
@GET
@Path("public/trades/{symbol}")
List getTrades(
@PathParam("symbol") String symbol,
@QueryParam("limit") long limit,
@QueryParam("offset") long offset)
throws IOException;
@GET
@Path("public/trades/{symbol}")
List getTrades(
@PathParam("symbol") String symbol,
@QueryParam("sort") String sortDirection,
@QueryParam("by") String sortBy,
@QueryParam("from") String from,
@QueryParam("limit") long limit)
throws IOException;
@GET
@Path("public/ticker")
List getHitbtcTickers() throws IOException;
@GET
@Path("public/candles/{symbol}")
List getHitbtcOHLC(
@PathParam("symbol") String symbol,
@QueryParam("limit") int limit,
@QueryParam("period") String period)
throws IOException;
@GET
@Path("public/candles/{symbol}")
List getHitbtcOHLC(
@PathParam("symbol") String symbol,
@QueryParam("limit") int limit,
@QueryParam("period") String period,
@QueryParam("sort") String sort)
throws IOException;
@GET
@Path("public/candles/{symbol}")
List getHitbtcOHLC(
@PathParam("symbol") String symbol,
@QueryParam("limit") int limit,
@QueryParam("period") String period,
@QueryParam("from") Date from,
@QueryParam("till") Date till,
@QueryParam("sort") String sort)
throws IOException;
@GET
@Path("public/candles/{symbol}")
List getHitbtcOHLC(
@PathParam("symbol") String symbol,
@QueryParam("limit") int limit,
@QueryParam("period") String period,
@QueryParam("offset") int offset,
@QueryParam("sort") String sort)
throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy