Market Data Gateway quickstart guide

Overview Copied

Use this quickstart to install Market Data Gateway (MD Gateway) on a Linux or Windows host, connect it to exchange market data feeds, and publish dataviews in Geneos.

The steps are the same for every feed. The type value supplied for the feed selects its transport, recovery, and channel settings. See Supported feeds and architecture.

For architecture, sizing, operations, dataviews, and message search, see the Market Data Gateway user guide. For YAML fields and examples, see the configuration reference.

Prerequisites Copied

Before you start, make sure you have:

MD Gateway includes a Java runtime. You do not need to install a system Java. For operating system support, host sizing, and ports, see Prerequisites in the user guide.

These are the ports used in this quickstart:

Port Purpose
8080 Status UI (optional)
7036 Geneos probe listener (example listenPort)
7041 Licence Daemon
9000 Optional QuestDB web console on loopback when search web console is enabled

Important

The Status UI has no authentication and listens on all interfaces. There is no bind-address setting. Leave it disabled unless you need it for diagnostics, and restrict access to its port with a firewall when you enable it.

Allow inbound traffic on the Geneos probe listen port from Geneos Gateway. For feed and recovery connectivity, see Network requirements in the user guide.

Install on a Linux host Copied

  1. Download and extract the Linux bundle, then move the extracted directory to /opt/md-gateway.

  2. Create the service user itrs and give that user ownership of /opt/md-gateway. The packaged unit runs as itrs from that directory. If you use a different user or install path, update the unit before you start the service.

  3. Edit /opt/md-gateway/config/md-gateway.yaml. Complete the settings in Configure MD Gateway.

  4. Install and start the packaged systemd unit.

    sudo cp /opt/md-gateway/service/md-gateway.service /etc/systemd/system/
    sudo systemctl daemon-reload
    sudo systemctl enable md-gateway
    sudo systemctl start md-gateway
    

    Stop the service with sudo systemctl stop md-gateway. For restart and status, see Start and stop.

For the complete extract, service-user, and ownership commands, see Install on Linux in the user guide.

Install on a Windows host Copied

  1. Download and extract the Windows bundle. For example:

    Expand-Archive md-gateway-*-windows-x64.zip -DestinationPath C:\
    

    The extracted folder is md-gateway-<package>-<version>-windows-x64. <package> is the package name in the archive you were given.

  2. Edit C:\md-gateway-<package>-<version>-windows-x64\config\md-gateway.yaml. Complete the settings in Configure MD Gateway.

  3. Start MD Gateway from Command Prompt:

    C:\md-gateway-<package>-<version>-windows-x64\bin\md-gateway.bat C:\md-gateway-<package>-<version>-windows-x64\config\md-gateway.yaml
    

    MD Gateway runs in the foreground. Keep the Command Prompt window open while it is running. Stop the foreground process with Ctrl+C.

  4. Optional: Register the launcher as a Windows service through a service manager such as NSSM. sc.exe create cannot host md-gateway.bat. Stop the service with nssm stop MDGateway.

For service registration notes, see Install on Windows in the user guide.

Configure MD Gateway Copied

Edit md-gateway.yaml, or restart after you change it.

Before you start, set at least:

Keep secrets out of the file. Use ${env:VAR_NAME} substitution for passwords, member IDs, and similar values. An unset variable with no default does not stop MD Gateway: the value becomes an empty string and only a WARN line is logged. A systemd service does not inherit your shell. Set those variables in the service environment: Environment= in a sudo systemctl edit md-gateway drop-in on Linux, or NSSM AppEnvironmentExtra on Windows. See Credential handling.

Example Geneos listen settings:

instrumentation:
  geneos:
    enabled: true
    listenPort: 7036
    probeName: MDGatewayProbe
    managedEntity: md-gateway
    samplerName: MDGateway

For complete field tables and examples, see Market Data Gateway configuration reference.

Connect to exchange feeds Copied

Point MD Gateway at each feed in markets[].

  1. Set the market type to the value supplied for the feed. That value selects the transport. Contact your ITRS account manager for the value.
  2. When that type is a multicast feed, set enabled: true on each channel you want to start, then set the multicast group, port, and network interface. Set reference: true on exactly one enabled channel. Add the retransmit and snapshot settings supplied for the feed. Each of those services runs only when its enabled flag is explicitly true. If omitted, the feature is disabled.
  3. When that type is a unicast session, set unicast.enabled: true with the host, port, and credentials on the single channel.
  4. Confirm that the host can reach the feed and that MD Gateway is receiving messages.

For multicast and unicast field tables, see Multicast channels and Unicast channels.

Verify the installation Copied

  1. Confirm that MD Gateway is running. On Linux, run systemctl status md-gateway. On Windows, check the Command Prompt window if you started MD Gateway in the foreground, or check the registered service.
  2. If the Status UI is enabled, open http://<md-gateway-host>:8080 and confirm that feeds are receiving messages. The UI has no authentication and listens on all interfaces, so open it only on a network you trust and restrict access to the port with a firewall.
  3. Confirm that Geneos Gateway can reach the probe listen port.

For health checks and start/stop commands, see Install and run MD Gateway in the user guide.

Publish dataviews to Geneos Copied

  1. In the Gateway Setup Editor, add a probe that specifies the MD Gateway host and listen port.
  2. Add a managed entity and sampler whose names match the YAML values. Define the sampler with the api-streams plugin.
  3. Connect Active Console to the Geneos Gateway, and then confirm that dataviews appear under the managed entity.

For probe XML, sampler XML, and TLS notes, see Configure the Gateway Setup Editor in the user guide.

Next steps Copied

After MD Gateway is running and feeds appear:

["Geneos"] ["Geneos > Market Data Gateway"] ["User Guide"]

Was this topic helpful?