ProtoOATrader

StockSharp.cTrader.Native.Model

* Trading account entity.

Реализует: IMessage<ProtoOATrader>, IMessage, IEquatable<ProtoOATrader>, IDeepCloneable<ProtoOATrader>, IBufferMessage

Свойства

AccessRights : ProtoOAAccessRights

Access rights that an owner has to the account in cTrader platform. See ProtoOAAccessRights for details.

AccountType : ProtoOAAccountType

Account type: HEDGED, NETTED, etc.

Balance : long

Current account balance.

BalanceVersion : long

Balance version used to identify the final balance. Increments each time when the trader's account balance is changed.

BrokerName : string

Some whitelabel assigned to trader by broker at the moment of account creation.

CtidTraderAccountId : long

The unique Trader's Account ID used to match the responses to the Trader's Account.

DepositAssetId : long

Deposit currency of the account.

FairStopOut : bool

If TRUE - Position is fully closed on Stop Out, if FALSE - smart (partial closing) Stop Out is applied, if unspecified - Stop Out format is determined by Broker.

FrenchRisk : bool

If TRUE then account is AMF compliant. Use isLimitedRisk and limitedRiskMarginCalculationStrategy.

HasAccessRights : bool

Gets whether the "accessRights" field is set

HasAccountType : bool

Gets whether the "accountType" field is set

HasBalance : bool

Gets whether the "balance" field is set

HasBalanceVersion : bool

Gets whether the "balanceVersion" field is set

HasBrokerName : bool

Gets whether the "brokerName" field is set

HasCtidTraderAccountId : bool

Gets whether the "ctidTraderAccountId" field is set

HasDepositAssetId : bool

Gets whether the "depositAssetId" field is set

HasFairStopOut : bool

Gets whether the "fairStopOut" field is set

HasFrenchRisk : bool

Gets whether the "frenchRisk" field is set

HasIbBonus : bool

Gets whether the "ibBonus" field is set

HasIsLimitedRisk : bool

Gets whether the "isLimitedRisk" field is set

HasLeverageInCents : bool

Gets whether the "leverageInCents" field is set

HasLimitedRiskMarginCalculationStrategy : bool

Gets whether the "limitedRiskMarginCalculationStrategy" field is set

HasManagerBonus : bool

Gets whether the "managerBonus" field is set

HasMaxLeverage : bool

Gets whether the "maxLeverage" field is set

HasMoneyDigits : bool

Gets whether the "moneyDigits" field is set

HasNonWithdrawableBonus : bool

Gets whether the "nonWithdrawableBonus" field is set

HasRegistrationTimestamp : bool

Gets whether the "registrationTimestamp" field is set

HasStopOutStrategy : bool

Gets whether the "stopOutStrategy" field is set

HasSwapFree : bool

Gets whether the "swapFree" field is set

HasTotalMarginCalculationType : bool

Gets whether the "totalMarginCalculationType" field is set

HasTraderLogin : bool

Gets whether the "traderLogin" field is set

IbBonus : long

Amount of introducing broker bonus allocated to the account.

IsLimitedRisk : bool

If TRUE then account is compliant to use specific margin calculation strategy. Such accounts are require to have guaranteed stop loss on all positions.

LeverageInCents : uint

Account leverage (e.g. If leverage = 1:50 then value = 5000).

LimitedRiskMarginCalculationStrategy : ProtoOALimitedRiskMarginCalculationStrategy

Special strategy used in margin calculations for this account (if account isLimitedRisk).

ManagerBonus : long

Amount of broker's bonus allocated to the account.

MaxLeverage : uint

Maximum allowed leverage for the account. Used as validation when a Trader can change leverage value.

MoneyDigits : uint

Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects balance, managerBonus, ibBonus, nonWithdrawableBonus.

NonWithdrawableBonus : long

Broker's bonus that cannot be withdrew from the account as cash.

RegistrationTimestamp : long

The Unix timestamp in milliseconds of the account registration. Should be used as minimal date in historical data requests.

