Deploy Strategy (generate + backtest + go live)
one_shotEnd-to-end deploy: generate strategy → train → deploy live.
One of `prompt` (free-form NL), `preset` (curated winning strategy), or
`community_id` (copy a published community strategy) is required. If more
than one is passed, precedence is community_id > preset > prompt.
Args:
prompt: Natural-language strategy description (e.g. "Buy when RSI < 30, sell > 70").
symbol: Market to backtest on. One of: EURUSD, USDJPY, GBPUSD,
USDCHF, USDCAD, AUDUSD, NZDUSD, XAUUSD, XAGUSD, BTCUSD. Default EURUSD.
timeframe: Candle granularity. One of: 1min, 5min, 15min, 1h. Default 15min.
claude_model: Which Claude variant writes the code: "sonnet" (default), "sonnet-haiku"
(Sonnet writes the spec, Haiku the code) or "haiku" (faster, cheaper). Any case.
Generation is billed from the account's credits. Ignored when `preset` is set
(no generation needed).
preset: Curated winning-strategy slug. Skips Claude generation entirely
— deploys a pre-saved strategy known to backtest well on the chosen
symbol. Available slugs: ema_cross_fast, momentum, scalper_stack,
sma_only, trend_ema, volatility, bb_squeeze, all_mix, pivot_kid_ema.
Not every slug exists for every symbol; list_models shows what deployed.
community_id: Copy-trade a published community strategy. Pass the `id`
of an entry from `browse_community`. Loads that exact strategy code,
skips Claude generation, then trains + deploys it. `symbol`/`timeframe`
still apply to the backtest+deploy.
webhook_url: Optional webhook to receive live signals.
telegram_chat_id: Optional Telegram chat ID for signal delivery.
competition: Optional. A competition id from list_competitions. The model is then trained on
that competition's market and only on bars up to its train end, so it can be entered with
submit_competition_entry; a symbol or timeframe other than the competition's is refused.
Without it the model trains up to today and cannot be entered.
Returns at once (the deploy runs in the background so the live card can
stream progress) with:
- job_token (str): get_deploy_result(job_token) returns the final result.
- poll_url (str): the progress URL the live card polls.
- pending (bool): true; the deploy is still running.
- symbol, timeframe (str).
Each call starts one deploy and one deploy card, and is billed from the
account's credits. The server routes the request: a vague `prompt` deploys
the best curated preset for the market, or a fresh build when there is none;
specific rules generate a fresh strategy. A community strategy deploys only
after the user has seen its author and code (get_strategy_code) and picked
it, through its `community_id`.
get_deploy_result(job_token) waits for the deploy and returns the
out-of-sample stats, `stem`, `live_url` and `source` as text; its
`source` says when a pre-existing community strategy was used, and a
`suggestion` is a matching community strategy that was not deployed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "one_shot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | A curated strategy, deployed with no code generation: ema_cross_fast, momentum, scalper_stack, sma_only, trend_ema, volatility, bb_squeeze, all_mix or pivot_kid_ema. Where that slug has no saved strategy for the market, a strategy of its kind is generated instead. | |
| prompt | No | The strategy in plain English, e.g. "Buy when RSI < 30, sell when RSI > 70". At most 4,000 characters. Not needed when preset or community_id is given (community_id wins, then preset). | |
| symbol | No | Market: EURUSD, USDJPY, GBPUSD, USDCHF, USDCAD, AUDUSD, NZDUSD, XAUUSD, XAGUSD or BTCUSD. Default EURUSD. | |
| timeframe | No | Bar size: 1min, 5min, 15min or 1h. Default 15min. | |
| competition | No | Optional competition id from list_competitions, e.g. eurusd-15m-2027-01. The model then trains on that competition's market and only on bars up to its train end, so submit_competition_entry can enter it; a symbol or timeframe other than the competition's is refused. | |
| webhook_url | No | Optional URL that receives each live signal. Webhook delivery needs a paid plan. | |
| claude_model | No | Which Claude model writes the code: sonnet (default), sonnet-haiku (Sonnet writes the spec, Haiku the code) or haiku (faster, about a third of the credits). Any case. Billed from the account's credits; ignored with preset or community_id. | |
| community_id | No | The id of a published community strategy (from browse_community or find_strategy), deployed unchanged with no generation. Pass it only after the user has seen its author and code (get_strategy_code) and picked it. | |
| telegram_chat_id | No | Optional Telegram chat id that receives each live signal. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||