validate_strategy
Analyze a Python FLOX strategy's AST for required hooks and forbidden patterns. Verify code safety before execution without running it.
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. |