Skip to content

CLI Reference

This page provides auto-generated documentation for the cc-liquid CLI tool.

cc-liquid

cc-liquid - A metamodel-based rebalancer for Hyperliquid.

Usage:

cc-liquid [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

cc-liquid account

Show comprehensive account and positions summary.

Usage:

cc-liquid account [OPTIONS]

Options:

  --help  Show this message and exit.

cc-liquid analyze

Run backtest analysis on historical data.

⚠️ IMPORTANT DISCLAIMER: Past performance does not guarantee future results. Backtesting results are hypothetical and have inherent limitations. Actual trading results may differ significantly. Always consider market conditions, liquidity, and execution costs that may not be fully captured in simulations.

Usage:

cc-liquid analyze [OPTIONS]

Options:

  --prices TEXT                   Path to price data (parquet file with date,
                                  id, close columns)
  --start-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  Start date for backtest (YYYY-MM-DD)
  --end-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  End date for backtest (YYYY-MM-DD)
  --set TEXT                      Override config values (e.g., --set
                                  portfolio.num_long=15 --set
                                  data.source=numerai)
  --fee-bps FLOAT                 Trading fee in basis points
  --slippage-bps FLOAT            Slippage cost in basis points
  --prediction-lag INTEGER        Days between prediction date and trading
                                  date (default: 1, use higher values to avoid
                                  look-ahead bias)
  --save-daily TEXT               Save daily results to CSV file
  --show-positions                Show detailed position analysis table
  --verbose                       Show detailed progress
  --help                          Show this message and exit.

cc-liquid close-all

Close all positions and return to cash.

Usage:

cc-liquid close-all [OPTIONS]

Options:

  --skip-confirm  Skip confirmation prompt for closing positions.
  --set TEXT      Override config values (e.g., --set is_testnet=true)
  --force         Force close positions below min notional by composing a two-
                  step workaround.
  --help          Show this message and exit.

cc-liquid completion

Shell completion utilities.

Usage:

cc-liquid completion [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

cc-liquid completion install

Install shell completion for the current user.

Writes the generated completion script to a standard location and, for Bash/Zsh, appends a source line to the user's rc file idempotently.

Usage:

cc-liquid completion install [OPTIONS]

Options:

  --shell [bash|zsh|fish]  Target shell. Defaults to auto-detect from $SHELL.
  --prog-name TEXT         Program name to install completion for (as
                           installed on PATH).  [default: cc-liquid]
  --help                   Show this message and exit.

cc-liquid config

Show the current configuration.

Usage:

cc-liquid config [OPTIONS]

Options:

  --help  Show this message and exit.

cc-liquid download-crowdcent

Download the CrowdCent meta model.

Usage:

cc-liquid download-crowdcent [OPTIONS]

Options:

  -o, --output TEXT  Output file path (defaults to path in config).
  --help             Show this message and exit.

cc-liquid download-numerai

Download the Numerai meta model.

Usage:

cc-liquid download-numerai [OPTIONS]

Options:

  -o, --output TEXT  Output file path (defaults to path in config).
  --help             Show this message and exit.

cc-liquid init

Interactive setup wizard for first-time users.

Guides you through creating config files with validation and helpful defaults.

Usage:

cc-liquid init [OPTIONS]

Options:

  --non-interactive  Skip interactive setup, use defaults
  --help             Show this message and exit.

cc-liquid optimize

Optimize backtest parameters using parallel grid search.

⚠️ IMPORTANT DISCLAIMER: Optimization results are based on historical data and are subject to overfitting. Parameters that performed well in the past may not perform well in the future. Always use out-of-sample testing and forward walk analysis. Consider that optimized parameters may be curve-fit to historical noise rather than true patterns.

Usage:

cc-liquid optimize [OPTIONS]

Options:

  --prices TEXT                   Path to price data
  --start-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  Start date for backtest (YYYY-MM-DD)
  --end-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  End date for backtest (YYYY-MM-DD)
  --set TEXT                      Override config values (e.g., --set
                                  data.source=numerai)
  --num-longs TEXT                Comma-separated list of long positions to
                                  test
  --num-shorts TEXT               Comma-separated list of short positions to
                                  test
  --leverages TEXT                Comma-separated list of leverage values to
                                  test
  --rebalance-days TEXT           Comma-separated list of rebalance
                                  frequencies to test
  --metric [sharpe|cagr|calmar]   Optimization metric
  --max-drawdown FLOAT            Maximum drawdown constraint (e.g., 0.2 for
                                  20%)
  --fee-bps FLOAT                 Trading fee in basis points
  --slippage-bps FLOAT            Slippage cost in basis points
  --prediction-lag INTEGER        Days between prediction date and trading
                                  date (default: 1, use higher values to avoid
                                  look-ahead bias)
  --top-n INTEGER                 Show top N results
  --apply-best                    Run full analysis with best parameters
  --save-results TEXT             Save optimization results to CSV
  --plot                          Show contour plots of results
  --max-workers INTEGER           Number of parallel workers (default: auto)
  --clear-cache                   Clear cached optimization results
  --verbose                       Show detailed progress
  --help                          Show this message and exit.

cc-liquid profile

Manage configuration profiles (owner/vault/signer).

Usage:

cc-liquid profile [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

cc-liquid profile list

List available profiles from YAML and highlight the active one.

Usage:

cc-liquid profile list [OPTIONS]

Options:

  --help  Show this message and exit.

cc-liquid profile show

Show details for a profile (defaults to active).

Usage:

cc-liquid profile show [OPTIONS] [NAME]

Options:

  --help  Show this message and exit.

cc-liquid profile use

Set active profile and persist to YAML.

Usage:

cc-liquid profile use [OPTIONS] NAME

Options:

  --help  Show this message and exit.

cc-liquid rebalance

Execute rebalancing based on the configured data source.

Usage:

cc-liquid rebalance [OPTIONS]

Options:

  --skip-confirm  Skip confirmation prompt for executing trades.
  --set TEXT      Override config values (e.g., --set data.source=numerai
                  --set portfolio.num_long=10)
  --help          Show this message and exit.

cc-liquid run

Start continuous monitoring and automatic rebalancing with live dashboard.

Usage:

cc-liquid run [OPTIONS]

Options:

  --skip-confirm   Skip confirmation prompt for executing trades.
  --set TEXT       Override config values (e.g., --set is_testnet=true)
  --refresh FLOAT  Dashboard update cadence in seconds.  [default: 1.0]
  --tmux           Run inside a fixed tmux session (attach if exists, else
                   create and run).
  --help           Show this message and exit.