ProtoOATrader

StockSharp.cTrader.Native.Model

* Trading account entity.

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

Properties

AccessRights
public ProtoOAAccessRights AccessRights { get; set; }
value = protoOATrader.AccessRights
protoOATrader.AccessRights = value

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

AccountType
public ProtoOAAccountType AccountType { get; set; }
value = protoOATrader.AccountType
protoOATrader.AccountType = value

Account type: HEDGED, NETTED, etc.

Balance
public long Balance { get; set; }
value = protoOATrader.Balance
protoOATrader.Balance = value

Current account balance.

BalanceVersion
public long BalanceVersion { get; set; }
value = protoOATrader.BalanceVersion
protoOATrader.BalanceVersion = value

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

BrokerName
public string BrokerName { get; set; }
value = protoOATrader.BrokerName
protoOATrader.BrokerName = value

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

CtidTraderAccountId
public long CtidTraderAccountId { get; set; }
value = protoOATrader.CtidTraderAccountId
protoOATrader.CtidTraderAccountId = value

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

DepositAssetId
public long DepositAssetId { get; set; }
value = protoOATrader.DepositAssetId
protoOATrader.DepositAssetId = value

Deposit currency of the account.

FairStopOut
public bool FairStopOut { get; set; }
value = protoOATrader.FairStopOut
protoOATrader.FairStopOut = value

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
public bool FrenchRisk { get; set; }
value = protoOATrader.FrenchRisk
protoOATrader.FrenchRisk = value

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

HasAccessRights
public bool HasAccessRights { get; }
value = protoOATrader.HasAccessRights

Gets whether the "accessRights" field is set

HasAccountType
public bool HasAccountType { get; }
value = protoOATrader.HasAccountType

Gets whether the "accountType" field is set

HasBalance
public bool HasBalance { get; }
value = protoOATrader.HasBalance

Gets whether the "balance" field is set

HasBalanceVersion
public bool HasBalanceVersion { get; }
value = protoOATrader.HasBalanceVersion

Gets whether the "balanceVersion" field is set

HasBrokerName
public bool HasBrokerName { get; }
value = protoOATrader.HasBrokerName

Gets whether the "brokerName" field is set

HasCtidTraderAccountId
public bool HasCtidTraderAccountId { get; }
value = protoOATrader.HasCtidTraderAccountId

Gets whether the "ctidTraderAccountId" field is set

HasDepositAssetId
public bool HasDepositAssetId { get; }
value = protoOATrader.HasDepositAssetId

Gets whether the "depositAssetId" field is set

HasFairStopOut
public bool HasFairStopOut { get; }
value = protoOATrader.HasFairStopOut

Gets whether the "fairStopOut" field is set

HasFrenchRisk
public bool HasFrenchRisk { get; }
value = protoOATrader.HasFrenchRisk

Gets whether the "frenchRisk" field is set

HasIbBonus
public bool HasIbBonus { get; }
value = protoOATrader.HasIbBonus

Gets whether the "ibBonus" field is set

HasIsLimitedRisk
public bool HasIsLimitedRisk { get; }
value = protoOATrader.HasIsLimitedRisk

Gets whether the "isLimitedRisk" field is set

HasLeverageInCents
public bool HasLeverageInCents { get; }
value = protoOATrader.HasLeverageInCents

Gets whether the "leverageInCents" field is set

HasLimitedRiskMarginCalculationStrategy
public bool HasLimitedRiskMarginCalculationStrategy { get; }
value = protoOATrader.HasLimitedRiskMarginCalculationStrategy

Gets whether the "limitedRiskMarginCalculationStrategy" field is set

HasManagerBonus
public bool HasManagerBonus { get; }
value = protoOATrader.HasManagerBonus

Gets whether the "managerBonus" field is set

HasMaxLeverage
public bool HasMaxLeverage { get; }
value = protoOATrader.HasMaxLeverage

Gets whether the "maxLeverage" field is set

HasMoneyDigits
public bool HasMoneyDigits { get; }
value = protoOATrader.HasMoneyDigits

Gets whether the "moneyDigits" field is set

HasNonWithdrawableBonus
public bool HasNonWithdrawableBonus { get; }
value = protoOATrader.HasNonWithdrawableBonus

Gets whether the "nonWithdrawableBonus" field is set

HasRegistrationTimestamp
public bool HasRegistrationTimestamp { get; }
value = protoOATrader.HasRegistrationTimestamp

Gets whether the "registrationTimestamp" field is set

HasStopOutStrategy
public bool HasStopOutStrategy { get; }
value = protoOATrader.HasStopOutStrategy

Gets whether the "stopOutStrategy" field is set

HasSwapFree
public bool HasSwapFree { get; }
value = protoOATrader.HasSwapFree

Gets whether the "swapFree" field is set

HasTotalMarginCalculationType
public bool HasTotalMarginCalculationType { get; }
value = protoOATrader.HasTotalMarginCalculationType

Gets whether the "totalMarginCalculationType" field is set

HasTraderLogin
public bool HasTraderLogin { get; }
value = protoOATrader.HasTraderLogin

