Lean
$LEAN_TAG$
|
Order Event - Messaging class signifying a change in an order state and record the change in the user's algorithm portfolio More...
Public Member Functions | |
OrderEvent () | |
Order Event empty constructor required for json converter More... | |
OrderEvent (int orderId, Symbol symbol, DateTime utcTime, OrderStatus status, OrderDirection direction, decimal fillPrice, decimal fillQuantity, OrderFee orderFee, string message="") | |
Order Event Constructor. More... | |
OrderEvent (Order order, DateTime utcTime, OrderFee orderFee, string message="") | |
Helper Constructor using Order to Initialize. More... | |
override string | ToString () |
Returns a string that represents the current object. More... | |
string | ShortToString () |
Returns a short string that represents the current object. More... | |
OrderEvent | Clone () |
Returns a clone of the current object. More... | |
Static Public Member Functions | |
static OrderEvent | FromSerialized (SerializedOrderEvent serializedOrderEvent) |
Creates a new instance based on the provided serialized order event More... | |
Public Attributes | |
decimal | AbsoluteFillQuantity => Math.Abs(FillQuantity) |
Public Property Absolute Getter of Quantity -Filled More... | |
Properties | |
int | OrderId [get, set] |
Id of the order this event comes from. More... | |
int | Id [get, set] |
The unique order event id for each order More... | |
Symbol | Symbol [get, set] |
Easy access to the order symbol associated with this event. More... | |
DateTime | UtcTime [get, set] |
The date and time of this event (UTC). More... | |
OrderStatus | Status [get, set] |
Status message of the order. More... | |
OrderFee | OrderFee [get, set] |
The fee associated with the order More... | |
decimal | FillPrice [get, set] |
Fill price information about the order More... | |
string | FillPriceCurrency [get, set] |
Currency for the fill price More... | |
decimal | FillQuantity [get, set] |
Number of shares of the order that was filled in this event. More... | |
OrderDirection | Direction [get, set] |
Order direction. More... | |
string | Message [get, set] |
Any message from the exchange. More... | |
bool | IsAssignment [get, set] |
True if the order event is an assignment More... | |
decimal? | StopPrice [get, set] |
The current stop price More... | |
decimal? | TriggerPrice [get, set] |
The current trigger price More... | |
decimal? | LimitPrice [get, set] |
The current limit price More... | |
decimal | Quantity [get, set] |
The current order quantity More... | |
bool | IsInTheMoney [get, set] |
True if the order event's option is In-The-Money (ITM) More... | |
decimal? | TrailingAmount [get, set] |
The trailing stop amount More... | |
bool? | TrailingAsPercentage [get, set] |
Whether the TrailingAmount is a percentage or an absolute currency value More... | |
OrderTicket | Ticket [get, set] |
The order ticket associated to the order More... | |
Order Event - Messaging class signifying a change in an order state and record the change in the user's algorithm portfolio
Definition at line 30 of file OrderEvent.cs.
QuantConnect.Orders.OrderEvent.OrderEvent | ( | ) |
Order Event empty constructor required for json converter
Definition at line 239 of file OrderEvent.cs.
QuantConnect.Orders.OrderEvent.OrderEvent | ( | int | orderId, |
Symbol | symbol, | ||
DateTime | utcTime, | ||
OrderStatus | status, | ||
OrderDirection | direction, | ||
decimal | fillPrice, | ||
decimal | fillQuantity, | ||
OrderFee | orderFee, | ||
string | message = "" |
||
) |
Order Event Constructor.
orderId | Id of the parent order |
symbol | Asset Symbol |
utcTime | Date/time of this event |
status | Status of the order |
direction | The direction of the order this event belongs to |
fillPrice | Fill price information if applicable. |
fillQuantity | Fill quantity |
orderFee | The order fee |
message | Message from the exchange |
Definition at line 255 of file OrderEvent.cs.
QuantConnect.Orders.OrderEvent.OrderEvent | ( | Order | order, |
DateTime | utcTime, | ||
OrderFee | orderFee, | ||
string | message = "" |
||
) |
Helper Constructor using Order to Initialize.
order | Order for this order status |
utcTime | Date/time of this event |
orderFee | The order fee |
message | Message from exchange or QC. |
Definition at line 286 of file OrderEvent.cs.
override string QuantConnect.Orders.OrderEvent.ToString | ( | ) |
Returns a string that represents the current object.
<filterpriority>2</filterpriority>
Definition at line 312 of file OrderEvent.cs.
string QuantConnect.Orders.OrderEvent.ShortToString | ( | ) |
Returns a short string that represents the current object.
Definition at line 320 of file OrderEvent.cs.
OrderEvent QuantConnect.Orders.OrderEvent.Clone | ( | ) |
Returns a clone of the current object.
Definition at line 329 of file OrderEvent.cs.
|
static |
Creates a new instance based on the provided serialized order event
Definition at line 337 of file OrderEvent.cs.
decimal QuantConnect.Orders.OrderEvent.AbsoluteFillQuantity => Math.Abs(FillQuantity) |
Public Property Absolute Getter of Quantity -Filled
Definition at line 107 of file OrderEvent.cs.
|
getset |
Id of the order this event comes from.
Definition at line 45 of file OrderEvent.cs.
|
getset |
The unique order event id for each order
Definition at line 51 of file OrderEvent.cs.
|
getset |
Easy access to the order symbol associated with this event.
Definition at line 57 of file OrderEvent.cs.
|
getset |
The date and time of this event (UTC).
Definition at line 63 of file OrderEvent.cs.
|
getset |
Status message of the order.
Definition at line 69 of file OrderEvent.cs.
|
getset |
The fee associated with the order
Definition at line 75 of file OrderEvent.cs.
|
getset |
Fill price information about the order
Definition at line 82 of file OrderEvent.cs.
|
getset |
Currency for the fill price
Definition at line 91 of file OrderEvent.cs.
|
getset |
Number of shares of the order that was filled in this event.
Definition at line 98 of file OrderEvent.cs.
|
getset |
Order direction.
Definition at line 113 of file OrderEvent.cs.
|
getset |
Any message from the exchange.
Definition at line 120 of file OrderEvent.cs.
|
getset |
True if the order event is an assignment
Definition at line 126 of file OrderEvent.cs.
|
getset |
The current stop price
Definition at line 134 of file OrderEvent.cs.
|
getset |
The current trigger price
Definition at line 151 of file OrderEvent.cs.
|
getset |
The current limit price
Definition at line 168 of file OrderEvent.cs.
|
getset |
The current order quantity
Definition at line 184 of file OrderEvent.cs.
|
getset |
True if the order event's option is In-The-Money (ITM)
Definition at line 194 of file OrderEvent.cs.
|
getset |
The trailing stop amount
Definition at line 202 of file OrderEvent.cs.
|
getset |
Whether the TrailingAmount is a percentage or an absolute currency value
Definition at line 219 of file OrderEvent.cs.
|
getset |
The order ticket associated to the order
Definition at line 234 of file OrderEvent.cs.