FIX 4.4 Trading API - Java POC
The Java Proof of Concept (POC) demonstrates how to connect to PrimeXM’s FIX API. This resource is designed to provide you with a practical demonstration and a starting point for your integration process.
Java POC Key Features
Our Java POC covers the following key aspects:
- Establishing a Connection: Learn how to set up a connection to the PrimeXM FIX API using Java. This includes setting up the necessary sessions for pricing and trading data.
- Sending and Receiving Messages: Understand how to send and receive FIX messages, including subscribing and unsubscribing to currency pairs, placing different types of orders, and handling responses from the server.
- Error Handling and Troubleshooting: Get insights into handling common errors and troubleshooting connectivity issues. This includes understanding and managing sequence numbers, SenderCompID, and TargetCompID.
The Java POC can be downloaded from here.
Creating a Stream/Trade Connection
To establish a successful stream/trade connection with PrimeXM’s FIX API, you’ll need to define a FIX4.4 session configuration. This involves configuring a SessionSetting object with the necessary details:
- Target Server IP Address and Port Number
- Login Username and Password
- Sender and Target CompID
- Reset on Logon
- Socket Use SSL
All these configuration details are contained in the Connector Config Setting. Please ensure that these settings are correctly configured to establish a successful connection.
Troubleshooting
If you encounter any issues while connecting, please refer to the following checklist:
- Confirm connectivity by using Telnet to the provided target IP and ports.
- Ensure SSL is disabled for the Pricing Session and enabled for the Trading Session.
- Check the Sequence number reset settings for each session.
- Make sure the SenderCompID and TargetCompID are correctly set.
- Ensure your username and password are correctly entered.