ProtoOATradeData
* Position/order trading details entity.
Implements: IMessage<ProtoOATradeData>, IMessage, IEquatable<ProtoOATradeData>, IDeepCloneable<ProtoOATradeData>, IBufferMessage
Properties
public ulong CloseTimestamp { get; set; }
value = protoOATradeData.CloseTimestamp
protoOATradeData.CloseTimestamp = value
The Unix time in milliseconds when a Position was closed
public string Comment { get; set; }
value = protoOATradeData.Comment
protoOATradeData.Comment = value
User-specified comment.
public bool GuaranteedStopLoss { get; set; }
value = protoOATradeData.GuaranteedStopLoss
protoOATradeData.GuaranteedStopLoss = value
If TRUE then position/order stop loss is guaranteedStopLoss.
public bool HasCloseTimestamp { get; }
value = protoOATradeData.HasCloseTimestamp
Gets whether the "closeTimestamp" field is set
public bool HasComment { get; }
value = protoOATradeData.HasComment
Gets whether the "comment" field is set
public bool HasGuaranteedStopLoss { get; }
value = protoOATradeData.HasGuaranteedStopLoss
Gets whether the "guaranteedStopLoss" field is set
public bool HasLabel { get; }
value = protoOATradeData.HasLabel
Gets whether the "label" field is set
public bool HasMeasurementUnits { get; }
value = protoOATradeData.HasMeasurementUnits
Gets whether the "measurementUnits" field is set
public bool HasOpenTimestamp { get; }
value = protoOATradeData.HasOpenTimestamp
Gets whether the "openTimestamp" field is set
public bool HasSymbolId { get; }
value = protoOATradeData.HasSymbolId
Gets whether the "symbolId" field is set
public bool HasTradeSide { get; }
value = protoOATradeData.HasTradeSide
Gets whether the "tradeSide" field is set
public bool HasVolume { get; }
value = protoOATradeData.HasVolume
Gets whether the "volume" field is set
public string Label { get; set; }
value = protoOATradeData.Label
protoOATradeData.Label = value
Text label specified during order request.
public string MeasurementUnits { get; set; }
value = protoOATradeData.MeasurementUnits
protoOATradeData.MeasurementUnits = value
Specifies the units in which the Symbol is denominated.
public long OpenTimestamp { get; set; }
value = protoOATradeData.OpenTimestamp
protoOATradeData.OpenTimestamp = value
The Unix time in milliseconds when position was opened or order was created.
public long SymbolId { get; set; }
value = protoOATradeData.SymbolId
protoOATradeData.SymbolId = value
The unique identifier of the symbol in specific server environment within cTrader platform. Different brokers might have different IDs.
public ProtoOATradeSide TradeSide { get; set; }
value = protoOATradeData.TradeSide
protoOATradeData.TradeSide = value
Buy, Sell.
public long Volume { get; set; }
value = protoOATradeData.Volume
protoOATradeData.Volume = value
Volume in cents.
Methods
public void ClearCloseTimestamp()
protoOATradeData.ClearCloseTimestamp()
Clears the value of the "closeTimestamp" field
public void ClearComment()
protoOATradeData.ClearComment()
Clears the value of the "comment" field
public void ClearGuaranteedStopLoss()
protoOATradeData.ClearGuaranteedStopLoss()
Clears the value of the "guaranteedStopLoss" field
public void ClearLabel()
protoOATradeData.ClearLabel()
Clears the value of the "label" field
public void ClearMeasurementUnits()
protoOATradeData.ClearMeasurementUnits()
Clears the value of the "measurementUnits" field
public void ClearOpenTimestamp()
protoOATradeData.ClearOpenTimestamp()
Clears the value of the "openTimestamp" field
public void ClearSymbolId()
protoOATradeData.ClearSymbolId()
Clears the value of the "symbolId" field
public void ClearTradeSide()
protoOATradeData.ClearTradeSide()
Clears the value of the "tradeSide" field
public void ClearVolume()
protoOATradeData.ClearVolume()
Clears the value of the "volume" field
Fields
public const int CloseTimestampFieldNumber
value = ProtoOATradeData.CloseTimestampFieldNumber
Field number for the "closeTimestamp" field.
public const int CommentFieldNumber
value = ProtoOATradeData.CommentFieldNumber
Field number for the "comment" field.
public const int GuaranteedStopLossFieldNumber
value = ProtoOATradeData.GuaranteedStopLossFieldNumber
Field number for the "guaranteedStopLoss" field.
public const int LabelFieldNumber
value = ProtoOATradeData.LabelFieldNumber
Field number for the "label" field.
public const int MeasurementUnitsFieldNumber
value = ProtoOATradeData.MeasurementUnitsFieldNumber
Field number for the "measurementUnits" field.
public const int OpenTimestampFieldNumber
value = ProtoOATradeData.OpenTimestampFieldNumber
Field number for the "openTimestamp" field.
public const int SymbolIdFieldNumber
value = ProtoOATradeData.SymbolIdFieldNumber
Field number for the "symbolId" field.
public const int TradeSideFieldNumber
value = ProtoOATradeData.TradeSideFieldNumber
Field number for the "tradeSide" field.
public const int VolumeFieldNumber
value = ProtoOATradeData.VolumeFieldNumber
Field number for the "volume" field.