Gets whether the "traderLogin" field is set

IbBonus
public long IbBonus { get; set; }
value = protoOATrader.IbBonus
protoOATrader.IbBonus = value

Amount of introducing broker bonus allocated to the account.

IsLimitedRisk
public bool IsLimitedRisk { get; set; }
value = protoOATrader.IsLimitedRisk
protoOATrader.IsLimitedRisk = value

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
public uint LeverageInCents { get; set; }
value = protoOATrader.LeverageInCents
protoOATrader.LeverageInCents = value

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

LimitedRiskMarginCalculationStrategy
public ProtoOALimitedRiskMarginCalculationStrategy LimitedRiskMarginCalculationStrategy { get; set; }
value = protoOATrader.LimitedRiskMarginCalculationStrategy
protoOATrader.LimitedRiskMarginCalculationStrategy = value

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

ManagerBonus
public long ManagerBonus { get; set; }
value = protoOATrader.ManagerBonus
protoOATrader.ManagerBonus = value

Amount of broker's bonus allocated to the account.

MaxLeverage
public uint MaxLeverage { get; set; }
value = protoOATrader.MaxLeverage
protoOATrader.MaxLeverage = value

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

MoneyDigits
public uint MoneyDigits { get; set; }
value = protoOATrader.MoneyDigits
protoOATrader.MoneyDigits = value

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
public long NonWithdrawableBonus { get; set; }
value = protoOATrader.NonWithdrawableBonus
protoOATrader.NonWithdrawableBonus = value

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

RegistrationTimestamp
public long RegistrationTimestamp { get; set; }
value = protoOATrader.RegistrationTimestamp
protoOATrader.RegistrationTimestamp = value

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

StopOutStrategy
public ProtoOAStopOutStrategy StopOutStrategy { get; set; }
value = protoOATrader.StopOutStrategy
protoOATrader.StopOutStrategy = value

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
public bool SwapFree { get; set; }
value = protoOATrader.SwapFree
protoOATrader.SwapFree = value

If TRUE then account is Shariah compliant.

TotalMarginCalculationType
public ProtoOATotalMarginCalculationType TotalMarginCalculationType { get; set; }
value = protoOATrader.TotalMarginCalculationType
protoOATrader.TotalMarginCalculationType = value

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

TraderLogin
public long TraderLogin { get; set; }
value = protoOATrader.TraderLogin
protoOATrader.TraderLogin = value

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

Methods

ClearAccessRights
public void ClearAccessRights()
protoOATrader.ClearAccessRights()

Clears the value of the "accessRights" field

ClearAccountType
public void ClearAccountType()
protoOATrader.ClearAccountType()

Clears the value of the "accountType" field

ClearBalance
public void ClearBalance()
protoOATrader.ClearBalance()

Clears the value of the "balance" field

ClearBalanceVersion
public void ClearBalanceVersion()
protoOATrader.ClearBalanceVersion()

Clears the value of the "balanceVersion" field

ClearBrokerName
public void ClearBrokerName()
protoOATrader.ClearBrokerName()

Clears the value of the "brokerName" field

ClearCtidTraderAccountId
public void ClearCtidTraderAccountId()
protoOATrader.ClearCtidTraderAccountId()

Clears the value of the "ctidTraderAccountId" field

ClearDepositAssetId
public void ClearDepositAssetId()
protoOATrader.ClearDepositAssetId()

Clears the value of the "depositAssetId" field

ClearFairStopOut
public void ClearFairStopOut()
protoOATrader.ClearFairStopOut()

Clears the value of the "fairStopOut" field

ClearFrenchRisk
public void ClearFrenchRisk()
protoOATrader.ClearFrenchRisk()

Clears the value of the "frenchRisk" field

ClearIbBonus
public void ClearIbBonus()
protoOATrader.ClearIbBonus()

Clears the value of the "ibBonus" field

ClearIsLimitedRisk
public void ClearIsLimitedRisk()
protoOATrader.ClearIsLimitedRisk()

Clears the value of the "isLimitedRisk" field

ClearLeverageInCents
public void ClearLeverageInCents()
protoOATrader.ClearLeverageInCents()

Clears the value of the "leverageInCents" field

ClearLimitedRiskMarginCalculationStrategy
public void ClearLimitedRiskMarginCalculationStrategy()
protoOATrader.ClearLimitedRiskMarginCalculationStrategy()

Clears the value of the "limitedRiskMarginCalculationStrategy" field

ClearManagerBonus
public void ClearManagerBonus()
protoOATrader.ClearManagerBonus()

Clears the value of the "managerBonus" field

ClearMaxLeverage
public void ClearMaxLeverage()
protoOATrader.ClearMaxLeverage()

Clears the value of the "maxLeverage" field

ClearMoneyDigits
public void ClearMoneyDigits()
protoOATrader.ClearMoneyDigits()

Clears the value of the "moneyDigits" field

ClearNonWithdrawableBonus
public void ClearNonWithdrawableBonus()
protoOATrader.ClearNonWithdrawableBonus()

