Table of Contents

Class HydraServer

Namespace
StockSharp.Hydra.Core.Server
Assembly
StockSharp.Hydra.Core.dll

Hydra FIX server host that exposes market data and metadata via an in-memory FIX server channel.

public class HydraServer : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
HydraServer
Implements
Inherited Members
Extension Methods

Constructors

HydraServer(Hydra, Func<string, PermissionCredentials>)

Initializes a new instance of the HydraServer class.

public HydraServer(Hydra hydra, Func<string, PermissionCredentials> getPermissions)

Parameters

hydra Hydra

The Hydra instance that owns this server.

getPermissions Func<string, PermissionCredentials>

A delegate that returns permissions for a given FIX session id.

Properties

EmulatorSettings

Gets the emulator settings used when serving live market data via FIX.

public MarketEmulatorSettings EmulatorSettings { get; }

Property Value

MarketEmulatorSettings

State

Gets the current channel state of the underlying FIX server.

public ChannelStates State { get; }

Property Value

ChannelStates

TransportSettings

Gets the transport (FIX server) settings.

public FixServerSettings TransportSettings { get; }

Property Value

FixServerSettings

Methods

Close()

Stops the FIX server and disposes the emulator instance.

public void Close()

DisposeManaged()

Disposes the managed resources. Override this method to add custom clean up of managed resources.

protected override void DisposeManaged()

Open()

Starts the FIX server and initializes the market emulator.

public void Open()

TrySendByFix(Message)

Sends a message to the in-memory FIX server channel. The method is thread-safe.

public void TrySendByFix(Message message)

Parameters

message Message

The message to send.

Events

ProcessCommand

Occurs when an external server command should be processed (Start/Stop/Restart).

public event Action<CommandTypes> ProcessCommand

Event Type

Action<CommandTypes>

StateChanged

Occurs when the server state has changed.

public event Action StateChanged

Event Type

Action