validate_strategy
Performs static analysis of Python FLOX strategy code: verifies required hooks (on_trade, on_bar) and detects forbidden patterns (eval, exec). Does not execute 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
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python source for the strategy module/class. |