Class Order
Represents trading information about pending order
Namespace: TradingPlatform.BusinessLayer
Syntax
public class Order : TradingObject, IConnectionBindedObject, IUniqueID
Properties
ExpirationTime
Gets orders expiration time
Declaration
public DateTime ExpirationTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
FilledQuantity
Filled quantity of the order
Declaration
public double FilledQuantity { get; }
Property Value
Type | Description |
---|---|
System.Double |
GroupId
The ID of the order group. This group created when trades done by the MAM account.
Declaration
public string GroupId { get; }
Property Value
Type | Description |
---|---|
System.String |
LastUpdateTime
Gets orders last update time
Declaration
public DateTime LastUpdateTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
OrderType
Gets OrderType
Declaration
public OrderType OrderType { get; }
Property Value
Type | Description |
---|---|
TradingPlatform.BusinessLayer.OrderType |
OrderTypeId
Orders Type Id. It is used for the orders type comparing.
Declaration
public string OrderTypeId { get; }
Property Value
Type | Description |
---|---|
System.String |
OriginalStatus
Gets open order original status
Declaration
public string OriginalStatus { get; }
Property Value
Type | Description |
---|---|
System.String |
PositionId
Gets Position Id.
Declaration
public string PositionId { get; }
Property Value
Type | Description |
---|---|
System.String |
Price
Gets order price value
Declaration
public double Price { get; }
Property Value
Type | Description |
---|---|
System.Double |
RemainingQuantity
Remaining quantity of the order
Declaration
public double RemainingQuantity { get; }
Property Value
Type | Description |
---|---|
System.Double |
Status
Gets orders current status
Declaration
public OrderStatus Status { get; }
Property Value
Type | Description |
---|---|
TradingPlatform.BusinessLayer.OrderStatus |
StopLoss
Gets StopLoss holder for given order
Declaration
public SlTpHolder StopLoss { get; }
Property Value
Type | Description |
---|---|
TradingPlatform.BusinessLayer.SlTpHolder |
TakeProfit
Gets TakeProfit holder for given order
Declaration
public SlTpHolder TakeProfit { get; }
Property Value
Type | Description |
---|---|
TradingPlatform.BusinessLayer.SlTpHolder |
TimeInForce
Gets order TIF(Time-In-Force) type
Declaration
public TimeInForce TimeInForce { get; }
Property Value
Type | Description |
---|---|
TradingPlatform.BusinessLayer.TimeInForce |
TotalQuantity
Total quantity of the order
Declaration
public double TotalQuantity { get; }
Property Value
Type | Description |
---|---|
System.Double |
TrailOffset
Gets order trailing offset value
Declaration
public double TrailOffset { get; }
Property Value
Type | Description |
---|---|
System.Double |
TriggerPrice
Gets order trigger price value
Declaration
public double TriggerPrice { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Cancel()
Cancels pending order
Declaration
public TradingOperationResult Cancel()
Returns
Type | Description |
---|---|
TradingPlatform.BusinessLayer.TradingOperationResult |
Events
Updated
Will be triggered on each TradingPlatform.BusinessLayer.Order.UpdateByMessage(TradingPlatform.BusinessLayer.Integration.MessageOpenOrder) invocation
Declaration
public event Action<Order> Updated
Event Type
Type | Description |
---|---|
System.Action<Order> |