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:
-
An MD Gateway installation bundle for Linux or Windows from ITRS Downloads.
Important
The package must include every markettypeyou configure. Atypethe package does not include fails startup withUnknown 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 markettype, orlicensing.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 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
-
Download and extract the Linux bundle, then move the extracted directory to
/opt/md-gateway. -
Create the service user
itrsand give that user ownership of/opt/md-gateway. The packaged unit runs asitrsfrom that directory. If you use a different user or install path, update the unit before you start the service. -
Edit
/opt/md-gateway/config/md-gateway.yaml. Complete the settings in Configure MD Gateway. -
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-gatewayStop 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
-
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. -
Edit
C:\md-gateway-<package>-<version>-windows-x64\config\md-gateway.yaml. Complete the settings in Configure MD Gateway. -
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.yamlMD Gateway runs in the foreground. Keep the Command Prompt window open while it is running. Stop the foreground process with
Ctrl+C. -
Optional: Register the launcher as a Windows service through a service manager such as NSSM.
sc.exe createcannot hostmd-gateway.bat. Stop the service withnssm 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:
licensing— Licence Daemon host and port, ordemoMode: true, which grants every configured market locally for seven days. Each market needs a Licence Daemon token namedplugin/md-gateway-<type>.instrumentation.geneos— required. Setenabled: true,listenPort,probeName,managedEntity, andsamplerName. These names must match the Geneos Gateway setup.markets[]— at least one market with partitions and channels (multicast with redundant channels, or a unicast session), unless you run an analysis-only offline instance withmarkets: []. Use thetypevalue your ITRS account manager provides.- Optional
statusServer— Status UI on port8080by 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— message search (requires extra host memory). - Optional
offlineIngest— 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.
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[].
- Set the market
typeto the value supplied for the feed. That value selects the transport. Contact your ITRS account manager for the value. - When that type is a multicast feed, set
enabled: trueon each channel you want to start, then set the multicast group, port, and network interface. Setreference: trueon exactly one enabled channel. Add the retransmit and snapshot settings supplied for the feed. Each of those services runs only when itsenabledflag is explicitlytrue. If omitted, the feature is disabled. - When that type is a unicast session, set
unicast.enabled: truewith the host, port, and credentials on the single channel. - 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
- 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. - If the Status UI is enabled, open
http://<md-gateway-host>:8080and 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. - 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
- In the Gateway Setup Editor, add a probe that specifies the MD Gateway host and listen port.
- Add a managed entity and sampler whose names match the YAML values. Define the sampler with the
api-streamsplugin. - 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:
- Review published dataviews and include the shipped rules in Geneos.
- Enable message search and the probe-published search commands if you need to look up retained messages or run latency searches.
- Set up an offline instance if you need to ingest supported capture files so you can search and compare them.
- Use the Status UI for live diagnostics.
- Tune heap and host memory for your book count and search settings. See Prerequisites and Configure JVM options in the user guide.
- Use the configuration reference when you add markets, recovery, or TLS.
- For package replacement, common checks, or removal, see Upgrade MD Gateway, Troubleshoot MD Gateway, and Uninstall MD Gateway.