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

Function NameDescription
exchange.BuySubmit 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.SellSubmit 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.CreateOrderSubmit an order by specifying the trading instrument, trading direction, price, and quantity through parameters
exchange.ModifyOrderModify the price and quantity of a regular order, supports modifying other order attributes through additional parameters
exchange.ModifyConditionOrderModify the quantity and trigger conditions of a conditional order, supports modifying other conditional order attributes through additional parameters
exchange.CancelOrderCancel an order
exchange.GetOrderGet order information, data structure is Order structure
exchange.GetOrdersGet unfilled orders, data structure is an array (list) of Order structures
exchange.GetHistoryOrdersGet historical orders for the current trading pair/contract, supports specifying specific trading instruments
exchange.SetPrecisionSet the price and order quantity precision for the exchange object, the system will automatically truncate excess digits after setting
exchange.SetRateSet the exchange rate
exchange.IOUsed for other interface calls related to the exchange object
exchange.LogOutput and record trading logs without actually placing orders
exchange.EncodeSignature encryption calculation
exchange.GoMulti-threaded asynchronous support function
exchange.GetAccountGet account information
exchange.GetAssetsRequest exchange account asset information
exchange.GetNameGet the name of the exchange object
exchange.GetLabelGet the label of the exchange object
exchange.GetCurrencyGet the current trading pair
exchange.SetCurrencySwitch trading pair
exchange.GetQuoteCurrencyGet the quote currency name of the current trading pair