Class MyTrade
- Namespace
- ATAS.DataFeedsCore
- Assembly
- ATAS.DataFeedsCore.dll
Represents a trade entity in the system.
public class MyTrade : IEntity
- Inheritance
-
objectMyTrade
- Implements
- Extension Methods
Constructors
MyTrade()
public MyTrade()
Properties
AccountID
Gets or sets the account ID associated with the trade.
public string? AccountID { get; set; }
Property Value
- string
BrokerCommission
Commission as the broker reported or priced it, regardless of what the user sees in Commission (PLAT-4891): a connector that computes the fee from the broker's rate only on demand (Rithmic RMS) still fills this one. Null when the broker gave nothing.
Not in ATAS 8.0.15 yet: available from the next version.
public decimal? BrokerCommission { get; set; }
Property Value
- decimal?
Commission
Gets or sets the commission amount of the trade.
public decimal? Commission { get; set; }
Property Value
- decimal?
CommissionCurrency
Gets or sets the currency of the commission for the trade.
public string? CommissionCurrency { get; set; }
Property Value
- string
CommissionSource
Where Commission came from. Set by the platform when the trade is registered.
Not in ATAS 8.0.15 yet: available from the next version.
public CommissionSource CommissionSource { get; set; }
Property Value
EntityType
public EntityType EntityType { get; }
Property Value
Remarks
Gets the entity type, which is MyTrade.
Id
Gets or sets the unique ID of the trade.
public string Id { get; set; }
Property Value
- string
IsMaker
Gets or sets whether the trade is a maker trade.
public bool? IsMaker { get; set; }
Property Value
- bool?
IsNew
Gets or sets a flag indicating whether the trade is new.
public bool IsNew { get; set; }
Property Value
- bool
OpenVolume
Gets or sets the open volume of the trade.
public decimal OpenVolume { get; set; }
Property Value
- decimal
Order
Gets or sets the order associated with the trade.
public Order? Order { get; set; }
Property Value
OrderDirection
Gets or sets the direction of the order (Buy or Sell) associated with the trade.
public OrderDirections OrderDirection { get; set; }
Property Value
OrderId
Gets or sets the ID of the order associated with the trade.
public string OrderId { get; set; }
Property Value
- string
Parent
Gets or sets the parent object associated with the trade.
public object? Parent { get; set; }
Property Value
- object
Portfolio
Gets or sets the portfolio associated with the trade.
public Portfolio? Portfolio { get; set; }
Property Value
Price
Gets or sets the price at which the trade was executed.
public decimal Price { get; set; }
Property Value
- decimal
Route
Gets or sets the route associated with the trade.
public string Route { get; set; }
Property Value
- string
Security
Gets or sets the security associated with the trade.
public Security? Security { get; set; }
Property Value
SecurityId
Gets or sets the security ID associated with the trade.
public string? SecurityId { get; set; }
Property Value
- string
Time
Gets or sets the timestamp of the trade.
public DateTime Time { get; set; }
Property Value
- DateTime
Volume
Gets or sets the volume of the trade.
public decimal Volume { get; set; }
Property Value
- decimal
Methods
Clone()
Creates a shallow copy of the trade; the order, security and portfolio references are shared. Because the Volume setter also sets OpenVolume, the copy's OpenVolume equals Volume.
public MyTrade Clone()
Returns
- MyTrade
The copy.
Display()
Returns a compact description of the trade for logs: ID, direction, time (yyyy.MM.dd HH:mm:ss.fff), volume and price.
public string Display()
Returns
- string
The description in the form
Id Direction Time VolumexPrice.
OnPropertyChanged(string)
Notifies subscribers that a property value has changed.
protected void OnPropertyChanged(string name)
Parameters
namestringThe name of the property that changed.
ToString()
Returns the order ID, external order ID, trade ID, direction, security, price and volume of the trade.
public override string ToString()
Returns
- string
Events
PropertyChanged
Raised when a property of the trade changes.
<p>Added in ATAS 8.0.15.</p>
public event PropertyChangedEventHandler? PropertyChanged
Event Type
- PropertyChangedEventHandler