Class DataType
Тип данных.
Implements
Namespace: StockSharp.Messages
Assembly: StockSharp.Messages.dll
Syntax
public class DataType : Equatable<DataType>, IPersistable
Constructors
DataType()
Declaration
public DataType()
Properties
Adapters
Adapters.
Declaration
public static DataType Adapters { get; }
Property Value
Type | Description |
---|---|
DataType |
Arg
Дополнительный аргумент, ассоциированный с типом данных. Например, параметр свечи.
Declaration
public object Arg { get; set; }
Property Value
Type | Description |
---|---|
Object |
Board
Board info.
Declaration
public static DataType Board { get; }
Property Value
Type | Description |
---|---|
DataType |
BoardState
Board state.
Declaration
public static DataType BoardState { get; }
Property Value
Type | Description |
---|---|
DataType |
CandlePnF
PnFCandleMessage data type.
Declaration
public static DataType CandlePnF { get; }
Property Value
Type | Description |
---|---|
DataType |
CandleRange
RangeCandleMessage data type.
Declaration
public static DataType CandleRange { get; }
Property Value
Type | Description |
---|---|
DataType |
CandleRenko
RenkoCandleMessage data type.
Declaration
public static DataType CandleRenko { get; }
Property Value
Type | Description |
---|---|
DataType |
CandleSources
Возможные типы данных, которые могут быть использованы как источник для свечей.
Declaration
public static ISet<DataType> CandleSources { get; }
Property Value
Type | Description |
---|---|
ISet<DataType> |
CandleTick
TickCandleMessage data type.
Declaration
public static DataType CandleTick { get; }
Property Value
Type | Description |
---|---|
DataType |
CandleTimeFrame
TimeFrameCandleMessage data type.
Declaration
public static DataType CandleTimeFrame { get; }
Property Value
Type | Description |
---|---|
DataType |
CandleVolume
VolumeCandleMessage data type.
Declaration
public static DataType CandleVolume { get; }
Property Value
Type | Description |
---|---|
DataType |
Command
Declaration
public static DataType Command { get; }
Property Value
Type | Description |
---|---|
DataType |
FilteredMarketDepth
Filtered market depth.
Declaration
public static DataType FilteredMarketDepth { get; }
Property Value
Type | Description |
---|---|
DataType |
IsCandles
Определить, что тип сообщения наследуется от CandleMessage.
Declaration
public bool IsCandles { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsCandleSource
Is the data type can be used as candles compression source.
Declaration
public bool IsCandleSource { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsMarketData
Определить, является ли указанные тип маркет-данными.
Declaration
public bool IsMarketData { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsPortfolio
Определить, что тип сообщения наследуется от PortfolioMessage.
Declaration
public bool IsPortfolio { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsSecurityRequired
Необходим ли для типа данных информация об инструменте.
Declaration
public bool IsSecurityRequired { get; }
Property Value
Type | Description |
---|---|
Boolean |
Level1
Level1.
Declaration
public static DataType Level1 { get; }
Property Value
Type | Description |
---|---|
DataType |
MarketDepth
Market depth.
Declaration
public static DataType MarketDepth { get; }
Property Value
Type | Description |
---|---|
DataType |
MessageType
Тип сообщения.
Declaration
public Type MessageType { get; set; }
Property Value
Type | Description |
---|---|
Type |
Name
Name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
News
News.
Declaration
public static DataType News { get; }
Property Value
Type | Description |
---|---|
DataType |
OrderLog
Строчки.
Declaration
public static DataType OrderLog { get; }
Property Value
Type | Description |
---|---|
DataType |
PortfolioRoute
Portfolio route.
Declaration
public static DataType PortfolioRoute { get; }
Property Value
Type | Description |
---|---|
DataType |
PositionChanges
Изменения позиций.
Declaration
public static DataType PositionChanges { get; }
Property Value
Type | Description |
---|---|
DataType |
Securities
Securities.
Declaration
public static DataType Securities { get; }
Property Value
Type | Description |
---|---|
DataType |
SecurityLegs
Ноги инструмента.
Declaration
public static DataType SecurityLegs { get; }
Property Value
Type | Description |
---|---|
DataType |
SecurityMapping
Security mapping.
Declaration
public static DataType SecurityMapping { get; }
Property Value
Type | Description |
---|---|
DataType |
SecurityRoute
Security route.
Declaration
public static DataType SecurityRoute { get; }
Property Value
Type | Description |
---|---|
DataType |
Ticks
Ticks.
Declaration
public static DataType Ticks { get; }
Property Value
Type | Description |
---|---|
DataType |
TimeFrames
Тайм-фремы свечи.
Declaration
public static DataType TimeFrames { get; }
Property Value
Type | Description |
---|---|
DataType |
Transactions
Transactions.
Declaration
public static DataType Transactions { get; }
Property Value
Type | Description |
---|---|
DataType |
Users
Информация о пользователе.
Declaration
public static DataType Users { get; }
Property Value
Type | Description |
---|---|
DataType |
Methods
Clone()
Создать копию DataType.
Declaration
public override DataType Clone()
Returns
Type | Description |
---|---|
DataType | Копия объекта. |
Create(Type, Object)
Создать DataType.
Declaration
public static DataType Create(Type messageType, object arg)
Parameters
Type | Name | Description |
---|---|---|
Type | messageType | Тип сообщения. |
Object | arg | Дополнительный аргумент, ассоциированный с типом данных. Например, параметр свечи. |
Returns
Type | Description |
---|---|
DataType | Тип данных. |
Create(Type, Object, Boolean)
Создать DataType.
Declaration
public static DataType Create(Type messageType, object arg, bool isSecurityRequired)
Parameters
Type | Name | Description |
---|---|---|
Type | messageType | Тип сообщения. |
Object | arg | Дополнительный аргумент, ассоциированный с типом данных. Например, параметр свечи. |
Boolean | isSecurityRequired | Необходим ли для типа данных информация об инструменте. |
Returns
Type | Description |
---|---|
DataType | Тип данных. |
GetHashCode()
Получить хэш-код для определенного типа.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Хэш-код Object. |
Immutable()
Make immutable.
Declaration
public DataType Immutable()
Returns
Type | Description |
---|---|
DataType | Тип данных. |
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
OnEquals(DataType)
Сравнить DataType на эквивалентность.
Declaration
protected override bool OnEquals(DataType other)
Parameters
Type | Name | Description |
---|---|---|
DataType | other | Другое значение, с которым необходимо сравнивать. |
Returns
Type | Description |
---|---|
Boolean | true, если другое значение равно текущему, иначе, false. |
Portfolio(String)
Создать информацию о данных для PortfolioMessage.
Declaration
public static DataType Portfolio(string portfolioName)
Parameters
Type | Name | Description |
---|---|---|
String | portfolioName | Имя портфеля. |
Returns
Type | Description |
---|---|
DataType | Тип данных. |
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
SetName(String)
Set Name.
Declaration
public DataType SetName(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name. |
Returns
Type | Description |
---|---|
DataType | Тип данных. |
TimeFrame(TimeSpan)
Создать информацию о данных для TimeFrameCandleMessage.
Declaration
public static DataType TimeFrame(TimeSpan tf)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | tf | Параметр свечи. |
Returns
Type | Description |
---|---|
DataType | Тип данных. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |