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
AvailableDataInfo
public static DataType AvailableDataInfo { get; }
Property Value
Board
Board info.
public static DataType Board { get; }
Property Value
BoardState
Board state.
public static DataType BoardState { get; }
Property Value
CandlePnF
PnFCandleMessage data type.
public static DataType CandlePnF { get; }
Property Value
CandleRange
RangeCandleMessage data type.
public static DataType CandleRange { get; }
Property Value
CandleRenko
RenkoCandleMessage data type.
public static DataType CandleRenko { get; }
Property Value
CandleSources
Possible data types that can be used as candles source.
public static ISet<DataType> CandleSources { get; }
Property Value
CandleTick
TickCandleMessage data type.
public static DataType CandleTick { get; }
Property Value
CandleTimeFrame
TimeFrameCandleMessage data type.
public static DataType CandleTimeFrame { get; }
Property Value
CandleVolume
VolumeCandleMessage data type.
public static DataType CandleVolume { get; }
Property Value
Command
public static DataType Command { get; }
Property Value
FilteredMarketDepth
Filtered market depth.
public static DataType FilteredMarketDepth { get; }
Property Value
IsCandleSource
Is the data type can be used as candles compression source.
public bool IsCandleSource { get; }
Property Value
IsCandles
Determines whether the MessageType is derived from CandleMessage.
public bool IsCandles { get; }
Property Value
IsMarketData
Determines whether the specified message type is market-data.
public bool IsMarketData { get; }
Property Value
IsNonSecurity
Is the data type never associated with security.
public bool IsNonSecurity { get; }
Property Value
IsPortfolio
Determines whether the specified message type is derived from PortfolioMessage.
public bool IsPortfolio { get; }
Property Value
IsSecurityRequired
Is the data type required security info.
public bool IsSecurityRequired { get; }
Property Value
IsTFCandles
Determines whether the MessageType is TimeFrameCandleMessage.
public bool IsTFCandles { get; }
Property Value
Level1
Level1.
public static DataType Level1 { get; }
Property Value
MarketDepth
Market depth.
public static DataType MarketDepth { get; }
Property Value
MessageType
Message type.
[DataMember]
public Type MessageType { get; set; }
Property Value
Name
Name.
public string Name { get; set; }
Property Value
News
News.
public static DataType News { get; }
Property Value
OrderLog
Order log.
public static DataType OrderLog { get; }
Property Value
PositionChanges
Position changes.
public static DataType PositionChanges { get; }
Property Value
RemoteFile
public static DataType RemoteFile { get; }
Property Value
Securities
Securities.
public static DataType Securities { get; }
Property Value
SecurityLegs
Security legs.
public static DataType SecurityLegs { get; }
Property Value
SecurityMapping
public static DataType SecurityMapping { get; }
Property Value
Ticks
Ticks.
public static DataType Ticks { get; }
Property Value
TimeFrames
The candle time frames.
public static DataType TimeFrames { get; }
Property Value
Transactions
Transactions.
public static DataType Transactions { get; }
Property Value
Users
User info.
public static DataType Users { get; }
Property Value
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
TypeMessage type.
arg
objectThe 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
TypeMessage type.
arg
objectThe additional argument, associated with data. For example, candle argument.
isSecurityRequired
boolIs 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
objectThe additional argument, associated with data. For example, candle argument.
isSecurityRequired
boolIs 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
Immutable()
Make immutable.
public DataType Immutable()
Returns
- DataType
Data type info.
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnEquals(DataType)
Compare DataType on the equivalence.
protected override bool OnEquals(DataType other)
Parameters
other
DataTypeAnother value with which to compare.
Returns
Portfolio(string)
Create data type info for PortfolioMessage.
public static DataType Portfolio(string portfolioName)
Parameters
portfolioName
stringPortfolio name.
Returns
- DataType
Data type info.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SetName(string)
Set Name.
public DataType SetName(string name)
Parameters
name
stringName.
Returns
- DataType
Data type info.
TimeFrame(TimeSpan)
Create data type info for TimeFrameCandleMessage.
public static DataType TimeFrame(TimeSpan tf)
Parameters
tf
TimeSpanCandle arg.
Returns
- DataType
Data type info.
ToString()
public override string ToString()