Validate a strategy spec
validate_strategyParse and fingerprint one strategy spec without running a market, returning the offending field on grammar errors or a normalised spec. Iterate on specs cheaply before evaluating or ranking.
Instructions
Parse and fingerprint one strategy spec WITHOUT running it. Use it to iterate on a spec cheaply before evaluate_strategies or rank_strategies: a grammar error comes back naming the field that was wrong, and a valid spec comes back normalised with its fingerprint. A spec looks like {"signal": {"kind": "momentum", "lookback_days": 1.0}, "portfolio": {"top_k": 5, "gross": 1.0}}. Runs no market.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | One strategy spec, for example {"signal": {"kind": "momentum", "lookback_days": 1.0}, "portfolio": {"top_k": 5, "gross": 1.0}}. `spec_version` may be left out and is then set to the current version. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||