Package org.knowm.xchange.hitbtc.v2
Interface Hitbtc
- All Known Subinterfaces:
HitbtcAuthenticated
@Path("/api/2/")
public interface Hitbtc
Version 2 of HitBtc API. See https://api.hitbtc.com/api/2/explore/
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrency
(String currency) getHitbtcOHLC
(String symbol, int limit, String period) getHitbtcOHLC
(String symbol, int limit, String period, int offset, String sort) getHitbtcOHLC
(String symbol, int limit, String period, String sort) getOrderBook
(String symbol, Integer limit)
-
Method Details
-
getSymbols
- Throws:
IOException
-
getCurrencies
- Throws:
IOException
-
getCurrency
@GET @Path("public/currency/{currency}") HitbtcCurrency getCurrency(@PathParam("currency") String currency) throws IOException - Throws:
IOException
-
getTickers
- Throws:
IOException
-
getTicker
@GET @Path("public/ticker/{symbol}") HitbtcTicker getTicker(@PathParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getOrderBook
@GET @Path("public/orderbook/{symbol}") HitbtcOrderBook getOrderBook(@PathParam("symbol") String symbol, @QueryParam("limit") Integer limit) throws IOException - Throws:
IOException
-
getTrades
@GET @Path("public/trades/{symbol}") List<HitbtcTrade> getTrades(@PathParam("symbol") String symbol, @QueryParam("limit") long limit, @QueryParam("offset") long offset) throws IOException - Throws:
IOException
-
getTrades
@GET @Path("public/trades/{symbol}") List<HitbtcTrade> getTrades(@PathParam("symbol") String symbol, @QueryParam("sort") String sortDirection, @QueryParam("by") String sortBy, @QueryParam("from") String from, @QueryParam("limit") long limit) throws IOException - Throws:
IOException
-
getHitbtcTickers
- Throws:
IOException
-
getHitbtcOHLC
@GET @Path("public/candles/{symbol}") List<HitbtcCandle> getHitbtcOHLC(@PathParam("symbol") String symbol, @QueryParam("limit") int limit, @QueryParam("period") String period) throws IOException - Throws:
IOException
-
getHitbtcOHLC
@GET @Path("public/candles/{symbol}") List<HitbtcCandle> getHitbtcOHLC(@PathParam("symbol") String symbol, @QueryParam("limit") int limit, @QueryParam("period") String period, @QueryParam("sort") String sort) throws IOException - Throws:
IOException
-
getHitbtcOHLC
@GET @Path("public/candles/{symbol}") List<HitbtcCandle> 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 - Throws:
IOException
-
getHitbtcOHLC
@GET @Path("public/candles/{symbol}") List<HitbtcCandle> getHitbtcOHLC(@PathParam("symbol") String symbol, @QueryParam("limit") int limit, @QueryParam("period") String period, @QueryParam("offset") int offset, @QueryParam("sort") String sort) throws IOException - Throws:
IOException
-