when connecting to the Marketcetera Automated Trading Platform from an external system
The Marketcetera Automated Trading Platform makes its services available via RPC. The MATP build includes Java client JAR files that can be incorporated into a Java application to provide access to MATP services.
MATP services are available via three client APIs:
- Server Client - provides order management, positions, trade history, and broker status information
- Market Data Client - provides streaming and snapshot market data
- Strategy Engine Client - provides control over strategy lifecycle, including creating, destroying, starting, and stopping of strategies
Download and build the latest source.
Each client is demonstrated in a sample application included in the downloaded source.
To see the Server Client, see samples/client-test/src/main/java/org/marketcetera/clienttest/ClientTest.java
To run the Market Data Client and the Strategy Engine Client, first, start a local instance of the Strategy Engine:
To see the Market Data Client, see samples/client-test/src/main/java/org/marketcetera/clienttest/MarketDataClientTest.java
for the Market Data Client:
To see the Market Data Client, see samples/client-test/src/main/java/org/marketcetera/clienttest/SaClientTest.java
for the Strategy Engine Client:
Each sample client will keep running until you halt it with ^C.
After you've successfully built using Maven, you can find the complete list of necessary JARs to import into your own project in samples/client-test/target/output.