Harden JoinQuant browser smoke automation

This commit is contained in:
Yuxuan Yan
2026-07-04 19:27:48 +08:00
parent 5fada75d23
commit efa9d24c73
4 changed files with 206 additions and 19 deletions
+7 -1
View File
@@ -155,13 +155,19 @@ def reconcile_cmd(
)
@click.option("--out-path", required=True, help="Path for generated standalone strategy")
@click.option("--allow-short", is_flag=True, help="Do not clip negative targets in the generated wrapper")
def write_wrapper_cmd(portfolio_name, mode, out_path, allow_short):
@click.option(
"--embed-targets-dir",
default=None,
help="Embed CSV target files from this directory into the strategy source",
)
def write_wrapper_cmd(portfolio_name, mode, out_path, allow_short, embed_targets_dir):
"""Generate a standalone JoinQuant wrapper strategy."""
path = write_wrapper_strategy(
portfolio_name=portfolio_name,
mode=mode,
out_path=out_path,
allow_short=allow_short,
embedded_targets_dir=embed_targets_dir,
)
click.echo(f"Saved JoinQuant wrapper strategy: {path}")