Skip to content

Running code

Click Run and fxyz starts the strategy on a server in your private workspace. You see its logs stream into the chat in real time.

What you see

A status indicator at the top:

  • Pending — fxyz is about to start the process.
  • Running — it's executing. Logs are streaming.
  • Succeeded — the process finished by itself, exit code 0. (Common for executors; uncommon for bots.)
  • Failed — the process exited with a non-zero code, or threw an unhandled error.
  • Stopped — you clicked Stop.

Underneath the status, the live log. Underneath the log, a tab for any other files the strategy is writing (debug stream, state files, etc.).

Stop

Click Stop. fxyz sends the process a polite shutdown signal first, gives it about a minute to clean up (cancel resting orders, close out, save state), then hard-kills if it hasn't exited.

Strategies that need to do something on shutdown — cancel their orders, log a final summary — have a hook they can register. The chat uses it by default for bots that hold positions. You can verify "did my orders get cancelled?" in the final log lines.

Coming back later

Close the tab. Close the laptop. Go for a walk. The bot keeps running on our side.

You can close everything and come back later.

When you come back and reopen the chat, fxyz replays the last chunk of log so you can catch up (roughly the last 2000 lines, or the last day, whichever is smaller), then continues the live feed.

If the host has to restart while you were gone, a longrunning bot is auto-resumed from where it was (subject to the rules in Bots vs Executors). An executor that was mid-flight when its host died is not re-fired; you'd see it as failed and decide whether to re-run.

Multiple bots at once

You can have many chats open with bots running. They each get their own process; they don't interfere with each other.

There is no hard limit, but in practice each running bot uses a bit of compute on our side. We bill compute time — see Usage in the app — so a hundred parallel idle bots will cost real money. Stop the ones you're not using.

Funds stay on the exchange. fxyz can trade, never withdraw.