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
VersionReturns the current system version number
SleepSleep function, parameter is the number of milliseconds to pause
IsVirtualDetermines the execution environment, returns true for backtesting environment
MailSend email
Mail_GoAsynchronous version of the Mail function
SetErrorFilterFilter error logs, parameter is a regular expression string, error logs matching this regex will not be uploaded to the log system
GetPidGet live trading process ID
GetLastErrorGet the most recent error message
GetCommandGet strategy interaction commands, for strategy interaction control settings please refer to: Interactive Controls
GetMetaGet the Meta value written when generating the strategy registration code
DialUsed for raw Socket access
HttpQuerySend HTTP request
HttpQuery_GoAsynchronous version of the HttpQuery function
EncodeData encoding function
UnixNanoGet nanosecond timestamp
UnixGet second-level timestamp
GetOSGet system information
MD5Calculate MD5 hash value
DBExecDatabase function for executing SQL statements and performing database operations
UUIDGenerate UUID
EventLoopListen for events, returns when any WebSocket is readable or concurrent tasks like exchange.Go, HttpQuery_Go are completed, this function is only available for live trading
_GPersistently save data, this function implements a saveable global dictionary feature. The data structure is a key-value pair table, permanently saved in the docker's local database file
_DTimestamp processing function, converts millisecond timestamp or Date object to time string
_NFormat floating-point numbers, for example _N(3.1415, 2) will remove digits after the second decimal place of 3.1415, the function returns 3.14
_CRetry function for interface fault tolerance. Note that for fault tolerance of exchange.GetTicker function, use _C(exchange.GetTicker) instead of _C(exchange.GetTicker())
_CrossCrossover detection function, _Cross() returns a positive number indicating the number of periods since upward crossover, negative number for downward crossover, 0 means current prices are equal
JSONParseParse JSON, can correctly parse JSON strings containing large numeric values, parsing large numbers as string type. The backtesting system does not support the JSONParse() function
SetChannelDataPublish latest status data on a channel for inter-bot communication
GetChannelDataSubscribe to channel data from specified live trading bot for inter-bot communication