--json for pipeable output.
Installation
horizon command is available on your PATH:
uvx or bunx:
Quick Start
Configuration
The CLI reads configuration from environment variables:Global Options
Commands
Discovery
discover - Search markets
discover - Search markets
events - Multi-outcome events
events - Multi-outcome events
top-markets - Highest volume
top-markets - Highest volume
market - Market detail
market - Market detail
Trading
submit - Place an order
submit - Place an order
cancel / cancel-all - Cancel orders
cancel / cancel-all - Cancel orders
positions / orders / fills - View state
positions / orders / fills - View state
kill-switch - Emergency stop
kill-switch - Emergency stop
status - Engine overview
status - Engine overview
Analytics
kelly - Position sizing
kelly - Position sizing
parity - Arbitrage check
parity - Arbitrage check
simulate - Monte Carlo
simulate - Monte Carlo
Wallet Analytics
All wallet commands are under thewallet subgroup:
wallet trades - Trade history
wallet trades - Trade history
wallet positions - Open positions
wallet positions - Open positions
wallet value - Portfolio value
wallet value - Portfolio value
wallet profile - Public profile
wallet profile - Public profile
wallet score - Performance score
wallet score - Performance score
wallet top-holders - Largest holders
wallet top-holders - Largest holders
wallet flow - Buy/sell flow
wallet flow - Buy/sell flow
wallet market-trades - Market trades
wallet market-trades - Market trades
Feed Management
All feed commands are under thefeed subgroup:
feed list - Active feeds
feed list - Active feeds
feed snapshot - Latest data
feed snapshot - Latest data
feed health - Staleness check
feed health - Staleness check
feed metrics - Connection stats
feed metrics - Connection stats
feed start - Start a feed
feed start - Start a feed
Fund Management
All fund commands are under thefund subgroup:
fund status / report
fund status / report
fund deploy / stop / pause / resume
fund deploy / stop / pause / resume
fund list / scale
fund list / scale
fund explain / regime / alerts
fund explain / regime / alerts
Account
setup - Create account
setup - Create account
login - Login
login - Login
key-status - Check credentials
key-status - Check credentials
Database Queries
For offline analysis of persisted strategy data, use thedb subgroup:
db fills - Historical fills
db fills - Historical fills
db positions - Position snapshots
db positions - Position snapshots
db orders - Order history
db orders - Order history
Scripting with —json
Every command supports--json for structured output. Pipe to jq for powerful scripting:
Architecture
The CLI shares the same tool layer as the MCP servers. All three interfaces delegate tohorizon.tools, which wraps the Rust engine via PyO3: