Show / Hide Table of Contents

    Class Order

    Represents trading information about pending order

    Namespace: TradingPlatform.BusinessLayer
    Syntax
    public class Order : TradingObject, IConnectionBindedObject, IMessageBuilder<MessageOpenOrder>, IOrder, ITradingObject, IUniqueID

    Properties

    AverageFillPrice

    Declaration
    public double AverageFillPrice { get; }
    Property Value
    Type Description
    System.Double

    ExpirationTime

    Gets orders expiration time

    Declaration
    public DateTime ExpirationTime { get; }
    Property Value
    Type Description
    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
    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

    StopLossItems

    Declaration
    public SlTpHolder[] StopLossItems { 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

    TakeProfitItems

    Declaration
    public SlTpHolder[] TakeProfitItems { 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

    BuildMessage()

    Declaration
    public MessageOpenOrder BuildMessage()
    Returns
    Type Description
    TradingPlatform.BusinessLayer.Integration.MessageOpenOrder

    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<IOrder> Updated
    Event Type
    Type Description
    Action<TradingPlatform.BusinessLayer.IOrder>
    Back to top Copyright QUANTOWER LLC. © 2017-2021. All rights reserved.