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, LOG, signatureCreatorFields inherited from class org.knowm.xchange.service.BaseResilientExchangeService
resilienceRegistriesFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
Constructors Constructor Description BinanceMarketDataService(BinanceExchange exchange, BinanceAuthenticated binance, ResilienceRegistries resilienceRegistries) -
Method Summary
Modifier and Type Method Description static OrderBookconvertOrderBook(BinanceOrderbook ob, CurrencyPair pair)List<Ticker>getAllBookTickers()OrderBookgetOrderBook(CurrencyPair pair, Object... args)TickergetTicker(CurrencyPair pair, Object... args)List<Ticker>getTickers(Params params)TradesgetTrades(CurrencyPair pair, 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
aggTrades, aggTradesPermits, depthPermits, getBinanceOrderbook, klines, klines, lastKline, ping, ticker24h, ticker24h, tickerAllBookTickers, tickerAllPrices, tickerPriceMethods inherited from class org.knowm.xchange.binance.service.BinanceBaseService
getExchangeInfo, 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
getOrderBook, getTrades
-
Constructor Details
-
BinanceMarketDataService
public BinanceMarketDataService(BinanceExchange exchange, BinanceAuthenticated binance, ResilienceRegistries resilienceRegistries)
-
-
Method Details
-
getOrderBook
- Specified by:
getOrderBookin interfaceMarketDataService- Throws:
IOException
-
convertOrderBook
-
getTicker
- Specified by:
getTickerin interfaceMarketDataService- Throws:
IOException
-
getTickers
- Specified by:
getTickersin interfaceMarketDataService- Throws:
IOException
-
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
-
getAllBookTickers
- Throws:
IOException
-