Class AbstractFundingRateStrategy
java.lang.Object
com.wualabs.qtsurfer.engine.core.AbstractNameable
com.wualabs.qtsurfer.engine.strategy.AbstractStrategy
com.wualabs.qtsurfer.engine.strategy.AbstractSubscriptionStrategy<FundingRate>
com.wualabs.qtsurfer.engine.strategy.AbstractFundingRateStrategy
- All Implemented Interfaces:
Nameable, Named, Unsubscribable, FundingRateStrategy, Strategy, SubscriptionStrategy<FundingRate>
public abstract class AbstractFundingRateStrategy
extends AbstractSubscriptionStrategy<FundingRate>
implements FundingRateStrategy
-
Field Summary
Fields inherited from class AbstractStrategy
CONFIG_INPUT_CURRENCY, CONFIG_OUTPUT_CURRENCY, inputCurrency, outputCurrency, stats -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptInstrument(Instrument instrument) protected InstrumentGroupRTIndicatorcreateInstrumentGroupRTIndicator(Instrument instrument) voidinit(@NonNull com.wualabs.qtsurfer.engine.exchange.ExchangeSupport exchangeSupport) protected io.reactivex.rxjava3.core.BackpressureStrategyFunding settlements are discrete facts that must not be conflated away — and the feed's low frequency makes buffering safe (unlike high-frequency tickers, which default to LATEST).voidupdate(@NonNull FundingRate fundingRate) Methods inherited from class AbstractSubscriptionStrategy
clearIndicators, createBuySignal, createInfoStrategySignal, createSellSignal, emitBuy, emitInfo, emitSell, emitSignal, emitYield, fillSignal, getInstrumentIndicatorGroup, getLastEventTimestamp, getMarketDataSourceName, getNotices, getRTIndicator, getStateStore, getStateStoreForResult, getUpdatedSignal, getUpdateErrorCount, isEnableIndicatorsSignals, isSourceFailed, overrideTimestamp, reset, setEnableIndicatorsSignals, setIndicatorBankSession, setLastEventTimestamp, setStateStoreProvider, setupIndicators, setupInstrumentGroupRTIndicator, subscribeSource, toString, unsubscribe, updateIndicators, updateInstrumentMethods inherited from class AbstractStrategy
acceptCurrency, applyProperty, clearNotice, configure, equals, getCurrencyFilter, getEngineVersion, getEngineVersionMajor, getEngineVersionMinor, getExchangeName, getExecutionCallback, getExecutionConfig, getExecutionMode, getId, getInputCurrency, getInstruments, getMinGain, getMinPercentGainMultiplier, getOutputCurrency, getPercentGain, getProperty, getPropertyInfo, getPropertyInfos, getSignals, getStats, getYields, hashCode, hasProperty, isEnabled, raiseNotice, registerPropertyInfo, registerPropertyInfo, registerPropertyInfo, registerPropertyInfo, setBlacklistedCurrencies, setCurrencyFilter, setEnabled, setExecutionCallback, setExecutionMode, setMinGain, setMultiEntryEnabled, setPercentGain, setProperty, setWhitelistedCurrencies, toStringMethods inherited from class AbstractNameable
getName, setNameMethods inherited from interface Strategy
applyProperty, configure, getExecutionCallback, getExecutionConfig, getExecutionMode, getId, getInputCurrency, getInstruments, getNotices, getOutputCurrency, getProperty, getProperty, getPropertyInfo, getPropertyInfos, getSignals, getStateStore, getStats, getYields, hasProperty, hasProperty, isCurrencyLess, isEnabled, reset, setEnabled, setProperty, setPropertyMethods inherited from interface SubscriptionStrategy
accept, subscribeSource, updateFrom
-
Constructor Details
-
AbstractFundingRateStrategy
public AbstractFundingRateStrategy()
-
-
Method Details
-
init
public void init(@NonNull @NonNull com.wualabs.qtsurfer.engine.exchange.ExchangeSupport exchangeSupport) - Specified by:
initin interfaceStrategy- Overrides:
initin classAbstractStrategy
-
acceptInstrument
- Specified by:
acceptInstrumentin interfaceSubscriptionStrategy<FundingRate>
-
update
- Specified by:
updatein interfaceSubscriptionStrategy<FundingRate>
-
createInstrumentGroupRTIndicator
- Specified by:
createInstrumentGroupRTIndicatorin classAbstractSubscriptionStrategy<FundingRate>
-
getMarketDataSource
- Specified by:
getMarketDataSourcein interfaceFundingRateStrategy- Specified by:
getMarketDataSourcein interfaceSubscriptionStrategy<FundingRate>
-
sourceBackpressure
protected io.reactivex.rxjava3.core.BackpressureStrategy sourceBackpressure()Funding settlements are discrete facts that must not be conflated away — and the feed's low frequency makes buffering safe (unlike high-frequency tickers, which default to LATEST).- Overrides:
sourceBackpressurein classAbstractSubscriptionStrategy<FundingRate>
-