Package org.knowm.xchange.bybit.service
Class BybitMarketDataService
java.lang.Object
org.knowm.xchange.bybit.service.BybitBaseService
org.knowm.xchange.bybit.service.BybitMarketDataServiceRaw
org.knowm.xchange.bybit.service.BybitMarketDataService
- All Implemented Interfaces:
BaseService
,MarketDataService
public class BybitMarketDataService extends BybitMarketDataServiceRaw implements MarketDataService
-
Field Summary
Fields inherited from class org.knowm.xchange.bybit.service.BybitBaseService
apiKey, bybit, bybitAuthenticated, nonceFactory, signatureCreator
-
Constructor Summary
Constructors Constructor Description BybitMarketDataService(BybitExchange exchange)
-
Method Summary
Modifier and Type Method Description Ticker
getTicker(CurrencyPair currencyPair, Object... args)
Get a ticker representing the current exchange rateTicker
getTicker(Instrument instrument, Object... args)
Get a ticker representing the current exchange rateMethods inherited from class org.knowm.xchange.bybit.service.BybitMarketDataServiceRaw
getSymbols, getTicker24h
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.knowm.xchange.service.marketdata.MarketDataService
getCandleStickData, getFundingRate, getFundingRates, getOrderBook, getOrderBook, getOrderBook, getTickers, getTrades, getTrades, getTrades
-
Constructor Details
-
BybitMarketDataService
-
-
Method Details
-
getTicker
Description copied from interface:MarketDataService
Get a ticker representing the current exchange rate- Specified by:
getTicker
in interfaceMarketDataService
- Returns:
- The Ticker, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-
getTicker
Description copied from interface:MarketDataService
Get a ticker representing the current exchange rate- Specified by:
getTicker
in interfaceMarketDataService
- Returns:
- The Ticker, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-