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
CtidTraderAccountId : long
Unique identifier of the trader's account. Used to match responses to trader's accounts.
HasCtidTraderAccountId : bool
Gets whether the "ctidTraderAccountId" field is set
HasPayloadType : bool
Gets whether the "payloadType" field is set
HasPositionId : bool
Gets whether the "positionId" field is set
PositionId : long
The unique ID of the position to close.
Methods
ClearCtidTraderAccountId()
Clears the value of the "ctidTraderAccountId" field
ClearPayloadType()
Clears the value of the "payloadType" field
ClearPositionId()
Clears the value of the "positionId" field
ClearVolume()
Clears the value of the "volume" field
Fields
CtidTraderAccountIdFieldNumber : int
Field number for the "ctidTraderAccountId" field.
PayloadTypeFieldNumber : int
Field number for the "payloadType" field.
PositionIdFieldNumber : int
Field number for the "positionId" field.
VolumeFieldNumber : int
Field number for the "volume" field.