ProtoOAClosePositionReq

StockSharp.cTrader.Native.Model

* Request for closing or partially closing of an existing position. Allowed only if the accessToken has "trade" permissions for the trading account.

Implementa: IMessage<ProtoOAClosePositionReq>, IMessage, IEquatable<ProtoOAClosePositionReq>, IDeepCloneable<ProtoOAClosePositionReq>, IBufferMessage

Propriedades

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

HasVolume : bool

Gets whether the "volume" field is set

PositionId : long

The unique ID of the position to close.

Volume : long

Volume to close, represented in 0.01 of a unit (e.g. cents).

Métodos

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

Campos

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.