validate_strategy
Check Python strategy code for valid syntax, required hooks, and forbidden patterns before running it, without executing the code.
Instructions
Static-analysis check on a Python FLOX strategy: AST parses, expected hooks present (on_trade / on_bar), no forbidden patterns (eval, exec, import tricks). Use this before running user-authored strategy code. Does NOT execute the code.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python source for the strategy module/class. |