Click or drag to resize

MyTrade Class

Own trade.
Inheritance Hierarchy
SystemObject
  NotifiableObject
    StockSharp.BusinessEntitiesMyTrade
      StockSharp.BusinessEntitiesOrderLogItem

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
[SerializableAttribute]
public class MyTrade : NotifiableObject, IExtendableEntity

The MyTrade type exposes the following members.

Constructors
  NameDescription
Public methodMyTrade
Initializes a new instance of the MyTrade.
Top
Properties
  NameDescription
Public propertyCommission
Commission.
Public propertyCommissionCurrency
Commission currency. Can be .
Public propertyExtensionInfo
Extended trade info.
Public propertyOrder
Order, for which a trade was filled.
Public propertyPnL
The profit, realized by trade.
Public propertyPosition
The position, generated by trade.
Public propertySlippage
Slippage in trade price.
Public propertyTrade
Trade info.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChanged (Inherited from NotifiableObject.)
Protected methodNotifyChanging (Inherited from NotifiableObject.)
Public methodNotifyPropertyChanged (Inherited from NotifiableObject.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventPropertyChanged (Inherited from NotifiableObject.)
Public eventPropertyChanging (Inherited from NotifiableObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddValue
Add value into ExtensionInfo.
(Defined by ExtandableEntityHelper.)
Public Extension MethodCopyExtensionInfo
Copy extended info.
(Defined by Extensions.)
Public Extension MethodGetAveragePrice
To get the average price of matched order.
(Defined by Extensions.)
Public Extension MethodGetClientId
To get the customer identifier.
(Defined by Extensions.)
Public Extension MethodGetCumulativeQuantity
To get a number of profitable contracts in the trade.
(Defined by Extensions.)
Public Extension MethodGetEvMultiplier
To get the contract market price factor when the price changes by 1.
(Defined by Extensions.)
Public Extension MethodGetEvRule
To get the Economic Value rule.
(Defined by Extensions.)
Public Extension MethodGetLiquidation
To get the liquidation position.
(Defined by Extensions.)
Public Extension MethodGetOrderRef
To get the order description.
(Defined by Extensions.)
Public Extension MethodGetPosition
To get the position on own trade.
(Defined by TraderHelper.)
Public Extension MethodGetValueT
Get value from ExtensionInfo.
(Defined by ExtandableEntityHelper.)
Public Extension MethodToMessage
To convert the own trade into message.
(Defined by MessageConverterHelper.)
Top
See Also