ProtoOAClosePositionReq
* Request for closing or partially closing of an existing position. Allowed only if the accessToken has "trade" permissions for the trading account.
Implements: IMessage<ProtoOAClosePositionReq>, IMessage, IEquatable<ProtoOAClosePositionReq>, IDeepCloneable<ProtoOAClosePositionReq>, IBufferMessage
Properties
public long CtidTraderAccountId { get; set; }
value = protoOAClosePositionReq.CtidTraderAccountId
protoOAClosePositionReq.CtidTraderAccountId = value
Unique identifier of the trader's account. Used to match responses to trader's accounts.
public bool HasCtidTraderAccountId { get; }
value = protoOAClosePositionReq.HasCtidTraderAccountId
Gets whether the "ctidTraderAccountId" field is set
public bool HasPayloadType { get; }
value = protoOAClosePositionReq.HasPayloadType
Gets whether the "payloadType" field is set
public bool HasPositionId { get; }
value = protoOAClosePositionReq.HasPositionId
Gets whether the "positionId" field is set
public bool HasVolume { get; }
value = protoOAClosePositionReq.HasVolume
Gets whether the "volume" field is set
public long PositionId { get; set; }
value = protoOAClosePositionReq.PositionId
protoOAClosePositionReq.PositionId = value
The unique ID of the position to close.
public long Volume { get; set; }
value = protoOAClosePositionReq.Volume
protoOAClosePositionReq.Volume = value
Volume to close, represented in 0.01 of a unit (e.g. cents).
Methods
public void ClearCtidTraderAccountId()
protoOAClosePositionReq.ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
public void ClearPayloadType()
protoOAClosePositionReq.ClearPayloadType()
Clears the value of the "payloadType" field
public void ClearPositionId()
protoOAClosePositionReq.ClearPositionId()
Clears the value of the "positionId" field
public void ClearVolume()
protoOAClosePositionReq.ClearVolume()
Clears the value of the "volume" field
Fields
public const int CtidTraderAccountIdFieldNumber
value = ProtoOAClosePositionReq.CtidTraderAccountIdFieldNumber
Field number for the "ctidTraderAccountId" field.
public const int PayloadTypeFieldNumber
value = ProtoOAClosePositionReq.PayloadTypeFieldNumber
Field number for the "payloadType" field.
public const int PositionIdFieldNumber
value = ProtoOAClosePositionReq.PositionIdFieldNumber
Field number for the "positionId" field.
public const int VolumeFieldNumber
value = ProtoOAClosePositionReq.VolumeFieldNumber
Field number for the "volume" field.