Getting Started with GTNet
The implementation of GTNet is not yet complete. This documentation describes the planned and partially implemented functionality.
Work in Progress
Prerequisites
To participate in GTNet, your own Grafioschtrader server must be accessible from outside via HTTPS. Ensure that your server is properly configured for machine-to-machine (M2M) communication. If you encounter issues with external connectivity, consult the Problem Solving Guide in the wiki.
Step 1: Enable GTNet in Global Settings
First, activate GTNet functionality via the Global Settings GTNet:
- Set g.gnet.use to a value greater than 0 to enable GTNet
- Optionally enable g.gnet.use.log to track data exchanges
Step 2: Register Your Own Instance
Before communicating with other participants, you must register your own server in the GTNet Setup view:
- Open the GTNet Setup view
- Create an entry for your own server with your domain URL
- After saving, the system stores your instance ID in the global setting g.gnet.my.entry.id
Tip
If you are migrating an existing database to a new server, you should export the GTNet data on the old server before migration and then import it on the new server. This preserves authentication tokens, peer connections, and message history. See Export and Import of GTNet Data for details.
Step 3: Add Remote Instances
Add one or more remote GTNet instances to establish communication:
- In the GTNet Setup view, add entries for remote servers
- Recommendation: Prefer counterparts operating in “Push Open” mode, as they maintain an active data pool and enable bidirectional exchange without requiring local instruments
- Configure the daily query limit and other settings as needed
Step 4: Establish Initial Connection
Request data exchange directly, which automatically handles the handshake process:
- Select the remote server entry
- Use the context menu to send a Request for Data Exchange message
- The system automatically performs the handshake and token exchange if this is the first contact
- Wait for the response (acceptance or rejection)
- Once accepted, the data exchange is activated and authentication tokens are stored for future communication
Step 5: Configure Automatic Answers (Recommended)
To avoid manually responding to every incoming request, configure automatic response rules in the Automatic Answer view:
- Define rules for different message types (e.g., first contact, data exchange requests)
- Set conditions using variables like time of day, daily request count, or domain patterns
- Specify whether to accept or reject requests automatically
- Configure waiting times after rejections to prevent repeated requests
Tip
Without automatic answer rules, every incoming request requires manual approval by the administrator. Setting up appropriate rules significantly reduces administrative overhead.
Step 6: Configure Securities for Exchange
Define which instruments should participate in data exchange:
- Open the Exchange Price Data view
- For each security or currency pair, configure the four exchange options:
- Receive intraday price
- Receive historical price data
- Send intraday prices
- Send historical price data
- Save your changes
What Comes Next
Once the exchange is running, Monitoring GTNet shows where to see whether data is actually flowing, and with whom.