Skip to content
All library documents

FMZ Strategy Basics: APIs, Execution Loops, Backtesting, and Exchange Setup

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

Summary

This tutorial introduces the FMZ quantitative trading platform’s core workflow for writing automated strategies. It explains how REST requests differ from WebSocket subscriptions, how platform APIs are wrapped into a common interface, and how to choose among supported programming languages. It outlines the main strategy loop, initialization and exit hooks, error handling, debugging tools, and the selection of exchange and trading-pair objects, including switching pairs within a strategy.

The material is a platform primer, not a trading system: it teaches infrastructure and API usage but gives no market hypothesis, backtest results, or evidence that example strategies are profitable. Its examples illustrate periodic polling and basic order placement, while noting API rate limits and the option to build event-driven behavior with WebSockets. The tutorial also includes troubleshooting notes on network timeouts, invalid symbols, signatures, and other platform errors; platform behavior and API details can change, so readers should check current documentation before deployment.

Key ideas

  • FMZ wraps exchange APIs behind common interfaces and supports REST and WebSocket access patterns.
  • A typical bot uses a main loop with pauses, while WebSocket subscriptions can support event-driven execution.
  • Strategies can use multiple exchange and trading-pair objects or switch the active pair dynamically.
  • The platform provides lifecycle hooks, debugging support, and backtesting features.
  • API limits, network failures, and platform-specific errors must be handled in implementation.

Tags

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