Lean  $LEAN_TAG$
QuantConnect.Orders.SubmitOrderRequest Class Reference

Defines a request to submit a new order More...

Inheritance diagram for QuantConnect.Orders.SubmitOrderRequest:
[legend]

Public Member Functions

 SubmitOrderRequest (OrderType orderType, SecurityType securityType, Symbol symbol, decimal quantity, decimal stopPrice, decimal limitPrice, decimal triggerPrice, decimal trailingAmount, bool trailingAsPercentage, DateTime time, string tag, IOrderProperties properties=null, GroupOrderManager groupOrderManager=null)
 Initializes a new instance of the SubmitOrderRequest class. The OrderRequest.OrderId will default to OrderResponseErrorCode.UnableToFindOrder More...
 
 SubmitOrderRequest (OrderType orderType, SecurityType securityType, Symbol symbol, decimal quantity, decimal stopPrice, decimal limitPrice, decimal triggerPrice, DateTime time, string tag, IOrderProperties properties=null, GroupOrderManager groupOrderManager=null)
 Initializes a new instance of the SubmitOrderRequest class. The OrderRequest.OrderId will default to OrderResponseErrorCode.UnableToFindOrder More...
 
 SubmitOrderRequest (OrderType orderType, SecurityType securityType, Symbol symbol, decimal quantity, decimal stopPrice, decimal limitPrice, DateTime time, string tag, IOrderProperties properties=null, GroupOrderManager groupOrderManager=null)
 Initializes a new instance of the SubmitOrderRequest class. The OrderRequest.OrderId will default to OrderResponseErrorCode.UnableToFindOrder More...
 
override string ToString ()
 Returns a string that represents the current object. More...
 
- Public Member Functions inherited from QuantConnect.Orders.OrderRequest
void SetResponse (OrderResponse response, OrderRequestStatus status=OrderRequestStatus.Error)
 Sets the Response for this request More...
 
override string ToString ()
 Returns a string that represents the current object. More...
 

Properties

override OrderRequestType OrderRequestType [get]
 Gets Orders.OrderRequestType.Submit More...
 
SecurityType SecurityType [get]
 Gets the security type of the symbol More...
 
Symbol Symbol [get]
 Gets the symbol to be traded More...
 
OrderType OrderType [get]
 Gets the order type od the order More...
 
decimal Quantity [get]
 Gets the quantity of the order More...
 
decimal LimitPrice [get]
 Gets the limit price of the order, zero if not a limit order More...
 
decimal StopPrice [get]
 Gets the stop price of the order, zero if not a stop order More...
 
decimal TriggerPrice [get]
 Price which must first be reached before a limit order can be submitted. More...
 
decimal TrailingAmount [get]
 Trailing amount for a trailing stop order More...
 
bool TrailingAsPercentage [get]
 Determines whether the TrailingAmount is a percentage or an absolute currency value More...
 
IOrderProperties OrderProperties [get]
 Gets the order properties for this request More...
 
GroupOrderManager GroupOrderManager [get]
 Gets the manager for the combo order. If null, the order is not a combo order. More...
 
- Properties inherited from QuantConnect.Orders.OrderRequest
abstract OrderRequestType OrderRequestType [get]
 Gets the type of this order request More...
 
OrderRequestStatus Status [get]
 Gets the status of this request More...
 
DateTime Time [get]
 Gets the UTC time the request was created More...
 
int OrderId [get, protected set]
 Gets the order id the request acts on More...
 
string Tag [get]
 Gets a tag for this request More...
 
OrderResponse Response [get]
 Gets the response for this request. If this request was never processed then this will equal OrderResponse.Unprocessed. This value is never equal to null. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QuantConnect.Orders.OrderRequest
 OrderRequest (DateTime time, int orderId, string tag)
 Initializes a new instance of the OrderRequest class More...
 

Detailed Description

Defines a request to submit a new order

Definition at line 24 of file SubmitOrderRequest.cs.

Constructor & Destructor Documentation

◆ SubmitOrderRequest() [1/3]

QuantConnect.Orders.SubmitOrderRequest.SubmitOrderRequest ( OrderType  orderType,
SecurityType  securityType,
Symbol  symbol,
decimal  quantity,
decimal  stopPrice,
decimal  limitPrice,
decimal  triggerPrice,
decimal  trailingAmount,
bool  trailingAsPercentage,
DateTime  time,
string  tag,
IOrderProperties  properties = null,
GroupOrderManager  groupOrderManager = null 
)

Initializes a new instance of the SubmitOrderRequest class. The OrderRequest.OrderId will default to OrderResponseErrorCode.UnableToFindOrder

Parameters
orderTypeThe order type to be submitted
securityTypeThe symbol's SecurityType
symbolThe symbol to be traded
quantityThe number of units to be ordered
stopPriceThe stop price for stop orders, non-stop orders this value is ignored
limitPriceThe limit price for limit orders, non-limit orders this value is ignored
triggerPriceThe trigger price for limit if touched orders, for non-limit if touched orders this value is ignored
trailingAmountThe trailing amount to be used to update the stop price
trailingAsPercentageWhether the trailingAmount is a percentage or an absolute currency value
timeThe time this request was created
tagA custom tag for this request
propertiesThe order properties for this request
groupOrderManagerThe manager for this combo order

