Harden JoinQuant browser smoke automation
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user