Interface SubscriptionStrategy<T>
- All Known Subinterfaces:
FundingRateStrategy, KlineStrategy, TickerStrategy
- All Known Implementing Classes:
AbstractFundingRateStrategy, AbstractKlineStrategy, AbstractSubscriptionStrategy, AbstractTickerStrategy
Defines a subscription to a stream of updates of type T
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanacceptInstrument(@NonNull Instrument instrument) voidsubscribeSource(@NonNull io.reactivex.rxjava3.core.Observable<T> source) voiddefault voidupdateFrom(@NonNull List<T> updates) Methods inherited from interface Strategy
applyProperty, configure, getExecutionCallback, getExecutionConfig, getExecutionMode, getId, getInputCurrency, getInstruments, getNotices, getOutputCurrency, getProperty, getProperty, getPropertyInfo, getPropertyInfos, getSignals, getStateStore, getStats, getYields, hasProperty, hasProperty, init, isCurrencyLess, isEnabled, reset, setEnabled, setProperty, setProperty
-
Method Details
-
subscribeSource
-
accept
-
acceptInstrument
-
update
-
updateFrom
-
getMarketDataSource
MarketDataSource getMarketDataSource()
-