Class BinanceMarketDataService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<E>
org.knowm.xchange.service.BaseResilientExchangeService<BinanceExchange>
org.knowm.xchange.binance.service.BinanceBaseService
org.knowm.xchange.binance.service.BinanceMarketDataServiceRaw
org.knowm.xchange.binance.service.BinanceMarketDataService
- All Implemented Interfaces:
BaseService,MarketDataService
public class BinanceMarketDataService
extends BinanceMarketDataServiceRaw
implements MarketDataService
-
Field Summary
Fields inherited from class org.knowm.xchange.binance.service.BinanceBaseService
apiKey, binance, binanceFutures, inverseBinanceFutures, LOG, signatureCreatorFields inherited from class org.knowm.xchange.service.BaseResilientExchangeService
resilienceRegistriesFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
ConstructorsConstructorDescriptionBinanceMarketDataService(BinanceExchange exchange, ResilienceRegistries resilienceRegistries) -
Method Summary
Modifier and TypeMethodDescriptionstatic OrderBookconvertOrderBook(BinanceOrderbook ob, Instrument pair) getFundingRate(Instrument instrument) getOrderBook(Instrument instrument, Object... args) getTicker(Instrument instrument, Object... args) getTrades(Instrument instrument, Object... args) optional parameters provided in the args array: 0: Long fromId optional, ID to get aggregate trades from INCLUSIVE.Methods inherited from class org.knowm.xchange.binance.service.BinanceMarketDataServiceRaw
aggTradesAllProducts, aggTradesPermits, binanceTime, depthPermits, getBinanceFundingRate, getBinanceFundingRates, getBinanceOrderbookAllProducts, klines, klines, lastKline, ping, ticker24hAllProducts, ticker24hAllProducts, tickerAllBookTickers, tickerAllPrices, tickerPriceMethods inherited from class org.knowm.xchange.binance.service.BinanceBaseService
getExchangeInfo, getFutureExchangeInfo, getRecvWindow, getSystemStatus, getTimestampFactoryMethods inherited from class org.knowm.xchange.service.BaseResilientExchangeService
decorateApiCall, rateLimiter, rateLimiter, retry, retryMethods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.knowm.xchange.service.marketdata.MarketDataService
getCandleStickData, getOrderBook, getOrderBook, getTicker, getTickers, getTrades, getTrades
-
Constructor Details
-
BinanceMarketDataService
public BinanceMarketDataService(BinanceExchange exchange, ResilienceRegistries resilienceRegistries)
-
-
Method Details
-
getTrades
optional parameters provided in the args array:- 0: Long fromId optional, ID to get aggregate trades from INCLUSIVE.
- 1: Long startTime optional, Timestamp in ms to get aggregate trades from INCLUSIVE.
- 2: Long endTime optional, Timestamp in ms to get aggregate trades until INCLUSIVE.
- 3: Integer limit optional, Default 500; max 500.
- Specified by:
getTradesin interfaceMarketDataService- Throws:
IOException
-
getTicker
- Specified by:
getTickerin interfaceMarketDataService- Throws:
IOException
-
getOrderBook
- Specified by:
getOrderBookin interfaceMarketDataService- Throws:
IOException
-
getFundingRates
- Specified by:
getFundingRatesin interfaceMarketDataService- Throws:
IOException
-
getFundingRate
- Specified by:
getFundingRatein interfaceMarketDataService- Throws:
IOException
-
convertOrderBook
-