Get Deploy Result
get_deploy_resultWait for a one_shot deploy to finish and return its final result.
`one_shot` returns a job_token immediately and the LIVE CARD already streams
progress and renders the interactive backtest chart itself. Call this ONCE with
the token to get the final numbers as TEXT so you can summarize them — it does
NOT render another card (no need for get_model_chart). It BLOCKS until the deploy
finishes (or ~2.5 min); on timeout it returns ok:false + pending:true — call it
again with the same token.
IMPORTANT: if `source == "community"`, the deploy used a PRE-EXISTING strategy by
`@author` (the user picked it) - tell the user that, share the `live_url` as the
Live dashboard link, and ask whether they'd like to GENERATE A CUSTOM strategy
instead. A `suggestion` is a community strategy that matched a vague request; it
was NOT deployed; offer it, and deploy it only after the user sees its author and
code and picks it. Use the `note` field as your guide.
Args:
job_token: the token returned by `one_shot`.
Returns:
dict with: ok, stem, model, live_url, symbol, timeframe, channels (list),
stats:{ret, wr, pf, n, mdd} (out-of-sample test-split metrics — SHOW THESE),
source ("preset" | "generated" | "community"), author (community username if
any), author_url + strategy_url (render @author and "pre-existing strategy" as
those Markdown links), community_id, suggest_custom (bool), suggestion
({community_id, title, author} or null: offered, not deployed), and note (a
ready instruction - follow it). On failure: {ok:false, error} (or {pending:true}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_token | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||