Batch Updating FMZ Live Bot Parameters with the Extension API
Summary
This guide explains how to update parameters across many FMZ trading bots using the platform’s extension API. It first retrieves stopped or errored bots for a specified strategy, then fetches each bot’s current configuration so existing exchange connections, trading pairs, and candle period can be retained when restarting it with new strategy arguments.
The example builds a replacement settings object and passes it to the restart function for each bot. The article distinguishes this from creating bots that do not yet exist, which calls for a separate creation function. It demonstrates assigning the same new values to multiple bots and notes that custom logic can assign different values per bot. The approach depends on bots being stopped before their parameters can be changed, and it requires the full configuration to be supplied when restarting with updated parameters. The document provides implementation guidance but no performance evidence or discussion of safeguards for large batch operations.
Key ideas
- Bots must be stopped or errored before their parameters can be changed.
- Retrieve each bot’s detailed configuration before restarting it with new parameters.
- Preserve exchange, pair, and period settings when constructing the replacement configuration.
- Use the bot creation API for instances that have not yet been created.
- Parameter update rules can be customized for individual bots.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.