ProtoOASymbol
* Trading symbol entity.
Implements: IMessage<ProtoOASymbol>, IMessage, IEquatable<ProtoOASymbol>, IDeepCloneable<ProtoOASymbol>, IBufferMessage
Properties
public bool ChargeSwapAtWeekends { get; set; }
value = protoOASymbol.ChargeSwapAtWeekends
protoOASymbol.ChargeSwapAtWeekends = value
If enabled, SWAP will be charged for all days of the week, including Saturday and Sunday.
public long Commission { get; set; }
value = protoOASymbol.Commission
protoOASymbol.Commission = value
Commission base amount. Total commission depends on commissionType. Use preciseTradingCommissionRate.
public ProtoOACommissionType CommissionType { get; set; }
value = protoOASymbol.CommissionType
protoOASymbol.CommissionType = value
Commission type. See ProtoOACommissionType for details.
public int Digits { get; set; }
value = protoOASymbol.Digits
protoOASymbol.Digits = value
Number of price digits to be displayed.
public ProtoOASymbolDistanceType DistanceSetIn { get; set; }
value = protoOASymbol.DistanceSetIn
protoOASymbol.DistanceSetIn = value
Unit of distance measure for slDistance, tpDistance, gslDistance.
public bool EnableShortSelling { get; set; }
value = protoOASymbol.EnableShortSelling
protoOASymbol.EnableShortSelling = value
If TRUE then the short selling with the symbol is enabled.
public long GslCharge { get; set; }
value = protoOASymbol.GslCharge
protoOASymbol.GslCharge = value
Guaranteed stop loss fee.
public uint GslDistance { get; set; }
value = protoOASymbol.GslDistance
protoOASymbol.GslDistance = value
Minimum allowed distance between guaranteed stop loss and current market price.
public bool GuaranteedStopLoss { get; set; }
value = protoOASymbol.GuaranteedStopLoss
protoOASymbol.GuaranteedStopLoss = value
If TRUE then setting of guaranteedStopLoss is available for limited risk accounts.
public bool HasChargeSwapAtWeekends { get; }
value = protoOASymbol.HasChargeSwapAtWeekends
Gets whether the "chargeSwapAtWeekends" field is set
public bool HasCommission { get; }
value = protoOASymbol.HasCommission
Gets whether the "commission" field is set
public bool HasCommissionType { get; }
value = protoOASymbol.HasCommissionType
Gets whether the "commissionType" field is set
public bool HasDigits { get; }
value = protoOASymbol.HasDigits
Gets whether the "digits" field is set
public bool HasDistanceSetIn { get; }
value = protoOASymbol.HasDistanceSetIn
Gets whether the "distanceSetIn" field is set
public bool HasEnableShortSelling { get; }
value = protoOASymbol.HasEnableShortSelling
Gets whether the "enableShortSelling" field is set
public bool HasGslCharge { get; }
value = protoOASymbol.HasGslCharge
Gets whether the "gslCharge" field is set
public bool HasGslDistance { get; }
value = protoOASymbol.HasGslDistance
Gets whether the "gslDistance" field is set
public bool HasGuaranteedStopLoss { get; }
value = protoOASymbol.HasGuaranteedStopLoss
Gets whether the "guaranteedStopLoss" field is set
public bool HasLeverageId { get; }
value = protoOASymbol.HasLeverageId
Gets whether the "leverageId" field is set
public bool HasLotSize { get; }
value = protoOASymbol.HasLotSize
Gets whether the "lotSize" field is set
public bool HasMaxExposure { get; }
value = protoOASymbol.HasMaxExposure
Gets whether the "maxExposure" field is set
public bool HasMaxVolume { get; }
value = protoOASymbol.HasMaxVolume
Gets whether the "maxVolume" field is set
public bool HasMeasurementUnits { get; }
value = protoOASymbol.HasMeasurementUnits
Gets whether the "measurementUnits" field is set
public bool HasMinCommission { get; }
value = protoOASymbol.HasMinCommission
Gets whether the "minCommission" field is set
public bool HasMinCommissionAsset { get; }
value = protoOASymbol.HasMinCommissionAsset
Gets whether the "minCommissionAsset" field is set
public bool HasMinCommissionType { get; }
value = protoOASymbol.HasMinCommissionType
Gets whether the "minCommissionType" field is set
public bool HasMinVolume { get; }
value = protoOASymbol.HasMinVolume
Gets whether the "minVolume" field is set
public bool HasPipPosition { get; }
value = protoOASymbol.HasPipPosition
Gets whether the "pipPosition" field is set
public bool HasPnlConversionFeeRate { get; }
value = protoOASymbol.HasPnlConversionFeeRate
Gets whether the "pnlConversionFeeRate" field is set
public bool HasPreciseMinCommission { get; }
value = protoOASymbol.HasPreciseMinCommission
Gets whether the "preciseMinCommission" field is set
public bool HasPreciseTradingCommissionRate { get; }
value = protoOASymbol.HasPreciseTradingCommissionRate
Gets whether the "preciseTradingCommissionRate" field is set
public bool HasRolloverCommission { get; }
value = protoOASymbol.HasRolloverCommission
Gets whether the "rolloverCommission" field is set
public bool HasRolloverCommission3Days { get; }
value = protoOASymbol.HasRolloverCommission3Days
Gets whether the "rolloverCommission3Days" field is set
public bool HasScheduleTimeZone { get; }
value = protoOASymbol.HasScheduleTimeZone
Gets whether the "scheduleTimeZone" field is set
public bool HasSkipRolloverDays { get; }
value = protoOASymbol.HasSkipRolloverDays
Gets whether the "skipRolloverDays" field is set
public bool HasSkipSWAPPeriods { get; }
value = protoOASymbol.HasSkipSWAPPeriods
Gets whether the "skipSWAPPeriods" field is set
public bool HasSlDistance { get; }
value = protoOASymbol.HasSlDistance
Gets whether the "slDistance" field is set
public bool HasStepVolume { get; }
value = protoOASymbol.HasStepVolume
Gets whether the "stepVolume" field is set
public bool HasSwapCalculationType { get; }
value = protoOASymbol.HasSwapCalculationType
Gets whether the "swapCalculationType" field is set
public bool HasSwapLong { get; }
value = protoOASymbol.HasSwapLong
Gets whether the "swapLong" field is set
public bool HasSwapPeriod { get; }
value = protoOASymbol.HasSwapPeriod
Gets whether the "swapPeriod" field is set
public bool HasSwapRollover3Days { get; }
value = protoOASymbol.HasSwapRollover3Days
Gets whether the "swapRollover3Days" field is set
public bool HasSwapShort { get; }
value = protoOASymbol.HasSwapShort
Gets whether the "swapShort" field is set
public bool HasSwapTime { get; }
value = protoOASymbol.HasSwapTime
Gets whether the "swapTime" field is set
public bool HasSymbolId { get; }
value = protoOASymbol.HasSymbolId
Gets whether the "symbolId" field is set
public bool HasTpDistance { get; }
value = protoOASymbol.HasTpDistance
Gets whether the "tpDistance" field is set
public bool HasTradingMode { get; }
value = protoOASymbol.HasTradingMode
Gets whether the "tradingMode" field is set
public RepeatedField<ProtoOAHoliday> Holiday { get; }
value = protoOASymbol.Holiday
List of holidays for this symbol specified by broker.
public long LeverageId { get; set; }
value = protoOASymbol.LeverageId
protoOASymbol.LeverageId = value
The unique identifier of dynamic leverage entity. https://help.ctrader.com/ctrader/trading/dynamic-leverage
public long LotSize { get; set; }
value = protoOASymbol.LotSize
protoOASymbol.LotSize = value
Lot size of the Symbol (in cents).
public ulong MaxExposure { get; set; }
value = protoOASymbol.MaxExposure
protoOASymbol.MaxExposure = value
Value of max exposure per symbol, per account. Blocks execution if breached.
public long MaxVolume { get; set; }
value = protoOASymbol.MaxVolume
protoOASymbol.MaxVolume = value
Maximum allowed volume in cents for an order with a symbol.
public string MeasurementUnits { get; set; }
value = protoOASymbol.MeasurementUnits
protoOASymbol.MeasurementUnits = value
Specifies the units in which the base Asset of the Symbol is denominated.
public long MinCommission { get; set; }
value = protoOASymbol.MinCommission
protoOASymbol.MinCommission = value
Minimum commission amount per trade. Use preciseMinCommission.
public string MinCommissionAsset { get; set; }
value = protoOASymbol.MinCommissionAsset
protoOASymbol.MinCommissionAsset = value
Currency for minimum commission. (USD or quote currency).
public ProtoOAMinCommissionType MinCommissionType { get; set; }
value = protoOASymbol.MinCommissionType
protoOASymbol.MinCommissionType = value
Minimum commission Type. See ProtoOAMinCommissionType for details.
public long MinVolume { get; set; }
value = protoOASymbol.MinVolume
protoOASymbol.MinVolume = value
Minimum allowed volume in cents for an order with a symbol.
public int PipPosition { get; set; }
value = protoOASymbol.PipPosition
protoOASymbol.PipPosition = value
Pip position on digits.
public int PnlConversionFeeRate { get; set; }
value = protoOASymbol.PnlConversionFeeRate
protoOASymbol.PnlConversionFeeRate = value
Percentage (1 = 0.01%) of the realized Gross Profit, which will be paid by the Trader for any trade if the Quote Asset of the traded Symbol is not matched with the Deposit Asset.
public long PreciseMinCommission { get; set; }
value = protoOASymbol.PreciseMinCommission
protoOASymbol.PreciseMinCommission = value
Minimum commission amount per trade multiplied by 10^8.
public long PreciseTradingCommissionRate { get; set; }
value = protoOASymbol.PreciseTradingCommissionRate
protoOASymbol.PreciseTradingCommissionRate = value
Commission base amount. Total commission depends on commissionType: for non-percentage types it is multiplied by 10^8, for percentage of value commission type it is multiplied by 10^5.
public long RolloverCommission { get; set; }
value = protoOASymbol.RolloverCommission
protoOASymbol.RolloverCommission = value
Administrative Fee, charged instead of Swaps if the Account is marked as a "Shariah Compliant (Swap Free)". The Administrative Fee is charged daily as USD per current open volume of Position in lots. The Account charged in the Deposit currency.
public ProtoOADayOfWeek RolloverCommission3Days { get; set; }
value = protoOASymbol.RolloverCommission3Days
protoOASymbol.RolloverCommission3Days = value
Day of the week (in UTC) when Administrative Fee charge amount will be tripled. Applied only if RolloverChargePeriod = 0 or 1.
public RepeatedField<ProtoOAInterval> Schedule { get; }
value = protoOASymbol.Schedule
Symbol trading interval, specified in seconds starting from SUNDAY 00:00 in specified time zone.
public string ScheduleTimeZone { get; set; }
value = protoOASymbol.ScheduleTimeZone
protoOASymbol.ScheduleTimeZone = value
Time zone for the symbol trading intervals.
public int SkipRolloverDays { get; set; }
value = protoOASymbol.SkipRolloverDays
protoOASymbol.SkipRolloverDays = value
Initial period before the first rolloverCommission will be charged on the account.
public int SkipSWAPPeriods { get; set; }
value = protoOASymbol.SkipSWAPPeriods
protoOASymbol.SkipSWAPPeriods = value
Count of swapPeriods before the first SWAP charge.
public uint SlDistance { get; set; }
value = protoOASymbol.SlDistance
protoOASymbol.SlDistance = value
Minimum allowed distance between stop loss and current market price.
public long StepVolume { get; set; }
value = protoOASymbol.StepVolume
protoOASymbol.StepVolume = value
Step of the volume in cents for an order.
public ProtoOASwapCalculationType SwapCalculationType { get; set; }
value = protoOASymbol.SwapCalculationType
protoOASymbol.SwapCalculationType = value
Specifies type of SWAP computation as PIPS (0) or PERCENTAGE (1, annual, in percent).
public double SwapLong { get; set; }
value = protoOASymbol.SwapLong
protoOASymbol.SwapLong = value
SWAP charge for long positions.
public int SwapPeriod { get; set; }
value = protoOASymbol.SwapPeriod
protoOASymbol.SwapPeriod = value
Period of charging swaps in hours. 24 means swaps will be charged 1 time per day, 12 - every 12 hours, 8 - every 8 hours, etc.
public ProtoOADayOfWeek SwapRollover3Days { get; set; }
value = protoOASymbol.SwapRollover3Days
protoOASymbol.SwapRollover3Days = value
Day of the week when SWAP charge amount will be tripled. Doesn't impact Rollover Commission.
public double SwapShort { get; set; }
value = protoOASymbol.SwapShort
protoOASymbol.SwapShort = value
SWAP charge for short positions.
public int SwapTime { get; set; }
value = protoOASymbol.SwapTime
protoOASymbol.SwapTime = value
Time in minutes from 00:00 (UTC) when intraday swaps are charged for the first time.
public long SymbolId { get; set; }
value = protoOASymbol.SymbolId
protoOASymbol.SymbolId = value
The unique identifier of the symbol in specific server environment within cTrader platform. Different servers have different IDs.
public uint TpDistance { get; set; }
value = protoOASymbol.TpDistance
protoOASymbol.TpDistance = value
Minimum allowed distance between take profit and current market price.
public ProtoOATradingMode TradingMode { get; set; }
value = protoOASymbol.TradingMode
protoOASymbol.TradingMode = value
Rules for trading with the symbol. See ProtoOATradingMode for details.
Methods
public void ClearChargeSwapAtWeekends()
protoOASymbol.ClearChargeSwapAtWeekends()
Clears the value of the "chargeSwapAtWeekends" field
public void ClearCommission()
protoOASymbol.ClearCommission()
Clears the value of the "commission" field
public void ClearCommissionType()
protoOASymbol.ClearCommissionType()
Clears the value of the "commissionType" field
public void ClearDigits()
protoOASymbol.ClearDigits()
Clears the value of the "digits" field
public void ClearDistanceSetIn()
protoOASymbol.ClearDistanceSetIn()
Clears the value of the "distanceSetIn" field
public void ClearEnableShortSelling()
protoOASymbol.ClearEnableShortSelling()
Clears the value of the "enableShortSelling" field
public void ClearGslCharge()
protoOASymbol.ClearGslCharge()
Clears the value of the "gslCharge" field
public void ClearGslDistance()
protoOASymbol.ClearGslDistance()
Clears the value of the "gslDistance" field
public void ClearGuaranteedStopLoss()
protoOASymbol.ClearGuaranteedStopLoss()
Clears the value of the "guaranteedStopLoss" field
public void ClearLeverageId()
protoOASymbol.ClearLeverageId()
Clears the value of the "leverageId" field
public void ClearLotSize()
protoOASymbol.ClearLotSize()
Clears the value of the "lotSize" field
public void ClearMaxExposure()
protoOASymbol.ClearMaxExposure()
Clears the value of the "maxExposure" field
public void ClearMaxVolume()
protoOASymbol.ClearMaxVolume()
Clears the value of the "maxVolume" field
public void ClearMeasurementUnits()
protoOASymbol.ClearMeasurementUnits()
Clears the value of the "measurementUnits" field
public void ClearMinCommission()
protoOASymbol.ClearMinCommission()
Clears the value of the "minCommission" field
public void ClearMinCommissionAsset()
protoOASymbol.ClearMinCommissionAsset()
Clears the value of the "minCommissionAsset" field
public void ClearMinCommissionType()
protoOASymbol.ClearMinCommissionType()
Clears the value of the "minCommissionType" field
public void ClearMinVolume()
protoOASymbol.ClearMinVolume()
Clears the value of the "minVolume" field
public void ClearPipPosition()
protoOASymbol.ClearPipPosition()
Clears the value of the "pipPosition" field
public void ClearPnlConversionFeeRate()
protoOASymbol.ClearPnlConversionFeeRate()
Clears the value of the "pnlConversionFeeRate" field
public void ClearPreciseMinCommission()
protoOASymbol.ClearPreciseMinCommission()
Clears the value of the "preciseMinCommission" field
public void ClearPreciseTradingCommissionRate()
protoOASymbol.ClearPreciseTradingCommissionRate()
Clears the value of the "preciseTradingCommissionRate" field
public void ClearRolloverCommission()
protoOASymbol.ClearRolloverCommission()
Clears the value of the "rolloverCommission" field
public void ClearRolloverCommission3Days()
protoOASymbol.ClearRolloverCommission3Days()
Clears the value of the "rolloverCommission3Days" field
public void ClearScheduleTimeZone()
protoOASymbol.ClearScheduleTimeZone()
Clears the value of the "scheduleTimeZone" field
public void ClearSkipRolloverDays()
protoOASymbol.ClearSkipRolloverDays()
Clears the value of the "skipRolloverDays" field
public void ClearSkipSWAPPeriods()
protoOASymbol.ClearSkipSWAPPeriods()
Clears the value of the "skipSWAPPeriods" field
public void ClearSlDistance()
protoOASymbol.ClearSlDistance()
Clears the value of the "slDistance" field
public void ClearStepVolume()
protoOASymbol.ClearStepVolume()
Clears the value of the "stepVolume" field
public void ClearSwapCalculationType()
protoOASymbol.ClearSwapCalculationType()
Clears the value of the "swapCalculationType" field
public void ClearSwapLong()
protoOASymbol.ClearSwapLong()
Clears the value of the "swapLong" field
public void ClearSwapPeriod()
protoOASymbol.ClearSwapPeriod()
Clears the value of the "swapPeriod" field
public void ClearSwapRollover3Days()
protoOASymbol.ClearSwapRollover3Days()
Clears the value of the "swapRollover3Days" field
public void ClearSwapShort()
protoOASymbol.ClearSwapShort()
Clears the value of the "swapShort" field
public void ClearSwapTime()
protoOASymbol.ClearSwapTime()
Clears the value of the "swapTime" field
public void ClearSymbolId()
protoOASymbol.ClearSymbolId()
Clears the value of the "symbolId" field
public void ClearTpDistance()
protoOASymbol.ClearTpDistance()
Clears the value of the "tpDistance" field
public void ClearTradingMode()
protoOASymbol.ClearTradingMode()
Clears the value of the "tradingMode" field
Fields
public const int ChargeSwapAtWeekendsFieldNumber
value = ProtoOASymbol.ChargeSwapAtWeekendsFieldNumber
Field number for the "chargeSwapAtWeekends" field.
public const int CommissionFieldNumber
value = ProtoOASymbol.CommissionFieldNumber
Field number for the "commission" field.
public const int CommissionTypeFieldNumber
value = ProtoOASymbol.CommissionTypeFieldNumber
Field number for the "commissionType" field.
public const int DigitsFieldNumber
value = ProtoOASymbol.DigitsFieldNumber
Field number for the "digits" field.
public const int DistanceSetInFieldNumber
value = ProtoOASymbol.DistanceSetInFieldNumber
Field number for the "distanceSetIn" field.
public const int EnableShortSellingFieldNumber
value = ProtoOASymbol.EnableShortSellingFieldNumber
Field number for the "enableShortSelling" field.
public const int GslChargeFieldNumber
value = ProtoOASymbol.GslChargeFieldNumber
Field number for the "gslCharge" field.
public const int GslDistanceFieldNumber
value = ProtoOASymbol.GslDistanceFieldNumber
Field number for the "gslDistance" field.
public const int GuaranteedStopLossFieldNumber
value = ProtoOASymbol.GuaranteedStopLossFieldNumber
Field number for the "guaranteedStopLoss" field.
public const int HolidayFieldNumber
value = ProtoOASymbol.HolidayFieldNumber
Field number for the "holiday" field.
public const int LeverageIdFieldNumber
value = ProtoOASymbol.LeverageIdFieldNumber
Field number for the "leverageId" field.
public const int LotSizeFieldNumber
value = ProtoOASymbol.LotSizeFieldNumber
Field number for the "lotSize" field.
public const int MaxExposureFieldNumber
value = ProtoOASymbol.MaxExposureFieldNumber
Field number for the "maxExposure" field.
public const int MaxVolumeFieldNumber
value = ProtoOASymbol.MaxVolumeFieldNumber
Field number for the "maxVolume" field.
public const int MeasurementUnitsFieldNumber
value = ProtoOASymbol.MeasurementUnitsFieldNumber
Field number for the "measurementUnits" field.
public const int MinCommissionAssetFieldNumber
value = ProtoOASymbol.MinCommissionAssetFieldNumber
Field number for the "minCommissionAsset" field.
public const int MinCommissionFieldNumber
value = ProtoOASymbol.MinCommissionFieldNumber
Field number for the "minCommission" field.
public const int MinCommissionTypeFieldNumber
value = ProtoOASymbol.MinCommissionTypeFieldNumber
Field number for the "minCommissionType" field.
public const int MinVolumeFieldNumber
value = ProtoOASymbol.MinVolumeFieldNumber
Field number for the "minVolume" field.
public const int PipPositionFieldNumber
value = ProtoOASymbol.PipPositionFieldNumber
Field number for the "pipPosition" field.
public const int PnlConversionFeeRateFieldNumber
value = ProtoOASymbol.PnlConversionFeeRateFieldNumber
Field number for the "pnlConversionFeeRate" field.
public const int PreciseMinCommissionFieldNumber
value = ProtoOASymbol.PreciseMinCommissionFieldNumber
Field number for the "preciseMinCommission" field.
public const int PreciseTradingCommissionRateFieldNumber
value = ProtoOASymbol.PreciseTradingCommissionRateFieldNumber
Field number for the "preciseTradingCommissionRate" field.
public const int RolloverCommission3DaysFieldNumber
value = ProtoOASymbol.RolloverCommission3DaysFieldNumber
Field number for the "rolloverCommission3Days" field.
public const int RolloverCommissionFieldNumber
value = ProtoOASymbol.RolloverCommissionFieldNumber
Field number for the "rolloverCommission" field.
public const int ScheduleFieldNumber
value = ProtoOASymbol.ScheduleFieldNumber
Field number for the "schedule" field.
public const int ScheduleTimeZoneFieldNumber
value = ProtoOASymbol.ScheduleTimeZoneFieldNumber
Field number for the "scheduleTimeZone" field.
public const int SkipRolloverDaysFieldNumber
value = ProtoOASymbol.SkipRolloverDaysFieldNumber
Field number for the "skipRolloverDays" field.
public const int SkipSWAPPeriodsFieldNumber
value = ProtoOASymbol.SkipSWAPPeriodsFieldNumber
Field number for the "skipSWAPPeriods" field.
public const int SlDistanceFieldNumber
value = ProtoOASymbol.SlDistanceFieldNumber
Field number for the "slDistance" field.
public const int StepVolumeFieldNumber
value = ProtoOASymbol.StepVolumeFieldNumber
Field number for the "stepVolume" field.
public const int SwapCalculationTypeFieldNumber
value = ProtoOASymbol.SwapCalculationTypeFieldNumber
Field number for the "swapCalculationType" field.
public const int SwapLongFieldNumber
value = ProtoOASymbol.SwapLongFieldNumber
Field number for the "swapLong" field.
public const int SwapPeriodFieldNumber
value = ProtoOASymbol.SwapPeriodFieldNumber
Field number for the "swapPeriod" field.
public const int SwapRollover3DaysFieldNumber
value = ProtoOASymbol.SwapRollover3DaysFieldNumber
Field number for the "swapRollover3Days" field.
public const int SwapShortFieldNumber
value = ProtoOASymbol.SwapShortFieldNumber
Field number for the "swapShort" field.
public const int SwapTimeFieldNumber
value = ProtoOASymbol.SwapTimeFieldNumber
Field number for the "swapTime" field.
public const int SymbolIdFieldNumber
value = ProtoOASymbol.SymbolIdFieldNumber
Field number for the "symbolId" field.
public const int TpDistanceFieldNumber
value = ProtoOASymbol.TpDistanceFieldNumber
Field number for the "tpDistance" field.
public const int TradingModeFieldNumber
value = ProtoOASymbol.TradingModeFieldNumber
Field number for the "tradingMode" field.