Definition at line 139 of file SubmitOrderRequest.cs.

◆ SubmitOrderRequest() [2/3]

QuantConnect.Orders.SubmitOrderRequest.SubmitOrderRequest ( OrderType  orderType,
SecurityType  securityType,
Symbol  symbol,
decimal  quantity,
decimal  stopPrice,
decimal  limitPrice,
decimal  triggerPrice,
DateTime  time,
string  tag,
IOrderProperties  properties = null,
GroupOrderManager  groupOrderManager = null 
)

Initializes a new instance of the SubmitOrderRequest class. The OrderRequest.OrderId will default to OrderResponseErrorCode.UnableToFindOrder

Parameters
orderTypeThe order type to be submitted
securityTypeThe symbol's SecurityType
symbolThe symbol to be traded
quantityThe number of units to be ordered
stopPriceThe stop price for stop orders, non-stop orders this value is ignored
limitPriceThe limit price for limit orders, non-limit orders this value is ignored
triggerPriceThe trigger price for limit if touched orders, for non-limit if touched orders this value is ignored
timeThe time this request was created
tagA custom tag for this request
propertiesThe order properties for this request
groupOrderManagerThe manager for this combo order

Definition at line 184 of file SubmitOrderRequest.cs.

◆ SubmitOrderRequest() [3/3]

QuantConnect.Orders.SubmitOrderRequest.SubmitOrderRequest ( OrderType  orderType,
SecurityType  securityType,
Symbol  symbol,
decimal  quantity,
decimal  stopPrice,
decimal  limitPrice,
DateTime  time,
string  tag,
IOrderProperties  properties = null,
GroupOrderManager  groupOrderManager = null 
)

Initializes a new instance of the SubmitOrderRequest class. The OrderRequest.OrderId will default to OrderResponseErrorCode.UnableToFindOrder

Parameters
orderTypeThe order type to be submitted
securityTypeThe symbol's SecurityType
symbolThe symbol to be traded
quantityThe number of units to be ordered
stopPriceThe stop price for stop orders, non-stop orders this value is ignored
limitPriceThe limit price for limit orders, non-limit orders this value is ignored
timeThe time this request was created
tagA custom tag for this request
propertiesThe order properties for this request
groupOrderManagerThe manager for this combo order

Definition at line 216 of file SubmitOrderRequest.cs.

Member Function Documentation

◆ ToString()

override string QuantConnect.Orders.SubmitOrderRequest.ToString ( )

Returns a string that represents the current object.

Returns
A string that represents the current object.

<filterpriority>2</filterpriority>

Definition at line 248 of file SubmitOrderRequest.cs.

Here is the caller graph for this function:

Property Documentation

◆ OrderRequestType

override OrderRequestType QuantConnect.Orders.SubmitOrderRequest.OrderRequestType
get

Gets Orders.OrderRequestType.Submit

Definition at line 30 of file SubmitOrderRequest.cs.

◆ SecurityType

SecurityType QuantConnect.Orders.SubmitOrderRequest.SecurityType
get

Gets the security type of the symbol

Definition at line 38 of file SubmitOrderRequest.cs.

◆ Symbol

Symbol QuantConnect.Orders.SubmitOrderRequest.Symbol
get

Gets the symbol to be traded

Definition at line 46 of file SubmitOrderRequest.cs.

◆ OrderType

OrderType QuantConnect.Orders.SubmitOrderRequest.OrderType
get

Gets the order type od the order

Definition at line 54 of file SubmitOrderRequest.cs.

◆ Quantity

decimal QuantConnect.Orders.SubmitOrderRequest.Quantity
get

Gets the quantity of the order

Definition at line 62 of file SubmitOrderRequest.cs.

◆ LimitPrice

decimal QuantConnect.Orders.SubmitOrderRequest.LimitPrice
get

Gets the limit price of the order, zero if not a limit order

Definition at line 70 of file SubmitOrderRequest.cs.

◆ StopPrice

decimal QuantConnect.Orders.SubmitOrderRequest.StopPrice
get

Gets the stop price of the order, zero if not a stop order

Definition at line 78 of file SubmitOrderRequest.cs.

◆ TriggerPrice

decimal QuantConnect.Orders.SubmitOrderRequest.TriggerPrice
get

Price which must first be reached before a limit order can be submitted.

Definition at line 86 of file SubmitOrderRequest.cs.

◆ TrailingAmount

decimal QuantConnect.Orders.SubmitOrderRequest.TrailingAmount
get

Trailing amount for a trailing stop order

Definition at line 94 of file SubmitOrderRequest.cs.

◆ TrailingAsPercentage

bool QuantConnect.Orders.SubmitOrderRequest.TrailingAsPercentage
get

Determines whether the TrailingAmount is a percentage or an absolute currency value

Definition at line 102 of file SubmitOrderRequest.cs.

◆ OrderProperties

IOrderProperties QuantConnect.Orders.SubmitOrderRequest.OrderProperties
get

Gets the order properties for this request

Definition at line 110 of file SubmitOrderRequest.cs.

◆ GroupOrderManager

GroupOrderManager QuantConnect.Orders.SubmitOrderRequest.GroupOrderManager
get

Gets the manager for the combo order. If null, the order is not a combo order.

Definition at line 118 of file SubmitOrderRequest.cs.


The documentation for this class was generated from the following file: