Class MyTrade
- Namespace
- StockSharp.BusinessEntities
- Assembly
- StockSharp.BusinessEntities.dll
Own trade.
[DataContract]
[Display(ResourceType = typeof(LocalizedStrings), Name = "OwnTrade", Description = "OwnTradeDesc")]
public class MyTrade : NotifiableObject
- Inheritance
-
MyTrade
- Derived
- Extension Methods
Constructors
MyTrade()
Initializes a new instance of the MyTrade.
public MyTrade()
Properties
Commission
Commission.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Commission", Description = "CommissionDesc", GroupName = "Statistics", Order = 0)]
public decimal? Commission { get; set; }
Property Value
CommissionCurrency
Commission currency. Can be null.
public string CommissionCurrency { get; set; }
Property Value
Initiator
Used to identify whether the order initiator is an aggressor or not in the trade.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Initiator", Description = "InitiatorTrade", GroupName = "General", Order = 3)]
public bool? Initiator { get; set; }
Property Value
- bool?
Order
Order, for which a trade was filled.
[DataMember]
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Order", Description = "OwnTradeOrder", GroupName = "General", Order = 0)]
public Order Order { get; set; }
Property Value
PnL
The profit, realized by trade.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "PnL", Description = "PnLDot", GroupName = "Statistics", Order = 2)]
public decimal? PnL { get; set; }
Property Value
Position
The position, generated by trade.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Position", Description = "PositionDot", GroupName = "Statistics", Order = 2)]
public decimal? Position { get; set; }
Property Value
Slippage
Slippage in trade price.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Slippage", Description = "SlippageTrade", GroupName = "Statistics", Order = 1)]
public decimal? Slippage { get; set; }
Property Value
Trade
Trade info.
[DataMember]
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Trade", Description = "TickTradeInfo", GroupName = "General", Order = 1)]
public Trade Trade { get; set; }
Property Value
Yield
Yield.
[DataMember]
public decimal? Yield { get; set; }
Property Value
Methods
ToString()
public override string ToString()