The resource loading... loading...

Platform

Platform page is used to manage and display the currently configured exchanges. In the FMZ Quant Trading Platform, ‘Platform’ is a key concept, which, in short, refers to an object that contains the key configuration, communication protocols and interface encapsulation associated with the funding account that can be manipulated by the strategy program. On the platform management page, click the “Add platform” button to jump to the Add platform page, select and fill in the configuration information according to your needs. All configuration information is locally encrypted and configured in FMZ Quant Trading Platform, so FMZ Quant Trading Platform does not record plaintext data.

Platform object Configured platforms, at the level of the strategy code, i.e. exchange objects. It is possible to consult exchange in the Syntax Manual. Multiple exchanges can be added when configuring backtesting/bot. So there are exchanges object arrays at the strategy code level. You can check exchanges in the Syntax Manual.

Using the exchange object In the strategy code, you can call the exchange object for account reading, ticker reading, order placing, order canceling, etc. Take the JavaScript language as an example:

function main() {
    let account = exchange.GetAccount()    // Check account information
    let ticker = exchange.GetTicker()      // Get ticker quotes
    let id = exchange.Buy(1000, 1)         // Price is 1000 and order quantity is 1
    exchange.CancelOrder(id)               // If the order is not filled, it can be withdrawn
}
Docker Strategy Editor