Welcome to FMZ Quant Trading Platform
Programming Languages
Key Security
Live Trading
Strategy Library
Docker
Exchange
Strategy Editor
Backtesting System
Backtesting System Modes
Impact of Backtest Data Granularity on Backtesting
Backtesting System Supports Multiple Programming Languages
Exchanges Supported by Backtesting System
Backtest System Parameter Optimization
Save Backtest Settings
Custom Data Source
Local Backtesting Engine
Backtest Page Shortcuts
Backtest Data Download
Backtest System Sharpe Ratio Algorithm
Strategy Entry Functions
Strategy Framework and API Functions
Template Library
Strategy Parameters
Interactive Controls
Options Trading
C++ Strategy Writing Guide
JavaScript Strategy Writing Guide
Web3
Built-in Libraries
Extended API Interface
MCP Service
Trading Terminal
Data Explorer
Alpha Factor Analysis Tool
General Protocol
Debugging Tool
Remote Editing
Import and Export of Complete Strategies
Multi-language Support
Live Trading and Strategy Grouping
Live Trading Display
Strategy Sharing and Renting
Live Trading Message Push
Common Causes of Live Trading Errors and Abnormal Exits
Exchange-Specific Notes
Trading Functions
| Function Name | Description |
|---|---|
| exchange.Buy | Submit a buy order. When placing futures contract orders, ensure the trading direction is set correctly; an error will occur if the trading direction does not match the trading function |
| exchange.Sell | Submit a sell order. When placing futures contract orders, ensure the trading direction is set correctly; an error will occur if the trading direction does not match the trading function |
| exchange.CreateOrder | Submit an order by specifying the trading instrument, trading direction, price, and quantity through parameters |
| exchange.ModifyOrder | Modify the price and quantity of a regular order, supports modifying other order attributes through additional parameters |
| exchange.ModifyConditionOrder | Modify the quantity and trigger conditions of a conditional order, supports modifying other conditional order attributes through additional parameters |
| exchange.CancelOrder | Cancel an order |
| exchange.GetOrder | Get order information, data structure is Order structure |
| exchange.GetOrders | Get unfilled orders, data structure is an array (list) of Order structures |
| exchange.GetHistoryOrders | Get historical orders for the current trading pair/contract, supports specifying specific trading instruments |
| exchange.SetPrecision | Set the price and order quantity precision for the exchange object, the system will automatically truncate excess digits after setting |
| exchange.SetRate | Set the exchange rate |
| exchange.IO | Used for other interface calls related to the exchange object |
| exchange.Log | Output and record trading logs without actually placing orders |
| exchange.Encode | Signature encryption calculation |
| exchange.Go | Multi-threaded asynchronous support function |
| exchange.GetAccount | Get account information |
| exchange.GetAssets | Request exchange account asset information |
| exchange.GetName | Get the name of the exchange object |
| exchange.GetLabel | Get the label of the exchange object |
| exchange.GetCurrency | Get the current trading pair |
| exchange.SetCurrency | Switch trading pair |
| exchange.GetQuoteCurrency | Get the quote currency name of the current trading pair |