Using FMZ’s Extension API for Robot Messaging and Monitoring
Summary
This tutorial explains how to call FMZ’s extension API from JavaScript. It walks through constructing requests, signing parameters with an MD5 hash, and calling API methods. The examples cover retrieving a node list, sending a message to another robot with CommandRobot, and collecting robot list and detail data for a recurring status display.
The messaging example illustrates sending structured trend-alert information between robots and receiving it with a polling loop. The monitoring example combines list and detail requests to display fields such as robot name, strategy, activity, and usage information in a table. The article also suggests using inter-robot heartbeat messages to detect robots that appear to be running but have become unresponsive. These are integration and operations patterns rather than trading strategies or performance tests. The examples require FMZ credentials and depend on the platform’s API behavior; users need to manage credentials securely and check current documentation when implementing them.
Key ideas
- FMZ extension API requests include method arguments, a nonce, access credentials, and a signature derived from the request parameters.
- CommandRobot can pass structured messages between robots, which can then be received by a running strategy.
- GetRobotList and GetRobotDetail can be combined to build a periodic robot status display.
- Heartbeat messages can help detect robots that are unresponsive despite appearing to run.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.