Class QuotingEngine
- Namespace
- StockSharp.Algo.Strategies.Quoting
- Assembly
- StockSharp.Algo.dll
Pure functional engine that receives input data and returns action recommendations.
public class QuotingEngine- Inheritance
- 
      
      QuotingEngine
- Inherited Members
- Extension Methods
Constructors
QuotingEngine(IQuotingBehavior, Security, Portfolio, Sides, decimal, decimal, TimeSpan, IMarketDataProvider, DateTimeOffset)
Initializes a new instance of the QuotingEngine class.
public QuotingEngine(IQuotingBehavior behavior, Security security, Portfolio portfolio, Sides quotingSide, decimal quotingVolume, decimal maxOrderVolume, TimeSpan timeOut, IMarketDataProvider mdProvider, DateTimeOffset startTime)Parameters
- behaviorIQuotingBehavior
- The behavior defining the quoting logic. 
- securitySecurity
- Security to quote. 
- portfolioPortfolio
- Portfolio for orders. 
- quotingSideSides
- The direction of quoting (Buy or Sell). 
- quotingVolumedecimal
- The total volume to be quoted. 
- maxOrderVolumedecimal
- Maximum volume of a single order. 
- timeOutTimeSpan
- The time limit for quoting completion. 
- mdProviderIMarketDataProvider
- Market data provider. 
- startTimeDateTimeOffset
- Start time for timeout calculation. 
Methods
GetLeftVolume(decimal)
Calculate remaining volume to quote.
public decimal GetLeftVolume(decimal position)Parameters
- positiondecimal
Returns
IsTimeOut(DateTimeOffset)
Check if timeout has occurred.
public bool IsTimeOut(DateTimeOffset currentTime)Parameters
- currentTimeDateTimeOffset
Returns
ProcessCancellationResult(bool, QuotingInput)
Process the result of an order cancellation.
public QuotingAction ProcessCancellationResult(bool isSuccess, QuotingInput input)Parameters
- isSuccessbool
- Whether cancellation was successful. 
- inputQuotingInput
- Current input state. 
Returns
- QuotingAction
- Next recommended action. 
ProcessOrderResult(bool, QuotingInput)
Process the result of an order registration.
public QuotingAction ProcessOrderResult(bool isSuccess, QuotingInput input)Parameters
- isSuccessbool
- Whether registration was successful. 
- inputQuotingInput
- Current input state. 
Returns
- QuotingAction
- Next recommended action. 
ProcessQuoting(QuotingInput)
Process input data and return recommended action.
public QuotingAction ProcessQuoting(QuotingInput input)Parameters
- inputQuotingInput
- Input market data and state. 
Returns
- QuotingAction
- Recommended action. 
ProcessTrade(decimal, QuotingInput)
Process a trade execution.
public QuotingAction ProcessTrade(decimal tradeVolume, QuotingInput input)Parameters
- tradeVolumedecimal
- Volume of the executed trade. 
- inputQuotingInput
- Current input state. 
Returns
- QuotingAction
- Next recommended action.