register_strategy
Validate and register a custom strategy spec with entry and exit rules, enabling backtesting on the platform.
Instructions
Register a custom strategy spec JSON with the AlgoChains platform. The spec must contain entry_rules and exit_rules. Once registered, the strategy can be backtested via run_backtest(strategy_id=...). Validates the spec file before registering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable strategy name. | |
| author | No | ||
| symbols | Yes | List of ticker symbols this strategy trades. | |
| spec_path | Yes | Absolute path to strategy spec JSON file. | |
| timeframe | Yes | ||
| asset_class | Yes | ||
| description | No |