Clone/fork a strategy
clone_strategyCreates a private dormant copy for the authenticated user. To copy a Marketplace listing, pass its listingId from marketplace_strategies; the publisher must have allowed copying. This copies published code, not a first-build workspace: continue with secure broker/key setup and the normal deployment review, without editing code or starting a backtest unless the user requested that separate work. Pass strategyId to duplicate owned private history; listingId always copies only the explicitly published revision, including for the publisher. External private-link clones also copy only their published revision and non-hidden source files. Credentials, broker bindings, grants, deployments, orders, prompts, runtime setup notes, and trading state are never copied. Paid listings require an active purchase.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the copy. Defaults to Name (Copy), Name (Copy 2), and so on. | |
| listingId | No | A Marketplace listing id from marketplace_strategies; copies that listing. | |
| shareToken | No | Share token from a private share link. Required for private strategies not owned by you. | |
| strategyId | No | The Strategy entity ID to clone. Required unless listingId is given. | |
| aiStrategyId | No | The AiStrategy entity ID for cloning revisions. If not provided, resolved from strategyId. | |
| sharePassword | No | Password required by a protected private link, if configured. |