Publish a strategy to the public marketplace
publish_to_marketplacePublishes a strategy to the public marketplace where users can discover it. A new listing needs a running or scheduled bot (paper is fine); without one it returns listed=false and the next step: offer to start a bot, then publish again. Marketplace listing status is the public contract; bot deployments remain private. Publishing automatically preserves or derives valid scheduleMetadata on the published revision so cloners start on the intended schedule instead of defaulting to 24/7. Tags can be set for categorization (holdingPeriod, riskLevel, plan tier). Free and paid monthly listings are supported. Paid listings force code protection. If already published, updates and returns the existing listing. For private 1:1 sharing, use strategy_share_link(action="create") instead.
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": {
"strategyId": "<strategyId>"
},
"name": "publish_to_marketplace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Categorization tags for the listing | |
| accountId | No | Exact owned proof account; paper and real use separate listings. | |
| backtestId | No | Exact owned successful headline backtest. Reuse the current published ID to preserve its statistics; a different run must cover at least 180 days. | |
| strategyId | Yes | The Strategy entity ID (required) | |
| protectCode | No | Hide strategy code. Paid monthly listings always force this true. | |
| pricingModel | No | Marketplace pricing. Default free. | |
| priceCurrency | No | ISO currency code. Default usd. | |
| priceAmountCents | No | Monthly price in cents. Required for pricingModel=monthly. | |
| allowHoldingsView | No | Whether public listing viewers can see positions. Omit to use the default: shown on a first publish. | |
| allowPerformanceView | No | Whether public listing viewers can see performance history. Omit to use the default: shown on a first publish. |