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:

  1. Server Client - provides order management, positions, trade history, and broker status information
  2. Market Data Client - provides streaming and snapshot market data
  3. Strategy Engine Client - provides control over strategy lifecycle, including creating, destroying, starting, and stopping of strategies

Client Javadoc

MATP Server Client

MATP Market Data Client

MATP Strategy Engine Client

Samples

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

$ cd samples/client-test
$ mvn -PexecuteClient exec:java

To run the Market Data Client and the Strategy Engine Client, first, start a local instance of the Strategy Engine:

$ cd strategyagent
$ mvn -Pexecute exec:java

To see the Market Data Client, see samples/client-test/src/main/java/org/marketcetera/clienttest/MarketDataClientTest.java

for the Market Data Client:

$ cd samples/client-test
$ mvn -PexecuteMdClient exec:java

To see the Market Data Client, see samples/client-test/src/main/java/org/marketcetera/clienttest/SaClientTest.java

for the Strategy Engine Client:

$ cd samples/client-test
$ mvn -PexecuteSaClient exec:java

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.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues