Table of Contents

Class FixSession

Namespace
StockSharp.Server.Fix
Assembly
StockSharp.Server.Fix.dll

Session settings.

[TypeConverter(typeof(ExpandableObjectConverter))]
public class FixSession : BaseLogReceiver, IPersistable, IMessageListenerSession, ILogReceiver, ILogSource, IDisposable
Inheritance
FixSession
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

FixSession()

Initializes a new instance of the FixSession.

public FixSession()

Properties

Address

Server address.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Address", Description = "AddressDot", GroupName = "Session", Order = 1)]
public EndPoint Address { get; set; }

Property Value

EndPoint

DateParser

Date parser.

[Browsable(false)]
public FastDateTimeParser DateParser { get; set; }

Property Value

FastDateTimeParser

DateTimeParser

Date and time parser.

[Browsable(false)]
public FastDateTimeParser DateTimeParser { get; set; }

Property Value

FastDateTimeParser

Dialect

The FIX dialect. The default is DefaultFixDialect.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Dialect", Description = "FixDialectProtocol", GroupName = "Session", Order = 2)]
public Type Dialect { get; set; }

Property Value

Type

Encoding

The encoding used for data transmission.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Encoding", Description = "EncodingDesc", GroupName = "Session", Order = 6)]
public Encoding Encoding { get; set; }

Property Value

Encoding

Remarks

The default value is UTF8.

Format

Format.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Format", Description = "FixFormat", GroupName = "Session", Order = 10)]
public FixFormats Format { get; set; }

Property Value

FixFormats

HeartBeat

The interval of the connection availability check. The default is 1 minute.

[Display(ResourceType = typeof(LocalizedStrings), Name = "HeartBeat", Description = "HeartBeatDesc", GroupName = "Session", Order = 5)]
public TimeSpan HeartBeat { get; set; }

Property Value

TimeSpan

IncrementalDepthUpdates

To send changes by the order book. If disabled, the order book is sent entirely. The default is enabled.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Incremental", Description = "IncrementalDepthUpdates", GroupName = "Session", Order = 7)]
public bool IncrementalDepthUpdates { get; set; }

Property Value

bool

IsConnected

Is connected.

[Browsable(false)]
public virtual bool IsConnected { get; }

Property Value

bool

IsEnabled

Enabled.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Enabled", Description = "EnabledDot", GroupName = "Session", Order = 0)]
public bool IsEnabled { get; set; }

Property Value

bool

MaxReadBytes

Gets and sets the maximum allowed bytes per read.

[Display(ResourceType = typeof(LocalizedStrings), Name = "MaxReadBytes", Description = "MaxReadBytesDesc", GroupName = "Session", Order = 7)]
public int MaxReadBytes { get; set; }

Property Value

int

MaxWriteBytes

Gets and sets the maximum allowed bytes per write.

[Display(ResourceType = typeof(LocalizedStrings), Name = "MaxWriteBytes", Description = "MaxWriteBytesDesc", GroupName = "Session", Order = 8)]
public int MaxWriteBytes { get; set; }

Property Value

int

ReadTimeout

The timeout of reading data. The default value is Zero.

[Display(ResourceType = typeof(LocalizedStrings), Name = "ReadTimeOut", Description = "ReadTimeOutDesc", GroupName = "Session", Order = 19)]
public TimeSpan ReadTimeout { get; set; }

Property Value

TimeSpan

SenderCompId

Sender ID.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Sender", Description = "SenderCompId", GroupName = "Session", Order = 3)]
public string SenderCompId { get; set; }

Property Value

string

TargetCompId

Target ID.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Target", Description = "TargetCompId", GroupName = "Session", Order = 4)]
public string TargetCompId { get; set; }

Property Value

string

TimeParser

Time parser.

[Browsable(false)]
public FastTimeSpanParser TimeParser { get; set; }

Property Value

FastTimeSpanParser

WriteTimeout

The timeout of sending data. The default value is Zero.

[Display(ResourceType = typeof(LocalizedStrings), Name = "WriteTimeOut", Description = "WriteTimeOutDesc", GroupName = "Session", Order = 20)]
public TimeSpan WriteTimeout { get; set; }

Property Value

TimeSpan

YearMonthParser

Year and month parser.

[Browsable(false)]
public FastDateTimeParser YearMonthParser { get; set; }

Property Value

FastDateTimeParser

Methods

IncreaseBytesSent(int)

Increase BytesSent.

public virtual void IncreaseBytesSent(int count)

Parameters

count int

Value.

IncreaseErrorCount()

Increase ErrorCount.

public virtual void IncreaseErrorCount()

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ResetErrorCount()

Reset ErrorCount.

public virtual void ResetErrorCount()

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.