StopOutStrategy : ProtoOAStopOutStrategy

The Stop Out strategy that is used for this Trader. The Trader can change the value in the cTrader UI if this option is not disabled by the Broker

SwapFree : bool

If TRUE then account is Shariah compliant.

TotalMarginCalculationType : ProtoOATotalMarginCalculationType

Margin computation type for the account (MAX, SUM, NET).

TraderLogin : long

ID of the account that is unique per server (Broker).

Методы

ClearAccessRights()

Clears the value of the "accessRights" field

ClearAccountType()

Clears the value of the "accountType" field

ClearBalance()

Clears the value of the "balance" field

ClearBalanceVersion()

Clears the value of the "balanceVersion" field

ClearBrokerName()

Clears the value of the "brokerName" field

ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearDepositAssetId()

Clears the value of the "depositAssetId" field

ClearFairStopOut()

Clears the value of the "fairStopOut" field

ClearFrenchRisk()

Clears the value of the "frenchRisk" field

ClearIbBonus()

Clears the value of the "ibBonus" field

ClearIsLimitedRisk()

Clears the value of the "isLimitedRisk" field

ClearLeverageInCents()

Clears the value of the "leverageInCents" field

ClearLimitedRiskMarginCalculationStrategy()

Clears the value of the "limitedRiskMarginCalculationStrategy" field

ClearManagerBonus()

Clears the value of the "managerBonus" field

ClearMaxLeverage()

Clears the value of the "maxLeverage" field

ClearMoneyDigits()

Clears the value of the "moneyDigits" field

ClearNonWithdrawableBonus()

Clears the value of the "nonWithdrawableBonus" field

ClearRegistrationTimestamp()

Clears the value of the "registrationTimestamp" field

ClearStopOutStrategy()

Clears the value of the "stopOutStrategy" field

ClearSwapFree()

Clears the value of the "swapFree" field

ClearTotalMarginCalculationType()

Clears the value of the "totalMarginCalculationType" field

ClearTraderLogin()

Clears the value of the "traderLogin" field

Поля

AccessRightsFieldNumber : int

Field number for the "accessRights" field.

AccountTypeFieldNumber : int

Field number for the "accountType" field.

BalanceFieldNumber : int

Field number for the "balance" field.

BalanceVersionFieldNumber : int

Field number for the "balanceVersion" field.

BrokerNameFieldNumber : int

Field number for the "brokerName" field.

CtidTraderAccountIdFieldNumber : int

Field number for the "ctidTraderAccountId" field.

DepositAssetIdFieldNumber : int

Field number for the "depositAssetId" field.

FairStopOutFieldNumber : int

Field number for the "fairStopOut" field.

FrenchRiskFieldNumber : int

Field number for the "frenchRisk" field.

IbBonusFieldNumber : int

Field number for the "ibBonus" field.

IsLimitedRiskFieldNumber : int

Field number for the "isLimitedRisk" field.

LeverageInCentsFieldNumber : int

Field number for the "leverageInCents" field.

LimitedRiskMarginCalculationStrategyFieldNumber : int

Field number for the "limitedRiskMarginCalculationStrategy" field.

ManagerBonusFieldNumber : int

Field number for the "managerBonus" field.

MaxLeverageFieldNumber : int

Field number for the "maxLeverage" field.

MoneyDigitsFieldNumber : int

Field number for the "moneyDigits" field.

NonWithdrawableBonusFieldNumber : int

Field number for the "nonWithdrawableBonus" field.

RegistrationTimestampFieldNumber : int

Field number for the "registrationTimestamp" field.

StopOutStrategyFieldNumber : int

Field number for the "stopOutStrategy" field.

SwapFreeFieldNumber : int

Field number for the "swapFree" field.

TotalMarginCalculationTypeFieldNumber : int

Field number for the "totalMarginCalculationType" field.

TraderLoginFieldNumber : int

Field number for the "traderLogin" field.