ProtoOATradeData

StockSharp.cTrader.Native.Model

* Position/order trading details entity.

Implements: IMessage<ProtoOATradeData>, IMessage, IEquatable<ProtoOATradeData>, IDeepCloneable<ProtoOATradeData>, IBufferMessage

Properties

CloseTimestamp
public ulong CloseTimestamp { get; set; }
value = protoOATradeData.CloseTimestamp
protoOATradeData.CloseTimestamp = value

The Unix time in milliseconds when a Position was closed

Comment
public string Comment { get; set; }
value = protoOATradeData.Comment
protoOATradeData.Comment = value

User-specified comment.

GuaranteedStopLoss
public bool GuaranteedStopLoss { get; set; }
value = protoOATradeData.GuaranteedStopLoss
protoOATradeData.GuaranteedStopLoss = value

If TRUE then position/order stop loss is guaranteedStopLoss.

HasCloseTimestamp
public bool HasCloseTimestamp { get; }
value = protoOATradeData.HasCloseTimestamp

Gets whether the "closeTimestamp" field is set

HasComment
public bool HasComment { get; }
value = protoOATradeData.HasComment

Gets whether the "comment" field is set

HasGuaranteedStopLoss
public bool HasGuaranteedStopLoss { get; }
value = protoOATradeData.HasGuaranteedStopLoss

Gets whether the "guaranteedStopLoss" field is set

HasLabel
public bool HasLabel { get; }
value = protoOATradeData.HasLabel

Gets whether the "label" field is set

HasMeasurementUnits
public bool HasMeasurementUnits { get; }
value = protoOATradeData.HasMeasurementUnits

Gets whether the "measurementUnits" field is set

HasOpenTimestamp
public bool HasOpenTimestamp { get; }
value = protoOATradeData.HasOpenTimestamp

Gets whether the "openTimestamp" field is set

HasSymbolId
public bool HasSymbolId { get; }
value = protoOATradeData.HasSymbolId

Gets whether the "symbolId" field is set

HasTradeSide
public bool HasTradeSide { get; }
value = protoOATradeData.HasTradeSide

Gets whether the "tradeSide" field is set

HasVolume
public bool HasVolume { get; }
value = protoOATradeData.HasVolume

Gets whether the "volume" field is set

Label
public string Label { get; set; }
value = protoOATradeData.Label
protoOATradeData.Label = value

Text label specified during order request.

MeasurementUnits
public string MeasurementUnits { get; set; }
value = protoOATradeData.MeasurementUnits
protoOATradeData.MeasurementUnits = value

Specifies the units in which the Symbol is denominated.

OpenTimestamp
public long OpenTimestamp { get; set; }
value = protoOATradeData.OpenTimestamp
protoOATradeData.OpenTimestamp = value

The Unix time in milliseconds when position was opened or order was created.

SymbolId
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.

TradeSide
public ProtoOATradeSide TradeSide { get; set; }
value = protoOATradeData.TradeSide
protoOATradeData.TradeSide = value

Buy, Sell.

Volume
public long Volume { get; set; }
value = protoOATradeData.Volume
protoOATradeData.Volume = value

Volume in cents.

Methods

ClearCloseTimestamp
public void ClearCloseTimestamp()
protoOATradeData.ClearCloseTimestamp()

Clears the value of the "closeTimestamp" field

ClearComment
public void ClearComment()
protoOATradeData.ClearComment()

Clears the value of the "comment" field

ClearGuaranteedStopLoss
public void ClearGuaranteedStopLoss()
protoOATradeData.ClearGuaranteedStopLoss()

Clears the value of the "guaranteedStopLoss" field

ClearLabel
public void ClearLabel()
protoOATradeData.ClearLabel()

Clears the value of the "label" field

ClearMeasurementUnits
public void ClearMeasurementUnits()
protoOATradeData.ClearMeasurementUnits()

Clears the value of the "measurementUnits" field

ClearOpenTimestamp
public void ClearOpenTimestamp()
protoOATradeData.ClearOpenTimestamp()

Clears the value of the "openTimestamp" field

ClearSymbolId
public void ClearSymbolId()
protoOATradeData.ClearSymbolId()

Clears the value of the "symbolId" field

ClearTradeSide
public void ClearTradeSide()
protoOATradeData.ClearTradeSide()

Clears the value of the "tradeSide" field

ClearVolume
public void ClearVolume()
protoOATradeData.ClearVolume()

Clears the value of the "volume" field

Fields

CloseTimestampFieldNumber
public const int CloseTimestampFieldNumber
value = ProtoOATradeData.CloseTimestampFieldNumber

Field number for the "closeTimestamp" field.

CommentFieldNumber
public const int CommentFieldNumber
value = ProtoOATradeData.CommentFieldNumber

Field number for the "comment" field.

GuaranteedStopLossFieldNumber
public const int GuaranteedStopLossFieldNumber
value = ProtoOATradeData.GuaranteedStopLossFieldNumber

Field number for the "guaranteedStopLoss" field.

LabelFieldNumber
public const int LabelFieldNumber
value = ProtoOATradeData.LabelFieldNumber

Field number for the "label" field.

MeasurementUnitsFieldNumber
public const int MeasurementUnitsFieldNumber
value = ProtoOATradeData.MeasurementUnitsFieldNumber

Field number for the "measurementUnits" field.

OpenTimestampFieldNumber
public const int OpenTimestampFieldNumber
value = ProtoOATradeData.OpenTimestampFieldNumber

Field number for the "openTimestamp" field.

SymbolIdFieldNumber
public const int SymbolIdFieldNumber
value = ProtoOATradeData.SymbolIdFieldNumber

Field number for the "symbolId" field.

TradeSideFieldNumber
public const int TradeSideFieldNumber
value = ProtoOATradeData.TradeSideFieldNumber

Field number for the "tradeSide" field.

VolumeFieldNumber
public const int VolumeFieldNumber
value = ProtoOATradeData.VolumeFieldNumber

Field number for the "volume" field.