Class Order
Represents trading information about pending order
public class Order : TradingObject, IConnectionBindedObject, IMessageBuilder<MessageOpenOrder>, IOrder, ITradingObject, IUniqueID
Properties
Declaration
public double AverageFillPrice { get; }
Property Value
Type |
Description |
System.Double |
|
Gets orders expiration time
Declaration
public DateTime ExpirationTime { get; }
Property Value
Type |
Description |
DateTime |
|
Filled quantity of the order
Declaration
public double FilledQuantity { get; }
Property Value
Type |
Description |
System.Double |
|
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 |
|
Gets orders last update time
Declaration
public DateTime LastUpdateTime { get; }
Property Value
Type |
Description |
DateTime |
|
Declaration
public OrderType OrderType { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.OrderType |
|
Orders Type Id. It is used for the orders type comparing.
Declaration
public string OrderTypeId { get; }
Property Value
Type |
Description |
System.String |
|
Gets open order original status
Declaration
public string OriginalStatus { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string PositionId { get; }
Property Value
Type |
Description |
System.String |
|
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 |
|
Gets orders current status
Declaration
public OrderStatus Status { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.OrderStatus |
|
Gets StopLoss holder for given order
Declaration
public SlTpHolder StopLoss { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.SlTpHolder |
|
Declaration
public SlTpHolder[] StopLossItems { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.SlTpHolder[] |
|
Gets TakeProfit holder for given order
Declaration
public SlTpHolder TakeProfit { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.SlTpHolder |
|
Declaration
public SlTpHolder[] TakeProfitItems { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.SlTpHolder[] |
|
Gets order TIF(Time-In-Force) type
Declaration
public TimeInForce TimeInForce { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.TimeInForce |
|
Total quantity of the order
Declaration
public double TotalQuantity { get; }
Property Value
Type |
Description |
System.Double |
|
Gets order trailing offset value
Declaration
public double TrailOffset { get; }
Property Value
Type |
Description |
System.Double |
|
Gets order trigger price value
Declaration
public double TriggerPrice { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Declaration
public MessageOpenOrder BuildMessage()
Returns
Type |
Description |
TradingPlatform.BusinessLayer.Integration.MessageOpenOrder |
|
Declaration
public TradingOperationResult Cancel()
Returns
Type |
Description |
TradingPlatform.BusinessLayer.TradingOperationResult |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Events
Will be triggered on each TradingPlatform.BusinessLayer.Order.UpdateByMessage(TradingPlatform.BusinessLayer.Integration.MessageOpenOrder) invocation
Declaration
public event Action<IOrder> Updated
Event Type
Type |
Description |
Action<TradingPlatform.BusinessLayer.IOrder> |
|