factor_save_strategy
Save or update a strategy on the Factor Studio Stats API using a configured wallet for signing, with optional vault linking and hash-based updates.
Instructions
Save or update a strategy on the Factor Studio Stats API. Requires a configured wallet for signing. The strategy field contains the strategy data (canvas array or steps array). If vault_address is provided, type defaults to "pro-vault" and position_address is set to the same vault_address. Include hash to update an existing strategy.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "factor_save_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | Strategy hash. Include this to update an existing strategy instead of creating a new one. | |
| name | Yes | Name of the strategy | |
| type | No | Strategy type (e.g., "pro-vault", "swap"). Auto-set to "pro-vault" if vault_address is provided. | |
| status | No | Strategy status (e.g., "draft"). Default: "draft". | |
| password | No | Wallet password if the wallet is encrypted | |
| strategy | No | Strategy data. Can be an object with a canvas array, or an array of strategy steps. | |
| description | No | Description of the strategy | |
| vault_address | No | Vault address to associate with the strategy. Also sets position_address to the same value. |