Uses of Interface
com.wualabs.qtsurfer.engine.core.instrument.Instrument
Packages that use Instrument
Package
Description
State management and sliding-window data structures.
Core interfaces and abstract base classes for the RTIndicator framework.
Multi-indicator containers and builders for managing groups of indicators per instrument.
-
Uses of Instrument in com.wualabs.qtsurfer.engine.core
Methods in com.wualabs.qtsurfer.engine.core that return InstrumentModifier and TypeMethodDescriptionKline.getInstrument()FundingRate.instrument()Returns the value of theinstrumentrecord component.KlineSnapshot.instrument()Returns the value of theinstrumentrecord component.MarketSnapshot.instrument()Ticker.instrument()Returns the value of theinstrumentrecord component.TickerSnapshot.instrument()Returns the value of theinstrumentrecord component.Trade.instrument()Returns the value of theinstrumentrecord component.Methods in com.wualabs.qtsurfer.engine.core with parameters of type InstrumentConstructors in com.wualabs.qtsurfer.engine.core with parameters of type InstrumentModifierConstructorDescriptionFundingRate(Instrument instrument, BigDecimal rate1h, BigDecimal rate8h, long effectiveMinutes, long timestamp) Creates an instance of aFundingRaterecord class.KlineSnapshot(Instrument instrument, KlineInterval interval, long openTime, double open, double high, double low, double close, double volume, double quoteVolume, long closeTime, long numberOfTrades, boolean closed) Creates an instance of aKlineSnapshotrecord class.Ticker(Instrument instrument, BigDecimal bid, BigDecimal bidSize, BigDecimal ask, BigDecimal askSize, BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal last, BigDecimal vwap, BigDecimal volume, BigDecimal quoteVolume, BigDecimal percentageChange, long timestamp) Creates an instance of aTickerrecord class.TickerSnapshot(Instrument instrument, double bid, double bidSize, double ask, double askSize, double open, double high, double low, double close, double vwap, double volume, double quoteVolume, double percentageChange, long timestamp) Creates an instance of aTickerSnapshotrecord class.Trade(String id, Instrument instrument, OrderSide side, BigDecimal amount, BigDecimal price, Asset feeCurrency, BigDecimal fee, long timestamp) Creates an instance of aTraderecord class. -
Uses of Instrument in com.wualabs.qtsurfer.engine.core.instrument
Classes in com.wualabs.qtsurfer.engine.core.instrument that implement InstrumentModifier and TypeClassDescriptionfinal recordA delivery contract that expires on a fixed date:BTC/USDT:USDT-240628.final recordA perpetual contract — a derivative with no expiry:BTC/USDT:USDTwhen margined in the quote currency,BTC/USD:BTCwhen margined in the base.final recordA spot pair, settled in nothing:BTC/USDT.Methods in com.wualabs.qtsurfer.engine.core.instrument that return InstrumentModifier and TypeMethodDescriptionstatic InstrumentParses a CCXT symbol back into the variant it denotes. -
Uses of Instrument in com.wualabs.qtsurfer.engine.core.state
Methods in com.wualabs.qtsurfer.engine.core.state with parameters of type InstrumentModifier and TypeMethodDescriptionStateStoreProvider.getStateStore(Instrument instrument) Returns the state store for the given instrument. -
Uses of Instrument in com.wualabs.qtsurfer.engine.indicators.core
Methods in com.wualabs.qtsurfer.engine.indicators.core that return InstrumentModifier and TypeMethodDescription@NonNull InstrumentIndicatorNotice.instrument()Returns the value of theinstrumentrecord component.Methods in com.wualabs.qtsurfer.engine.indicators.core with parameters of type InstrumentModifier and TypeMethodDescriptionstatic IndicatorNoticeIndicatorNotice.barDataOnTickerPath(@NonNull String indicatorName, @NonNull Instrument instrument) Builds theIndicatorNotice.BAR_DATA_ON_TICKER_PATHnotice.Constructors in com.wualabs.qtsurfer.engine.indicators.core with parameters of type InstrumentModifierConstructorDescriptionIndicatorNotice(@NonNull Notice.Level level, @NonNull String code, @NonNull String indicatorName, @NonNull Instrument instrument, @NonNull String message) Creates an instance of aIndicatorNoticerecord class. -
Uses of Instrument in com.wualabs.qtsurfer.engine.indicators.helpers.group
Methods in com.wualabs.qtsurfer.engine.indicators.helpers.group that return InstrumentModifier and TypeMethodDescriptionInstrumentGroupRTIndicator.getInstrument()InstrumentMapRTIndicator.getInstrument()Constructors in com.wualabs.qtsurfer.engine.indicators.helpers.group with parameters of type InstrumentModifierConstructorDescriptionInstrumentGroupRTIndicator(Instrument instrument) InstrumentMapFundingRateSourceRTIndicator(@NonNull Instrument instrument, @NonNull FundingRateValueSource valueSource) InstrumentMapFundingRateSourceRTIndicator(Instrument instrument) InstrumentMapKlineSourceRTIndicator(@NonNull Instrument instrument, @NonNull KlineValueSource valueSource) InstrumentMapKlineSourceRTIndicator(Instrument instrument) InstrumentMapRTIndicator(@NonNull Instrument instrument) InstrumentMapTickerSourceRTIndicator(@NonNull Instrument instrument, @NonNull TickerValueSource valueSource) InstrumentMapTickerSourceRTIndicator(Instrument instrument) -
Uses of Instrument in com.wualabs.qtsurfer.engine.strategy
Fields in com.wualabs.qtsurfer.engine.strategy declared as InstrumentMethods in com.wualabs.qtsurfer.engine.strategy that return types with arguments of type InstrumentMethods in com.wualabs.qtsurfer.engine.strategy with parameters of type InstrumentModifier and TypeMethodDescriptionbooleanAbstractFundingRateStrategy.acceptInstrument(Instrument instrument) booleanAbstractKlineStrategy.acceptInstrument(@NonNull Instrument instrument) booleanAbstractTickerStrategy.acceptInstrument(@NonNull Instrument instrument) default booleanKlineStrategy.acceptInstrument(@NonNull Instrument instrument) booleanSubscriptionStrategy.acceptInstrument(@NonNull Instrument instrument) protected BuySignalAbstractSubscriptionStrategy.createBuySignal(Instrument instrument, Number price) AbstractSubscriptionStrategy.createInfoStrategySignal(Instrument instrument) protected InstrumentGroupRTIndicatorAbstractFundingRateStrategy.createInstrumentGroupRTIndicator(Instrument instrument) protected InstrumentGroupRTIndicatorAbstractKlineStrategy.createInstrumentGroupRTIndicator(Instrument instrument) protected abstract InstrumentGroupRTIndicatorAbstractSubscriptionStrategy.createInstrumentGroupRTIndicator(Instrument instrument) protected InstrumentGroupRTIndicatorAbstractTickerStrategy.createInstrumentGroupRTIndicator(Instrument instrument) protected SellSignalAbstractSubscriptionStrategy.createSellSignal(Instrument instrument, Number price) protected voidAbstractSubscriptionStrategy.emitBuy(Instrument instrument, Number price) protected voidAbstractSubscriptionStrategy.emitInfo(Instrument instrument) protected voidAbstractSubscriptionStrategy.emitSell(Instrument instrument, Number price) AbstractStrategy.getExecutionMode(Instrument instrument) default ExecutionModeStrategy.getExecutionMode(Instrument instrument) protected InstrumentGroupRTIndicatorAbstractSubscriptionStrategy.getInstrumentIndicatorGroup(Instrument instrument) protected Optional<RTIndicator> AbstractSubscriptionStrategy.getRTIndicator(Instrument instrument, String key) AbstractSubscriptionStrategy.getStateStore(@NonNull Instrument instrument) default Optional<StateStore> Strategy.getStateStore(@NonNull Instrument instrument) voidAbstractStrategy.reset(@NonNull Instrument instrument) voidAbstractSubscriptionStrategy.reset(@NonNull Instrument instrument) voidStrategy.reset(@NonNull Instrument instrument) protected InstrumentGroupRTIndicatorAbstractSubscriptionStrategy.setupInstrumentGroupRTIndicator(Instrument instrument) Creates and configures the RT indicator group for an instrument, including backtest mode propagation and subclass-specific indicator setup.protected InstrumentMapRTIndicatorAbstractSubscriptionStrategy.updateIndicators(Instrument instrument, T source) Updates the RT indicator group for an instrument from the market data source, triggering recalculation of all indicators in the group.protected voidAbstractSubscriptionStrategy.updateInstrument(@NonNull Instrument instrument, long timestamp) Tracks an instrument update: registers the instrument, records the timestamp for backtesting, and increments the stats counter. -
Uses of Instrument in com.wualabs.qtsurfer.engine.strategy.backtest.simulation
Methods in com.wualabs.qtsurfer.engine.strategy.backtest.simulation that return InstrumentModifier and TypeMethodDescriptionFeeContext.instrument()Returns the value of theinstrumentrecord component.Constructors in com.wualabs.qtsurfer.engine.strategy.backtest.simulation with parameters of type InstrumentModifierConstructorDescriptionFeeContext(OrderSide side, Liquidity liquidity, BigDecimal price, BigDecimal baseAmount, Instrument instrument) Creates an instance of aFeeContextrecord class. -
Uses of Instrument in com.wualabs.qtsurfer.engine.strategy.event.signal
Methods in com.wualabs.qtsurfer.engine.strategy.event.signal that return InstrumentModifier and TypeMethodDescriptionAbstractStrategySignal.getInstrument()StrategySignal.getInstrument()Gets the instrument involved in this signalConstructors in com.wualabs.qtsurfer.engine.strategy.event.signal with parameters of type InstrumentModifierConstructorDescriptionAbstractStrategySignal(@NonNull Strategy strategy, @NonNull StrategyEventType eventType, @NonNull Instrument instrument) BuySignal(Strategy strategy, Instrument instrument, Number price) EventTypeValueSignal(@NonNull Strategy strategy, @NonNull Instrument instrument, @NonNull StrategyEventType eventType, @NonNull String eventTypeValue) InfoStrategySignal(@NonNull Strategy strategy, @NonNull Instrument instrument) InfoStrategySignal(@NonNull Strategy strategy, @NonNull StrategyEventType eventType, @NonNull Instrument instrument) MarkerSignal(@NonNull Strategy strategy, @NonNull Instrument instrument) protectedMarketHintSignal(@NonNull Strategy strategy, @NonNull MarketHintSignal.Kind hintKind, @NonNull Instrument instrument, @NonNull Number price) SellSignal(@NonNull Strategy strategy, @NonNull Instrument instrument, @NonNull Number price) -
Uses of Instrument in com.wualabs.qtsurfer.engine.strategy.event.yield
Methods in com.wualabs.qtsurfer.engine.strategy.event.yield that return InstrumentModifier and TypeMethodDescriptionStrategyYield.getInstrument()Gets the instrument involved in this yield -
Uses of Instrument in com.wualabs.qtsurfer.engine.strategy.execution
Methods in com.wualabs.qtsurfer.engine.strategy.execution that return InstrumentModifier and TypeMethodDescriptionExecutionResult.getInstrument()PositionSnapshot.getInstrument()Methods in com.wualabs.qtsurfer.engine.strategy.execution with parameters of type InstrumentModifier and TypeMethodDescriptionvoidAbstractExecutionCallback.clear(Instrument instrument) AbstractExecutionCallback.getCompleteAmount(Instrument instrument) AbstractExecutionCallback.getFailedBuy(Instrument instrument) AbstractExecutionCallback.getFailedSell(Instrument instrument) AbstractExecutionCallback.getFilledBuy(Instrument instrument) AbstractExecutionCallback.getFilledSell(Instrument instrument) AbstractExecutionCallback.getPartialBuys(Instrument instrument) AbstractExecutionCallback.getPartialSells(Instrument instrument) protected Optional<StateStore> AbstractExecutionCallback.getStateStore(Instrument instrument) voidAbstractExecutionCallback.onStopLossCancelled(Instrument instrument) default voidExecutionCallback.onStopLossCancelled(Instrument instrument) Called when an active stop-loss order has been cancelled (e.g., before a manual sell).voidAbstractExecutionCallback.onStopLossPlaced(Instrument instrument, String orderId, BigDecimal stopPrice) default voidExecutionCallback.onStopLossPlaced(Instrument instrument, String orderId, BigDecimal stopPrice) Called when a stop-loss order has been successfully placed on the exchange.voidAbstractExecutionCallback.onStopLossTriggered(Instrument instrument, ExecutionResult exitResult) default voidExecutionCallback.onStopLossTriggered(Instrument instrument, ExecutionResult exitResult) Called when a stop-loss order has been triggered (filled) by the exchange.Constructors in com.wualabs.qtsurfer.engine.strategy.execution with parameters of type InstrumentModifierConstructorDescriptionPositionSnapshot(@NonNull Instrument instrument, @NonNull BigDecimal totalBaseAmount, @NonNull BigDecimal totalCounterAmount, @NonNull BigDecimal totalFeeAmount, int entryCount, @NonNull List<ExecutionResult> enterResults)