Table of Contents

Class RtsHistoryMessageAdapter

Namespace
StockSharp.RtsHistory
Assembly
StockSharp.RtsHistory.dll

The message adapter for StockSharp.RtsHistory.

[MediaIcon("moex_logo.svg")]
[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.History|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks)]
public class RtsHistoryMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter, IAddressAdapter<string>
Inheritance
RtsHistoryMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

RtsHistoryMessageAdapter(IdGenerator)

Initializes a new instance of the RtsHistoryMessageAdapter.

public RtsHistoryMessageAdapter(IdGenerator transactionIdGenerator)

Parameters

transactionIdGenerator IdGenerator

Transaction id generator.

Fields

RtsMinAvailableTime

The earliest date in RTS, for which there are historical data.

public static readonly DateTime RtsMinAvailableTime

Field Value

DateTime

UxMinAvailableTime

The earliest date in UX, for which there are historical data.

public static readonly DateTime UxMinAvailableTime

Field Value

DateTime

Properties

Address

Server address.

public string Address { get; set; }

Property Value

string

DbfDirectory

The path to the folder with historical data in the DBF format.

public string DbfDirectory { get; set; }

Property Value

string

Remarks

If the value is an empty string, the data in the DBF format are not processed.

ExchangeBoard

Board info.

public string ExchangeBoard { get; set; }

Property Value

string

IsSystemOnly

To save only system trades. The default is enabled.

public bool IsSystemOnly { get; set; }

Property Value

bool

LoadEveningSession

Download evening session data.

public bool LoadEveningSession { get; set; }

Property Value

bool

Login

Login.

public string Login { get; set; }

Property Value

string

Password

Password.

public SecureString Password { get; set; }

Property Value

SecureString

SaveRtsStdCombinedOnly

To merge trades for RTS Standard instruments (trades for T+N are not divided by folders). The default is off.

public bool SaveRtsStdCombinedOnly { get; set; }

Property Value

bool

SaveRtsStdTrades

To save trades for RTS Standard instruments. The default is off.

public bool SaveRtsStdTrades { get; set; }

Property Value

bool

TimeZone

Market-data time zone.

public TimeZoneInfo TimeZone { get; set; }

Property Value

TimeZoneInfo

TxtDirectory

The path to the folder with historical data in CSV and Excel formats.

public string TxtDirectory { get; set; }

Property Value

string

Remarks

If the value is an empty string, the data in CSV and Excel formats are not processed.

Methods

GetHistoryStepSize(DataType, out TimeSpan)

public override TimeSpan GetHistoryStepSize(DataType dataType, out TimeSpan iterationInterval)

Parameters

dataType DataType
iterationInterval TimeSpan

Returns

TimeSpan

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.