Package org.knowm.xchange.okex.service
Class OkexMarketDataServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<E>
org.knowm.xchange.service.BaseResilientExchangeService<OkexExchange>
org.knowm.xchange.okex.service.OkexBaseService
org.knowm.xchange.okex.service.OkexMarketDataServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
OkexMarketDataService
public class OkexMarketDataServiceRaw extends OkexBaseService
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
-
Field Summary
Fields inherited from class org.knowm.xchange.okex.service.OkexBaseService
apiKey, okex, okexAuthenticated, passphrase, signatureCreator
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 OkexMarketDataServiceRaw(OkexExchange exchange, ResilienceRegistries resilienceRegistries)
-
Method Summary
Modifier and Type Method Description OkexResponse<List<OkexCandleStick>>
getHistoryCandle(String instrument, String after, String before, String bar, String limit)
OkexResponse<List<OkexCurrency>>
getOkexCurrencies()
OkexResponse<List<OkexFundingRate>>
getOkexFundingRate(String instrumentId)
OkexResponse<List<OkexInstrument>>
getOkexInstruments(String instrumentType, String underlying, String instrumentId)
OkexResponse<List<OkexOrderbook>>
getOkexOrderbook(String instrument)
OkexResponse<List<OkexTicker>>
getOkexTicker(String instrumentId)
OkexResponse<List<OkexTrade>>
getOkexTrades(String instrument, int limit)
Methods inherited from class org.knowm.xchange.okex.service.OkexBaseService
handleError
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
-
OkexMarketDataServiceRaw
-
-
Method Details
-
getOkexInstruments
public OkexResponse<List<OkexInstrument>> getOkexInstruments(String instrumentType, String underlying, String instrumentId) throws OkexException, IOException- Throws:
OkexException
IOException
-
getOkexTicker
public OkexResponse<List<OkexTicker>> getOkexTicker(String instrumentId) throws OkexException, IOException- Throws:
OkexException
IOException
-
getOkexFundingRate
public OkexResponse<List<OkexFundingRate>> getOkexFundingRate(String instrumentId) throws OkexException, IOException- Throws:
OkexException
IOException
-
getOkexCurrencies
- Throws:
OkexException
IOException
-
getOkexTrades
public OkexResponse<List<OkexTrade>> getOkexTrades(String instrument, int limit) throws OkexException, IOException- Throws:
OkexException
IOException
-
getOkexOrderbook
public OkexResponse<List<OkexOrderbook>> getOkexOrderbook(String instrument) throws OkexException, IOException- Throws:
OkexException
IOException
-
getHistoryCandle
public OkexResponse<List<OkexCandleStick>> getHistoryCandle(String instrument, String after, String before, String bar, String limit) throws OkexException, IOException- Throws:
OkexException
IOException
-