Class ContinuousSecurityBaseProcessor<TBasketSecurity>
- Namespace
- StockSharp.Algo
- Assembly
- StockSharp.Algo.dll
Base continuous securities processor.
public abstract class ContinuousSecurityBaseProcessor<TBasketSecurity> : BasketSecurityBaseProcessor<TBasketSecurity>, IBasketSecurityProcessor where TBasketSecurity : ContinuousSecurity, new()
Type Parameters
TBasketSecurity
Basket security type.
- Inheritance
-
BasketSecurityBaseProcessor<TBasketSecurity>ContinuousSecurityBaseProcessor<TBasketSecurity>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ContinuousSecurityBaseProcessor(Security)
Initializes a new instance of the ContinuousSecurityBaseProcessor<TBasketSecurity>.
protected ContinuousSecurityBaseProcessor(Security security)
Parameters
security
SecuritySecurity.
Methods
CanProcess(SecurityId, DateTimeOffset, decimal?, decimal?, decimal?)
Determines can process message.
protected abstract bool CanProcess(SecurityId securityId, DateTimeOffset serverTime, decimal? price, decimal? volume, decimal? openInterest)
Parameters
securityId
SecurityIdSecurity ID.
serverTime
DateTimeOffsetChange server time.
price
decimal?Price.
volume
decimal?Volume.
openInterest
decimal?Number of open positions (open interest).
Returns
Process(Message)
Process message.
public override IEnumerable<Message> Process(Message message)
Parameters
message
MessageInput message.
Returns
- IEnumerable<Message>
Output messages.