Lean
$LEAN_TAG$
|
Represents a request to submit, update, or cancel an order More...
Public Member Functions | |
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... | |
Protected Member Functions | |
OrderRequest (DateTime time, int orderId, string tag) | |
Initializes a new instance of the OrderRequest class More... | |
Properties | |
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... | |
Represents a request to submit, update, or cancel an order
Definition at line 23 of file OrderRequest.cs.
|
protected |
Initializes a new instance of the OrderRequest class
time | The time this request was created |
orderId | The order id this request acts on, specify zero for SubmitOrderRequest |
tag | A custom tag for the request |
Definition at line 80 of file OrderRequest.cs.
void QuantConnect.Orders.OrderRequest.SetResponse | ( | OrderResponse | response, |
OrderRequestStatus | status = OrderRequestStatus.Error |
||
) |
Sets the Response for this request
response | The response to this request |
status | The current status of this request |
Definition at line 94 of file OrderRequest.cs.
override string QuantConnect.Orders.OrderRequest.ToString | ( | ) |
Returns a string that represents the current object.
<filterpriority>2</filterpriority>
Definition at line 113 of file OrderRequest.cs.
|
get |
Gets the type of this order request
Definition at line 29 of file OrderRequest.cs.
|
get |
Gets the status of this request
Definition at line 37 of file OrderRequest.cs.
|
get |
Gets the UTC time the request was created
Definition at line 45 of file OrderRequest.cs.
|
getprotected set |
Gets the order id the request acts on
Definition at line 53 of file OrderRequest.cs.
|
get |
Gets a tag for this request
Definition at line 61 of file OrderRequest.cs.
|
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.
Definition at line 70 of file OrderRequest.cs.