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
Client Javadoc
MATP Server 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.
2 Comments
Unknown User (seyia)
I would love to simulate client requests via clients such as SOAPUI without having to use these clients in my app just yet.
How is this possible? I do not see any end points provided.
Colin DuPlantis
Actually, now that I think of it, the recommended way to connect now is to use RPC, not SOAP (corrected above). The shortest path to success is to just incorporate these libs.