Type/to search
Getting Started
Platform Basics
Writing Strategies
Development Tools
Strategy Editor
Debugging Tool
Remote Editing
Backtesting System
Advanced Topics
Data and Research
Extended API Interface

You can write a strategy in a local editor and have it synced to FMZ automatically on save. VSCode, Vim and Sublime Text 3 are supported; JavaScript strategies can also use WebStorm and Python strategies PyCharm.

Remote editing screenshot

Steps

  1. Click "Remote Editing" on the strategy editing page. The top of the dialog has download links for the editor plugins; follow one to the plugin page and install it (installation differs slightly between editors).
  2. The dialog shows the current strategy's remote sync token. If it is empty, click "Update Token" to generate one.
  3. Save the strategy source locally and insert the token line shown in the dialog as the first line (e.g. // fmz@<token> for JavaScript, # fmz@<token> for Python); from then on every save is synced to the platform.

Without a plugin you can upload the local source with curl (the dialog shows the full command with your token), for example:

bash
curl -T quant.js -H "Authorization: Bearer <token>" https://www.fmz.com/rsync

Managing the token

  • "Update Token": generates a new token; the old one stops working at once.
  • "Delete Token": deletes the strategy's token and turns remote editing off.
  • If the strategy has not been modified at all for more than 30 days (neither saved on the website nor synced remotely), sync is refused (return code 405); save the strategy once on the website or click "Update Token" to restore it.
  • When uploading with curl, the source code must not exceed 8 MB.

Anyone holding the token can overwrite the strategy's source code, so keep it private.