Show / Hide Table of Contents

    Class Trade

    Represents information about trade.

    Namespace: TradingPlatform.BusinessLayer
    Syntax
    public class Trade : TradingObject, IConnectionBindedObject, IUniqueID

    Constructors

    Trade(String)

    Declaration
    public Trade(string connectionId)
    Parameters
    Type Name Description
    System.String connectionId

    Properties

    DateTime

    Get the date and time when trade was executed

    Declaration
    public DateTime DateTime { get; }
    Property Value
    Type Description
    System.DateTime

    Fee

    Get the fee value that was charged for this trade

    Declaration
    public PnLItem Fee { get; }
    Property Value
    Type Description
    TradingPlatform.BusinessLayer.PnLItem

    GrossPnl

    Get the trade Gross P&L

    Declaration
    public PnLItem GrossPnl { get; }
    Property Value
    Type Description
    TradingPlatform.BusinessLayer.PnLItem

    NetPnl

    Get the trade Net P&L

    Declaration
    public PnLItem NetPnl { get; }
    Property Value
    Type Description
    TradingPlatform.BusinessLayer.PnLItem

    OrderId

    Gets the unique identifier of the order initiating the trade.

    Declaration
    public string OrderId { get; }
    Property Value
    Type Description
    System.String

    OrderTypeId

    Get the trade order type

    Declaration
    public string OrderTypeId { get; }
    Property Value
    Type Description
    System.String

    PositionId

    Gets a unique identifier of the position, which is related to this trade.

    Declaration
    public string PositionId { get; }
    Property Value
    Type Description
    System.String

    Price

    Get the price where trade was executed

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

    Quantity

    Get the trade quantity

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

    Events

    Updated

    Will be triggered on trade updating

    Declaration
    public event Action Updated
    Event Type
    Type Description
    System.Action
    Back to top Copyright © 2017 - 2018 Quantower LLC