Package org.knowm.xchange.bitfinex.v2
Interface Bitfinex
- All Known Subinterfaces:
BitfinexAuthenticated
@Path("v2")
@Produces("application/json")
public interface Bitfinex
-
Method Summary
Modifier and TypeMethodDescriptionfundingBook
(String symbol, BookPrecision precision, Integer len) fundingBookRaw
(String symbol, Integer len) getHistoricCandles
(String candlePeriod, String currency, Integer limit, Long startTimestamp, Long endTimestamp, Integer sort) getHistoricFundingCandles
(String candlePeriod, String currency, String fundingPeriod, int limit) Integer[]
getPublicFundingTrades
(String fundingSymbol, int limit, long startTimestamp, long endTimestamp, int sort) getPublicTrades
(String fundingSymbol, int limit, long startTimestamp, long endTimestamp, int sort) getStats
(String key, String size, String symbol, String side, Integer sort, Long startTimestamp, Long endTimestamp, Integer limit) List<com.fasterxml.jackson.databind.node.ArrayNode>
getTickers
(String symbols) tradingBook
(String symbol, BookPrecision precision, Integer len) tradingBookRaw
(String symbol, Integer len)
-
Method Details
-
getPlatformStatus
- Throws:
IOException
BitfinexExceptionV2
-
getTickers
@GET @Path("tickers") List<com.fasterxml.jackson.databind.node.ArrayNode> getTickers(@QueryParam("symbols") String symbols) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getStatus
@GET @Path("status/{type}") List<Status> getStatus(@PathParam("type") String type, @QueryParam("keys") String symbols) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getPublicFundingTrades
@GET @Path("/trades/{symbol}/hist") BitfinexPublicFundingTrade[] getPublicFundingTrades(@PathParam("symbol") String fundingSymbol, @QueryParam("limit") int limit, @QueryParam("start") long startTimestamp, @QueryParam("end") long endTimestamp, @QueryParam("sort") int sort) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getPublicTrades
@GET @Path("/trades/{symbol}/hist") BitfinexPublicTrade[] getPublicTrades(@PathParam("symbol") String fundingSymbol, @QueryParam("limit") int limit, @QueryParam("start") long startTimestamp, @QueryParam("end") long endTimestamp, @QueryParam("sort") int sort) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getHistoricFundingCandles
@GET @Path("candles/trade:{candlePeriod}:{symbol}:{fundingPeriod}/hist") List<BitfinexCandle> getHistoricFundingCandles(@PathParam("candlePeriod") String candlePeriod, @PathParam("symbol") String currency, @PathParam("fundingPeriod") String fundingPeriod, @QueryParam("limit") int limit) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getHistoricCandles
@GET @Path("/candles/trade:{candlePeriod}:{symbol}/hist") List<BitfinexCandle> getHistoricCandles(@PathParam("candlePeriod") String candlePeriod, @PathParam("symbol") String currency, @QueryParam("limit") Integer limit, @QueryParam("start") Long startTimestamp, @QueryParam("end") Long endTimestamp, @QueryParam("sort") Integer sort) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getStats
@GET @Path("stats1/{key}:{size}:{symbol}:{side}/hist") List<BitfinexStats> getStats(@PathParam("key") String key, @PathParam("size") String size, @PathParam("symbol") String symbol, @PathParam("side") String side, @QueryParam("sort") Integer sort, @QueryParam("start") Long startTimestamp, @QueryParam("end") Long endTimestamp, @QueryParam("limit") Integer limit) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
tradingBook
@GET @Path("book/{symbol}/{precision}") List<BitfinexTradingOrder> tradingBook(@PathParam("symbol") String symbol, @PathParam("precision") BookPrecision precision, @QueryParam("len") Integer len) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
tradingBookRaw
@GET @Path("book/{symbol}/R0") List<BitfinexTradingRawOrder> tradingBookRaw(@PathParam("symbol") String symbol, @QueryParam("len") Integer len) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
fundingBook
@GET @Path("book/{symbol}/{precision}") List<BitfinexFundingOrder> fundingBook(@PathParam("symbol") String symbol, @PathParam("precision") BookPrecision precision, @QueryParam("len") Integer len) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
fundingBookRaw
@GET @Path("book/{symbol}/R0") List<BitfinexFundingRawOrder> fundingBookRaw(@PathParam("symbol") String symbol, @QueryParam("len") Integer len) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-