Table of Contents

Class QuotingProcessor

Namespace
StockSharp.Algo.Strategies.Quoting
Assembly
StockSharp.Algo.dll

A passive quoting processor that analyzes market data and order state to recommend actions.

public class QuotingProcessor : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
QuotingProcessor
Implements
Inherited Members
Extension Methods

Constructors

QuotingProcessor(IQuotingBehavior, Security, Portfolio, Sides, decimal, decimal, TimeSpan, ISubscriptionProvider, IMarketRuleContainer, ITransactionProvider, ITimeProvider, IMarketDataProvider, Func<StrategyTradingModes, bool>, bool, bool)

Initializes a new instance of the QuotingProcessor class.

public QuotingProcessor(IQuotingBehavior behavior, Security security, Portfolio portfolio, Sides quotingSide, decimal quotingVolume, decimal maxOrderVolume, TimeSpan timeOut, ISubscriptionProvider subProvider, IMarketRuleContainer container, ITransactionProvider transProvider, ITimeProvider timeProvider, IMarketDataProvider mdProvider, Func<StrategyTradingModes, bool> isAllowed, bool useBidAsk, bool useTicks)

Parameters

behavior IQuotingBehavior

The behavior defining the quoting logic.

security Security

Security

portfolio Portfolio

Portfolio

quotingSide Sides

The direction of quoting (Buy or Sell).

quotingVolume decimal

The total volume to be quoted.

maxOrderVolume decimal

Maximum volume of a single order. If the total volume of quotingVolume is greater than this value, the processor will split the quoting into multiple orders.

timeOut TimeSpan

The time limit during which the quoting should be fulfilled. If the total volume of quotingVolume will not be fulfilled by this time, the strategy will stop operating.

subProvider ISubscriptionProvider

ISubscriptionProvider

container IMarketRuleContainer

IMarketRuleContainer

transProvider ITransactionProvider

ITransactionProvider

timeProvider ITimeProvider

ITimeProvider

mdProvider IMarketDataProvider

IMarketDataProvider

isAllowed Func<StrategyTradingModes, bool>

Is the strategy allowed to trade.

useBidAsk bool

To use the best bid and ask prices from the order book. If the information in the order book is missed, the processor will not recommend any actions.

useTicks bool

To use the last trade price, if the information in the order book is missed.

Properties

LeftVolume

Left volume.

public decimal LeftVolume { get; }

Property Value

decimal

Methods

DisposeManaged()

Disposes the managed resources. Override this method to add custom clean up of managed resources.

protected override void DisposeManaged()

Start()

Start the processor.

public void Start()

Stop()

Stop the processor.

public void Stop()

Events

Finished

Occurs when the processor is finished. The argument indicates whether the quoting was successful or by timeout.

public event Action<bool> Finished

Event Type

Action<bool>

OrderFailed

Occurs when an order fails to be registered.

public event Action<OrderFail> OrderFailed

Event Type

Action<OrderFail>

OrderRegistered

Occurs when an order is registered.

public event Action<Order> OrderRegistered

Event Type

Action<Order>

OwnTrade

Occurs when an own trade is received.

public event Action<MyTrade> OwnTrade

Event Type

Action<MyTrade>