A Beginner’s Guide to FMZ Quant Data, Indicator, and Order APIs
Summary
This tutorial introduces APIs as documented ways to access software functions, using a restaurant menu as an analogy. It explains basic M-language expressions for reading bar prices and volume, referring to earlier periods, calculating moving averages, detecting crosses, and issuing long or short position commands. It also introduces JavaScript calls for obtaining market data, account and position information, setting a contract, placing orders, logging messages, and pausing execution.
Examples show how values are assigned and how functions take parameters, followed by exercises that ask readers to form a moving-average crossover and log account information. The material is an orientation to a particular platform’s interfaces rather than a complete strategy or API reference. Some explanations may be imprecise, and trading calls depend on platform configuration and exchange behavior. It provides no evidence about strategy performance, execution quality, or risk management; readers need the platform documentation for exact semantics and constraints.
Key ideas
- The tutorial explains APIs as documented functions that let a program access platform capabilities.
- M-language examples cover bar data, moving averages, cross detection, and position commands.
- JavaScript examples cover market data, account and position queries, order calls, logs, and pauses.
- The examples are introductory and do not replace the platform’s full API documentation.
- The chapter teaches interface usage, not a tested trading strategy or risk framework.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.