---
title: "Market Data Gateway quickstart guide"
description: "Install MD Gateway on Linux or Windows, connect it to exchange market data feeds, and publish dataviews to Geneos."
url: "https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-quickstart/index.html"
---
## Overview

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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#supported-feeds-and-architecture).

For architecture, sizing, operations, dataviews, and message search, see the [Market Data Gateway user guide](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html). For YAML fields and examples, see the [configuration reference](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html).

## Prerequisites

Before you start, make sure you have:

- An MD Gateway installation bundle for Linux or Windows from [ITRS Downloads](https://resources.itrsgroup.com/downloads).

   
**Important**

 The package must include every market `type` you configure. A `type` the package does not include fails startup with `Unknown market type`. 

- Network access to the exchange feeds you want to monitor, including any recovery services those feeds use.
- A Licence Daemon with a token named `plugin/md-gateway-<type>` for each market `type`, or `licensing.demoMode: true`, which grants every configured market locally for seven days.
- A Geneos Gateway and Active Console to view published dataviews.

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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#network-requirements) in the user guide.

## Install on a Linux host

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](#configure-md-gateway).
4. Install and start the packaged systemd unit.

   ```bash
   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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#start-and-stop).

For the complete extract, service-user, and ownership commands, see [Install on Linux](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#install-on-linux) in the user guide.

## Install on a Windows host

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

   ```powershell
   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](#configure-md-gateway).
3. Start MD Gateway from Command Prompt:

   ```bat
   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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#install-on-windows) in the user guide.

## Configure MD Gateway

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

Before you start, set at least:

- [`licensing`](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#licensing) — Licence Daemon host and port, or `demoMode: true`, which grants every configured market locally for seven days. Each market needs a Licence Daemon token named `plugin/md-gateway-<type>`.
- [`instrumentation.geneos`](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#geneos-instrumentation) — required. Set `enabled: true`, `listenPort`, `probeName`, `managedEntity`, and `samplerName`. These names must match the Geneos Gateway setup.
- [`markets[]`](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#markets) — at least one market with partitions and channels ([multicast with redundant channels](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#multicast-feeds), or a [unicast session](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#unicast-session)), unless you run an analysis-only [offline instance](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#offline-instance-and-log-ingestion) with `markets: []`. Use the `type` value your ITRS account manager provides.
- Optional [`statusServer`](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#status-server) — Status UI on port `8080` by default when enabled. It has no authentication and listens on all interfaces. Leave it disabled unless you need it, and restrict access to the port with a firewall when you enable it.
- Optional [`search`](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#search) — message search (requires extra host memory).
- Optional [`offlineIngest`](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#offline-ingest) — offline capture lane for the types supplied to you.

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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#credential-handling).

Example Geneos listen settings:

```yaml
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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html).


## Connect to exchange feeds

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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#multicast-feeds), 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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#multicast-channels) and [Unicast channels](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html#unicast-channels).

## Verify the installation

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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#install-and-run-md-gateway) in the user guide.

## Publish dataviews to Geneos

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](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#configure-the-gateway-setup-editor) in the user guide.

## Next steps

After MD Gateway is running and feeds appear:

- Review [published dataviews](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#published-dataviews) and include the shipped [rules](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#include-rules) in Geneos.
- Enable [message search](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#search-messages) and the [probe-published search commands](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#configure-search-commands) if you need to look up retained messages or run latency searches.
- Set up an [offline instance](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#offline-instance-and-log-ingestion) if you need to ingest supported capture files so you can search and compare them.
- Use the [Status UI](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#status-ui) for live diagnostics.
- Tune heap and host memory for your book count and search settings. See [Prerequisites](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#prerequisites) and [Configure JVM options](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#configure-jvm-options) in the user guide.
- Use the [configuration reference](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway-config-ref/index.html) when you add markets, recovery, or TLS.
- For package replacement, common checks, or removal, see [Upgrade MD Gateway](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#upgrade-md-gateway), [Troubleshoot MD Gateway](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#troubleshoot-md-gateway), and [Uninstall MD Gateway](https://docs.itrsgroup.com/docs/geneos/collection/md-gateway/1.0.0/user-guide/md-gateway/index.html#uninstall-md-gateway).


