Class Trade
Represents information about trade.
public class Trade : TradingObject, IConnectionBindedObject, IUniqueID, ITradingObject, IMessageBuilder<MessageTrade>
Constructors
Declaration
public Trade(string connectionId)
Parameters
Type |
Name |
Description |
System.String |
connectionId |
|
Properties
Get the date and time when trade was executed
Declaration
public DateTime DateTime { get; }
Property Value
Type |
Description |
DateTime |
|
Get the fee value that was charged for this trade
Declaration
public PnLItem Fee { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.PnLItem |
|
Declaration
public PnLItem GrossPnl { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.PnLItem |
|
Declaration
public PnLItem NetPnl { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.PnLItem |
|
Gets the unique identifier of the order initiating the trade.
Declaration
public string OrderId { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string OrderTypeId { get; }
Property Value
Type |
Description |
System.String |
|
Gets a unique identifier of the position, which is related to this trade.
Declaration
public string PositionId { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public PositionImpactType PositionImpactType { get; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.PositionImpactType |
|
Get the price where trade was executed
Declaration
public double Price { get; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public double Quantity { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Declaration
public MessageTrade BuildMessage()
Returns
Type |
Description |
TradingPlatform.BusinessLayer.Integration.MessageTrade |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Events
Will be triggered on trade updating
Declaration
public event Action Updated
Event Type