Class QuotingAction
- Namespace
- StockSharp.Algo.Strategies.Quoting
- Assembly
- StockSharp.Algo.dll
Recommended action output from the engine.
public class QuotingAction
- Inheritance
-
QuotingAction
- Inherited Members
- Extension Methods
Constructors
QuotingAction()
public QuotingAction()
Properties
ActionType
Type of action.
public QuotingActionType ActionType { get; set; }
Property Value
IsSuccess
Whether the quoting was successful (for Finish action).
public bool IsSuccess { get; set; }
Property Value
OrderType
Order type for new order.
public OrderTypes? OrderType { get; set; }
Property Value
Price
Recommended price for new order (null for market orders).
public decimal? Price { get; set; }
Property Value
Reason
Reason for the action (for logging).
public string Reason { get; set; }
Property Value
Volume
Recommended volume for new order.
public decimal? Volume { get; set; }
Property Value
Methods
Cancel(string)
Create "cancel order" result.
public static QuotingAction Cancel(string reason = null)
Parameters
reason
string
Returns
Finish(bool, string)
Create "finish quoting" result.
public static QuotingAction Finish(bool isSuccess, string reason = null)
Parameters
Returns
Modify(decimal?, decimal, OrderTypes, string)
Create "modify order" result.
public static QuotingAction Modify(decimal? price, decimal volume, OrderTypes orderType = OrderTypes.Limit, string reason = null)
Parameters
price
decimal?volume
decimalorderType
OrderTypesreason
string
Returns
None(string)
Create "no action" result.
public static QuotingAction None(string reason = null)
Parameters
reason
string
Returns
Register(decimal?, decimal, OrderTypes, string)
Create "register order" result.
public static QuotingAction Register(decimal? price, decimal volume, OrderTypes orderType = OrderTypes.Limit, string reason = null)
Parameters
price
decimal?volume
decimalorderType
OrderTypesreason
string