Class BitfinexMarketDataServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<E>
org.knowm.xchange.service.BaseResilientExchangeService<BitfinexExchange>
org.knowm.xchange.bitfinex.service.BitfinexBaseService
org.knowm.xchange.bitfinex.service.BitfinexMarketDataServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
BitfinexMarketDataService
public class BitfinexMarketDataServiceRaw extends BitfinexBaseService
Implementation of the market data service for Bitfinex
- Provides access to various market data values
-
Field Summary
Fields inherited from class org.knowm.xchange.bitfinex.service.BitfinexBaseService
apiKey, bitfinex, bitfinexV2, payloadCreator, signatureCreator, signatureV2
Fields inherited from class org.knowm.xchange.service.BaseResilientExchangeService
resilienceRegistries
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description BitfinexMarketDataServiceRaw(BitfinexExchange exchange, ResilienceRegistries resilienceRegistries)
Constructor -
Method Summary
Methods inherited from class org.knowm.xchange.service.BaseResilientExchangeService
decorateApiCall, rateLimiter, rateLimiter, retry, retry
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BitfinexMarketDataServiceRaw
public BitfinexMarketDataServiceRaw(BitfinexExchange exchange, ResilienceRegistries resilienceRegistries)Constructor- Parameters:
exchange
-
-
-
Method Details
-
getBitfinexTicker
- Throws:
IOException
-
getBitfinexOrderBook
public BitfinexDepth getBitfinexOrderBook(String pair, Integer limitBids, Integer limitAsks) throws IOException- Throws:
IOException
-
getBitfinexLendBook
public BitfinexLendDepth getBitfinexLendBook(String currency, int limitBids, int limitAsks) throws IOException- Throws:
IOException
-
getBitfinexTrades
- Throws:
IOException
-
getBitfinexLends
public BitfinexLend[] getBitfinexLends(String currency, long sinceTimestamp, int limitTrades) throws IOException- Throws:
IOException
-
getBitfinexSymbols
- Throws:
IOException
-
getExchangeSymbols
- Throws:
IOException
-
getSymbolDetails
- Throws:
IOException
-
getBitfinexPlatformStatus
- Throws:
IOException
-
getBitfinexTickers
public BitfinexTicker[] getBitfinexTickers(Collection<CurrencyPair> currencyPairs) throws IOException- Throws:
IOException
-
getBitfinexTickerV2
- Throws:
IOException
-
getBitfinexPublicTrades
public BitfinexPublicTrade[] getBitfinexPublicTrades(CurrencyPair currencyPair, int limitTrades, long startTimestamp, long endTimestamp, int sort) throws IOException- Throws:
IOException
-
getBitfinexPublicFundingTrades
public BitfinexPublicFundingTrade[] getBitfinexPublicFundingTrades(Currency currency, int limitTrades, long startTimestamp, long endTimestamp, int sort) throws IOException- Throws:
IOException
-
getStatus
- Throws:
IOException
-
getFundingHistoricCandles
public List<BitfinexCandle> getFundingHistoricCandles(String candlePeriod, String pair, int fundingPeriod, int numOfCandles) throws IOException- Throws:
IOException
-
getHistoricCandles
public List<BitfinexCandle> getHistoricCandles(String candlePeriod, CurrencyPair currencyPair, Integer limit, Long startTimestamp, Long endTimestamp, Integer sort) throws IOException- Throws:
IOException
-
getStats
public List<BitfinexStats> getStats(String key, String size, String symbol, String side, Integer sort, Long startTimestamp, Long endTimestamp, Integer limit) throws IOException- Parameters:
key
- Allowed values: "funding.size", "credits.size", "credits.size.sym", "pos.size", "vol.1d", "vol.7d", "vol.30d", "vwap"size
- Available values: "30m", "1d", '1m'symbol
- The symbol you want information about. (e.g. tBTCUSD, tETHUSD, fUSD, fBTC)side
- Available values: "long", "short". Only for non-funding queries.sort
- if = 1 it sorts results returned with old > newstartTimestamp
- Millisecond start timeendTimestamp
- Millisecond end timelimit
- Number of records (Max: 10000)- Returns:
- Throws:
IOException
-
tradingBook
public List<BitfinexTradingOrder> tradingBook(String symbol, BookPrecision precision, Integer len) throws IOException- Parameters:
symbol
- The symbol you want information about. (e.g. tBTCUSD, tETHUSD, fUSD, fBTC)precision
- Level of price aggregation (P0, P1, P2, P3, P4, R0)len
- Number of price points ("1", "25", "100")- Returns:
- list of orders in the book
- Throws:
IOException
-
tradingBookRaw
- Parameters:
symbol
- The symbol you want information about. (e.g. tBTCUSD, tETHUSD, fUSD, fBTC)len
- Number of price points ("1", "25", "100")- Returns:
- list of orders in the book
- Throws:
IOException
-
fundingBook
public List<BitfinexFundingOrder> fundingBook(String symbol, BookPrecision precision, Integer len) throws IOException- Parameters:
symbol
- The symbol you want information about. (e.g. tBTCUSD, tETHUSD, fUSD, fBTC)precision
- Level of price aggregation (P0, P1, P2, P3, P4, R0)len
- Number of price points ("1", "25", "100")- Returns:
- list of orders in the book
- Throws:
IOException
-
fundingBookRaw
- Parameters:
symbol
- The symbol you want information about. (e.g. tBTCUSD, tETHUSD, fUSD, fBTC)len
- Number of price points ("1", "25", "100")- Returns:
- list of orders in the book
- Throws:
IOException
-