Skip to content
All library documents

Designing an FMZ Position Synchronization System with Extended API

Article FMZ digest · Author: 发明者量化-小小梦

Summary

This installment proposes a two-part system for copying futures position changes from a leader account to follower accounts. A template library is embedded in the leader’s existing strategy to monitor long and short position amounts; when it detects a change, it sends a command through FMZ’s extended API to a follower’s synchronization server. This design aims to avoid requiring follower exchange credentials on the leader’s machine and avoids running a separate monitoring bot for the leader.

The article outlines configuration for up to five follower servers and illustrates position monitoring and signal delivery using a demo setup. The follower server shown here only logs incoming messages; placing orders is deferred to a later installment. The described monitor supports futures only, and the article does not present completed end-to-end follower execution, performance results, or handling for issues such as missed, duplicated, or delayed signals.

Key ideas

  • A template library can monitor position changes inside a leader’s existing strategy.
  • The leader sends follower servers trade signals through FMZ’s extended API.
  • Each follower is configured with a robot identifier and extended API credentials.
  • The demonstrated position monitor supports futures, while spot support is unfinished.
  • This installment stops at signal delivery and leaves follower order execution for later work.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.