DataType
Data type info.
Inherits: Equatable<DataType>
Implements: IPersistable
Properties
public object Arg { get; private set; }
value = dataType.Arg
dataType.Arg = value
The additional argument, associated with data. For example, candle argument.
public static DataType CandlePnF { get; }
value = DataType.CandlePnF
PnFCandleMessage data type.
public static DataType CandleRange { get; }
value = DataType.CandleRange
RangeCandleMessage data type.
public static DataType CandleRenko { get; }
value = DataType.CandleRenko
RenkoCandleMessage data type.
public static ISet<DataType> CandleSources { get; }
value = DataType.CandleSources
Possible data types that can be used as candles source.
public static DataType CandleTick { get; }
value = DataType.CandleTick
TickCandleMessage data type.
public static DataType CandleTimeFrame { get; }
value = DataType.CandleTimeFrame
TimeFrameCandleMessage data type.
public static DataType CandleVolume { get; }
value = DataType.CandleVolume
VolumeCandleMessage data type.
public static DataType DataTypeInfo { get; }
value = DataType.DataTypeInfo
Data type info.
public static DataType FilteredMarketDepth { get; }
value = DataType.FilteredMarketDepth
Filtered market depth.
public bool IsCandles { get; }
value = dataType.IsCandles
Determines whether the MessageType is derived from CandleMessage.
public bool IsCandleSource { get; }
value = dataType.IsCandleSource
Is the data type can be used as candles compression source.
public bool IsMarketData { get; }
value = dataType.IsMarketData
Determines whether the specified message type is market-data.
public bool IsNonSecurity { get; }
value = dataType.IsNonSecurity
Is the data type never associated with security.
public bool IsSecurityRequired { get; }
value = dataType.IsSecurityRequired
Is the data type required security info.
public bool IsTFCandles { get; }
value = dataType.IsTFCandles
Determines whether the MessageType is TimeFrameCandleMessage.
public Type MessageType { get; private set; }
value = dataType.MessageType
dataType.MessageType = value
Message type.
public static DataType PositionChanges { get; }
value = DataType.PositionChanges
Position changes.
public static DataType RemoteFile { get; }
value = DataType.RemoteFile
RemoteFileMessage.
public static DataType SecurityLegs { get; }
value = DataType.SecurityLegs
Security legs.
public static DataType SecurityMapping { get; }
value = DataType.SecurityMapping
SecurityMappingMessage.
public static DataType Transactions { get; }
value = DataType.Transactions
Transactions.
Methods
public override DataType Clone()
result = dataType.Clone()
Create a copy of DataType.
Returns: Copy.
public static DataType Create(Type messageType, object arg, bool? isSecurityRequired)
result = DataType.Create(messageType, arg, isSecurityRequired)
Initializes a new instance of the DataType.
- messageType
- Message type.
- arg
- The additional argument, associated with data. For example, candle argument.
- isSecurityRequired
- Is the data type required security info.
Returns: Data type info.
public static DataType Create<TMessage>(object arg, bool? isSecurityRequired)
result = DataType.Create(arg, isSecurityRequired)
Initializes a new instance of the DataType.
- arg
- The additional argument, associated with data. For example, candle argument.
- isSecurityRequired
- Is the data type required security info.
Returns: Data type info.
public static DataType FromSerializableString(string value)
result = DataType.FromSerializableString(value)
Deserialize DataType from String.
- value
- The string representation of DataType.
Returns: DataType
public override int GetHashCode()
result = dataType.GetHashCode()
Serves as a hash function for a particular type.
Returns: A hash code for the current Object.
public DataType Immutable()
result = dataType.Immutable()
Make immutable.
Returns: Data type info.
public void Load(SettingsStorage storage)
dataType.Load(storage)
Load settings.
- storage
- Settings storage.
protected override bool OnEquals(DataType other)
result = dataType.OnEquals(other)
Compare DataType on the equivalence.
- other
- Another value with which to compare.
Returns: , if the specified object is equal to the current object, otherwise, .
public static void RegisterAlias(string alias, DataType dataType)
DataType.RegisterAlias(alias, dataType)
Register or replace alias for a specific DataType instance.
- alias
- Alias string. Case-insensitive.
- dataType
- Target data type.
public void Save(SettingsStorage storage)
dataType.Save(storage)
Save settings.
- storage
- Settings storage.
public DataType SetName(string name)
result = dataType.SetName(name)
Set Name.
- name
- Name.
Returns: Data type info.
public static DataType TimeFrame(TimeSpan arg)
result = DataType.TimeFrame(arg)
Create data type info for TimeFrameCandleMessage.
- arg
- Candle arg.
Returns: Data type info.
public string ToSerializableString()
result = dataType.ToSerializableString()
Serialize DataType to String.
Returns: The string representation of DataType.
public override string ToString()
result = dataType.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.
public static bool TryGetAlias(DataType dataType, string alias)
result = DataType.TryGetAlias(dataType, alias)
Try get an alias for the specified DataType if any exists.
- dataType
- Data type.
- alias
- Alias string.
Returns: true if alias exists; otherwise false.
public static bool UnRegisterAlias(string alias)
result = DataType.UnRegisterAlias(alias)
Try to remove a previously registered alias by name.
- alias
- Alias to remove.
Returns: true if alias was removed; otherwise false.
public static bool UnRegisterAlias(DataType dataType)
result = DataType.UnRegisterAlias(dataType)
Try to remove a previously registered alias by value.
- dataType
- Data type whose alias to remove.
Returns: true if alias was removed; otherwise false.