Type/to search
Welcome to FMZ Quant Trading Platform
Programming Languages
JavaScript
TypeScript
Python
C++
MyLanguage
PINE Language
Blockly Visual Programming
Workflow
Key Security
Live Trading
Strategy Library
Docker
Deploy Docker
One-Click Docker Rental
Manual Deployment of Bot
Docker Operation Precautions
Global IP Address Specification
Command Line Parameters for Bot Program
Live Trading Data Migration
Docker Monitor
Exchange
Strategy Editor
Backtesting System
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

The Exchange page is used to manage and display currently configured exchanges. In the FMZ Quant Trading Platform, "Exchange" is a core concept that refers to an object containing API key configurations, communication protocols, and interface encapsulations for fund accounts that can be operated by strategy programs.

On the Exchange Management page, click the "Add Exchange" button to navigate to the Add Exchange page, where you can select and fill in configuration information according to your needs. All configuration information is encrypted locally and stored on the FMZ Quant Trading Platform, so the platform does not record any plaintext data.

Exchange Object
Configured exchanges correspond to the exchange object at the strategy code level. For details, please refer to exchange in the "Syntax Manual".
When configuring backtesting or live trading, you can add multiple exchanges. Therefore, at the strategy code level, there exists an exchanges object array (array of exchange objects). For details, please refer to exchanges in the "Syntax Manual".

Using Exchange Objects
In strategy code, you can call exchange objects to perform operations such as account queries, market data retrieval, order placement, and order cancellation. Using JavaScript as an example:

javascript
function main() { let account = exchange.GetAccount() // Query account information let ticker = exchange.GetTicker() // Get ticker market data let id = exchange.Buy(1000, 1) // Price is 1000, order quantity is 1 exchange.CancelOrder(id) // If the order is not filled, it can be cancelled }