DataType

StockSharp.Messages

Data type info.

Inherits: Equatable<DataType>

Implements: IPersistable

Properties

Arg
public object Arg { get; private set; }
value = dataType.Arg
dataType.Arg = value

The additional argument, associated with data. For example, candle argument.

Board
public static DataType Board { get; }
value = DataType.Board

Board info.

BoardState
public static DataType BoardState { get; }
value = DataType.BoardState

Board state.

CandlePnF
public static DataType CandlePnF { get; }
value = DataType.CandlePnF

PnFCandleMessage data type.

CandleRange
public static DataType CandleRange { get; }
value = DataType.CandleRange

RangeCandleMessage data type.

CandleRenko
public static DataType CandleRenko { get; }
value = DataType.CandleRenko

RenkoCandleMessage data type.

CandleSources
public static ISet<DataType> CandleSources { get; }
value = DataType.CandleSources

Possible data types that can be used as candles source.

CandleTick
public static DataType CandleTick { get; }
value = DataType.CandleTick

TickCandleMessage data type.

CandleTimeFrame
public static DataType CandleTimeFrame { get; }
value = DataType.CandleTimeFrame

TimeFrameCandleMessage data type.

CandleVolume
public static DataType CandleVolume { get; }
value = DataType.CandleVolume

VolumeCandleMessage data type.

Command
public static DataType Command { get; }
value = DataType.Command

CommandMessage.

DataTypeInfo
public static DataType DataTypeInfo { get; }
value = DataType.DataTypeInfo

Data type info.

FilteredMarketDepth
public static DataType FilteredMarketDepth { get; }
value = DataType.FilteredMarketDepth

Filtered market depth.

IsCandles
public bool IsCandles { get; }
value = dataType.IsCandles

Determines whether the MessageType is derived from CandleMessage.

IsCandleSource
public bool IsCandleSource { get; }
value = dataType.IsCandleSource

Is the data type can be used as candles compression source.

IsMarketData
public bool IsMarketData { get; }
value = dataType.IsMarketData

Determines whether the specified message type is market-data.

IsNonSecurity
public bool IsNonSecurity { get; }
value = dataType.IsNonSecurity

Is the data type never associated with security.

IsSecurityRequired
public bool IsSecurityRequired { get; }
value = dataType.IsSecurityRequired

Is the data type required security info.

IsTFCandles
public bool IsTFCandles { get; }
value = dataType.IsTFCandles

Determines whether the MessageType is TimeFrameCandleMessage.

Level1
public static DataType Level1 { get; }
value = DataType.Level1

Level1.

MarketDepth
public static DataType MarketDepth { get; }
value = DataType.MarketDepth

Market depth.

MessageType
public Type MessageType { get; private set; }
value = dataType.MessageType
dataType.MessageType = value

Message type.

Name
public string Name { get; set; }
value = dataType.Name
dataType.Name = value

Name.

News
public static DataType News { get; }
value = DataType.News

News.

OrderLog
public static DataType OrderLog { get; }
value = DataType.OrderLog

Order log.

PositionChanges
public static DataType PositionChanges { get; }
value = DataType.PositionChanges

Position changes.

RemoteFile
public static DataType RemoteFile { get; }
value = DataType.RemoteFile

RemoteFileMessage.

Securities
public static DataType Securities { get; }
value = DataType.Securities

Securities.

SecurityLegs
public static DataType SecurityLegs { get; }
value = DataType.SecurityLegs

Security legs.

SecurityMapping
public static DataType SecurityMapping { get; }
value = DataType.SecurityMapping

SecurityMappingMessage.

Ticks
public static DataType Ticks { get; }
value = DataType.Ticks

Ticks.

Transactions
public static DataType Transactions { get; }
value = DataType.Transactions

Transactions.

Users
public static DataType Users { get; }
value = DataType.Users

User info.

Methods

Clone
public override DataType Clone()
result = dataType.Clone()

Create a copy of DataType.

Returns: Copy.

Create
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.

Create``1
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.

FromSerializableString
public static DataType FromSerializableString(string value)
result = DataType.FromSerializableString(value)

Deserialize DataType from String.

value
The string representation of DataType.

Returns: DataType

GetHashCode
public override int GetHashCode()
result = dataType.GetHashCode()

Serves as a hash function for a particular type.

Returns: A hash code for the current Object.

Immutable
public DataType Immutable()
result = dataType.Immutable()

Make immutable.

Returns: Data type info.

Load
public void Load(SettingsStorage storage)
dataType.Load(storage)

Load settings.

storage
Settings storage.
OnEquals
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, .

RegisterAlias
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.
Save
public void Save(SettingsStorage storage)
dataType.Save(storage)

Save settings.

storage
Settings storage.
SetName
public DataType SetName(string name)
result = dataType.SetName(name)

Set Name.

name
Name.

Returns: Data type info.

TimeFrame
public static DataType TimeFrame(TimeSpan arg)
result = DataType.TimeFrame(arg)

Create data type info for TimeFrameCandleMessage.

arg
Candle arg.

Returns: Data type info.

ToSerializableString
public string ToSerializableString()
result = dataType.ToSerializableString()

Serialize DataType to String.

Returns: The string representation of DataType.

ToString
public override string ToString()
result = dataType.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.

TryGetAlias
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.

UnRegisterAlias
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.

UnRegisterAlias
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.