Clears the value of the "nonWithdrawableBonus" field

ClearRegistrationTimestamp
public void ClearRegistrationTimestamp()
protoOATrader.ClearRegistrationTimestamp()

Clears the value of the "registrationTimestamp" field

ClearStopOutStrategy
public void ClearStopOutStrategy()
protoOATrader.ClearStopOutStrategy()

Clears the value of the "stopOutStrategy" field

ClearSwapFree
public void ClearSwapFree()
protoOATrader.ClearSwapFree()

Clears the value of the "swapFree" field

ClearTotalMarginCalculationType
public void ClearTotalMarginCalculationType()
protoOATrader.ClearTotalMarginCalculationType()

Clears the value of the "totalMarginCalculationType" field

ClearTraderLogin
public void ClearTraderLogin()
protoOATrader.ClearTraderLogin()

Clears the value of the "traderLogin" field

Fields

AccessRightsFieldNumber
public const int AccessRightsFieldNumber
value = ProtoOATrader.AccessRightsFieldNumber

Field number for the "accessRights" field.

AccountTypeFieldNumber
public const int AccountTypeFieldNumber
value = ProtoOATrader.AccountTypeFieldNumber

Field number for the "accountType" field.

BalanceFieldNumber
public const int BalanceFieldNumber
value = ProtoOATrader.BalanceFieldNumber

Field number for the "balance" field.

BalanceVersionFieldNumber
public const int BalanceVersionFieldNumber
value = ProtoOATrader.BalanceVersionFieldNumber

Field number for the "balanceVersion" field.

BrokerNameFieldNumber
public const int BrokerNameFieldNumber
value = ProtoOATrader.BrokerNameFieldNumber

Field number for the "brokerName" field.

CtidTraderAccountIdFieldNumber
public const int CtidTraderAccountIdFieldNumber
value = ProtoOATrader.CtidTraderAccountIdFieldNumber

Field number for the "ctidTraderAccountId" field.

DepositAssetIdFieldNumber
public const int DepositAssetIdFieldNumber
value = ProtoOATrader.DepositAssetIdFieldNumber

Field number for the "depositAssetId" field.

FairStopOutFieldNumber
public const int FairStopOutFieldNumber
value = ProtoOATrader.FairStopOutFieldNumber

Field number for the "fairStopOut" field.

FrenchRiskFieldNumber
public const int FrenchRiskFieldNumber
value = ProtoOATrader.FrenchRiskFieldNumber

Field number for the "frenchRisk" field.

IbBonusFieldNumber
public const int IbBonusFieldNumber
value = ProtoOATrader.IbBonusFieldNumber

Field number for the "ibBonus" field.

IsLimitedRiskFieldNumber
public const int IsLimitedRiskFieldNumber
value = ProtoOATrader.IsLimitedRiskFieldNumber

Field number for the "isLimitedRisk" field.

LeverageInCentsFieldNumber
public const int LeverageInCentsFieldNumber
value = ProtoOATrader.LeverageInCentsFieldNumber

Field number for the "leverageInCents" field.

LimitedRiskMarginCalculationStrategyFieldNumber
public const int LimitedRiskMarginCalculationStrategyFieldNumber
value = ProtoOATrader.LimitedRiskMarginCalculationStrategyFieldNumber

Field number for the "limitedRiskMarginCalculationStrategy" field.

ManagerBonusFieldNumber
public const int ManagerBonusFieldNumber
value = ProtoOATrader.ManagerBonusFieldNumber

Field number for the "managerBonus" field.

MaxLeverageFieldNumber
public const int MaxLeverageFieldNumber
value = ProtoOATrader.MaxLeverageFieldNumber

Field number for the "maxLeverage" field.

MoneyDigitsFieldNumber
public const int MoneyDigitsFieldNumber
value = ProtoOATrader.MoneyDigitsFieldNumber

Field number for the "moneyDigits" field.

NonWithdrawableBonusFieldNumber
public const int NonWithdrawableBonusFieldNumber
value = ProtoOATrader.NonWithdrawableBonusFieldNumber

Field number for the "nonWithdrawableBonus" field.

RegistrationTimestampFieldNumber
public const int RegistrationTimestampFieldNumber
value = ProtoOATrader.RegistrationTimestampFieldNumber

Field number for the "registrationTimestamp" field.

StopOutStrategyFieldNumber
public const int StopOutStrategyFieldNumber
value = ProtoOATrader.StopOutStrategyFieldNumber

Field number for the "stopOutStrategy" field.

SwapFreeFieldNumber
public const int SwapFreeFieldNumber
value = ProtoOATrader.SwapFreeFieldNumber

Field number for the "swapFree" field.

TotalMarginCalculationTypeFieldNumber
public const int TotalMarginCalculationTypeFieldNumber
value = ProtoOATrader.TotalMarginCalculationTypeFieldNumber

Field number for the "totalMarginCalculationType" field.

TraderLoginFieldNumber
public const int TraderLoginFieldNumber
value = ProtoOATrader.TraderLoginFieldNumber

Field number for the "traderLogin" field.