Skip to main content
Horizon provides a full-featured CLI for trading, discovery, wallet analytics, fund management, and strategy execution.
For the complete CLI reference with all commands, see the CLI Integration Guide.

Install

Running Strategies

CLI options always take priority over the strategy file’s hz.run() arguments.

Trading from the CLI

Wallet Analytics

Fund Management

Equity & Options

JSON Output

Every command supports --json for scripting:

Database Commands

For offline analysis of persisted strategy data:

How CLI Overrides Work

When running strategies, the CLI sets overrides in the _cli_overrides dictionary before loading the strategy module:
  1. CLI parses --mode and --dashboard flags
  2. Overrides are stored in horizon.strategy._cli_overrides
  3. The strategy file is loaded and executed
  4. When hz.run() is called, it reads _cli_overrides and applies them
This means hz.run() in the strategy file always runs. The CLI just changes its arguments.

All Commands

Run horizon --help for the full command list, or see the CLI Integration Guide for detailed documentation of all 50+ commands.