start_paper_trade
Start a strategy live: it runs on live market data, on paper, with a note on it every morning (the lab's paper trade). It is what "start it live, follow it, paper trade it, run it live, watch it" ask for, and what a tap on a run's offer to start it live does. save_trading_config never does this: it keeps a run's settings, and nothing goes live from it.
A first call starts nothing: its answer carries `ask`, the question for the person, with two offers. The same
call with confirm=true, made after the person's yes, starts it.
What it tracks: a finished run of this account (task_id: a ready test, a paper's circuit, a saved lab
project's run, a backtest or a walk-forward), a published paper (study, from search or fetch) or one of the
person's saved lab projects (project_id, from list_my_primitives_projects).
It registers the strategy in the person's saved work, sets it up on paper with 100,000 for 90 days, checks it
on the last six months and puts it live. Its first update comes after the next US market close. When the
check takes longer, it goes on on QuanterLab and the strategy goes live by itself when it is done. Nothing
here places an order or moves money: it is simulated on paper, on the data served each day.
An account runs one strategy at a time. With one already tracked, a call starts nothing and its `ask`
offers the swap, with two offers. The same call with replace=true and the replace_id its message names,
made after the person's yes, stops that one (its record is kept) and tracks this one instead.
Its card shows what started; `message` and `open_url` say the same for a host without cards. A strategy that
cannot go live as it is answers with why in `message`, and, for a paper whose data stops at its publication,
an offer with the exact call of its live version. my_paper_trades says later how it is doing.
Args:
task_id: The task_id of one of this account's finished runs.
study: Instead of task_id, a published paper's id.
project_id: Instead of task_id, the id of one of the account's saved lab projects.
live_version: With study, true tracks the paper's live version: the same rule on the data served
today.
replace: True once the person has said yes to tracking this one instead of the one the account
tracks.
replace_id: With replace, the id of the strategy the account tracks, as the answer that asked names it.
Another one tracked by then is asked about again.
confirm: True once the person has said yes to the question the first call asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| study | No | ||
| confirm | No | ||
| replace | No | ||
| task_id | No | ||
| project_id | No | ||
| replace_id | No | ||
| live_version | No |