Table of Contents

Class DataType

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

Data type info.

[DataContract]
public class DataType : Equatable<DataType>, IPersistable
Inheritance
DataType
Implements
IPersistable
Extension Methods

Constructors

DataType()

public DataType()

Properties

Arg

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

[DataMember]
public object Arg { get; set; }

Property Value

object

Board

Board info.

public static DataType Board { get; }

Property Value

DataType

BoardState

Board state.

public static DataType BoardState { get; }

Property Value

DataType

CandlePnF

PnFCandleMessage data type.

public static DataType CandlePnF { get; }

Property Value

DataType

CandleRange

RangeCandleMessage data type.

public static DataType CandleRange { get; }

Property Value

DataType

CandleRenko

RenkoCandleMessage data type.

public static DataType CandleRenko { get; }

Property Value

DataType

CandleSources

Possible data types that can be used as candles source.

public static ISet<DataType> CandleSources { get; }

Property Value

ISet<DataType>

CandleTick

TickCandleMessage data type.

public static DataType CandleTick { get; }

Property Value

DataType

CandleTimeFrame

public static DataType CandleTimeFrame { get; }

Property Value

DataType

CandleVolume

public static DataType CandleVolume { get; }

Property Value

DataType

Command

public static DataType Command { get; }

Property Value

DataType

FilteredMarketDepth

Filtered market depth.

public static DataType FilteredMarketDepth { get; }

Property Value

DataType

IsCandleSource

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

public bool IsCandleSource { get; }

Property Value

bool

IsCandles

Determines whether the MessageType is derived from CandleMessage.

public bool IsCandles { get; }

Property Value

bool

IsMarketData

Determines whether the specified message type is market-data.

public bool IsMarketData { get; }

Property Value

bool

IsNonSecurity

Is the data type never associated with security.

public bool IsNonSecurity { get; }

Property Value

bool

IsPortfolio

Determines whether the specified message type is derived from PortfolioMessage.

public bool IsPortfolio { get; }

Property Value

bool

IsSecurityRequired

Is the data type required security info.

public bool IsSecurityRequired { get; }

Property Value

bool

IsTFCandles

Determines whether the MessageType is TimeFrameCandleMessage.

public bool IsTFCandles { get; }

Property Value

bool

Level1

Level1.

public static DataType Level1 { get; }

Property Value

DataType

MarketDepth

Market depth.

public static DataType MarketDepth { get; }

Property Value

DataType

MessageType

Message type.

[DataMember]
public Type MessageType { get; set; }

Property Value

Type

Name

Name.

public string Name { get; set; }

Property Value

string

News

News.

public static DataType News { get; }

Property Value

DataType

OrderLog

Order log.

public static DataType OrderLog { get; }

Property Value

DataType

PositionChanges

Position changes.

public static DataType PositionChanges { get; }

Property Value

DataType

Securities

Securities.

public static DataType Securities { get; }

Property Value

DataType

SecurityLegs

Security legs.

public static DataType SecurityLegs { get; }

Property Value

DataType

Ticks

Ticks.

public static DataType Ticks { get; }

Property Value

DataType

TimeFrames

The candle time frames.

public static DataType TimeFrames { get; }

Property Value

DataType

Transactions

Transactions.

public static DataType Transactions { get; }

Property Value

DataType

Users

User info.

public static DataType Users { get; }

Property Value

DataType

Methods

Clone()

Create a copy of DataType.

public override DataType Clone()

Returns

DataType

Copy.

Create(Type, object)

Initializes a new instance of the DataType.

public static DataType Create(Type messageType, object arg)

Parameters

messageType Type

Message type.

arg object

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

Returns

DataType

Data type info.

Create(Type, object, bool)

Initializes a new instance of the DataType.

public static DataType Create(Type messageType, object arg, bool isSecurityRequired)

Parameters

messageType Type

Message type.

arg object

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

isSecurityRequired bool

Is the data type required security info.

Returns

DataType

Data type info.

Create<TMessage>(object, bool)

Initializes a new instance of the DataType.

public static DataType Create<TMessage>(object arg = null, bool isSecurityRequired = false)

Parameters

arg object

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

isSecurityRequired bool

Is the data type required security info.

Returns

DataType

Data type info.

Type Parameters

TMessage

Message type.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Immutable()

Make immutable.

public DataType Immutable()

Returns

DataType

Data type info.

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnEquals(DataType)

Compare DataType on the equivalence.

protected override bool OnEquals(DataType other)

Parameters

other DataType

Another value with which to compare.

Returns

bool

true, if the specified object is equal to the current object, otherwise, false.

Portfolio(string)

Create data type info for PortfolioMessage.

public static DataType Portfolio(string portfolioName)

Parameters

portfolioName string

Portfolio name.

Returns

DataType

Data type info.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

SetName(string)

Set Name.

public DataType SetName(string name)

Parameters

name string

Name.

Returns

DataType

Data type info.

TimeFrame(TimeSpan)

Create data type info for TimeFrameCandleMessage.

public static DataType TimeFrame(TimeSpan tf)

Parameters

tf TimeSpan

Candle arg.

Returns

DataType

Data type info.

ToString()

public override string ToString()

Returns

string