Skip to main content
The strategy registry lets you browse your deployed strategies on Horizon Cloud, download them locally, and run them with a single command. Think of it as git pull for your trading strategies.

Quick Start

Authentication

The registry uses your SDK key (the same one you use for hz.run() and cloud deploy):
Or pass it explicitly:

Browsing Strategies

List all

Returns a list of StrategyInfo objects with id, name, description, status, class_name, created_at.
Searches your strategies by name, description, and class name. Results are ranked by relevance.

Details

Version History

Every time you save changes to a strategy on Horizon Cloud, a version snapshot is created automatically.
Pull a specific version:

Pulling Strategies

pull() downloads the strategy code and metadata to ~/.horizon/strategies/:

Custom directory

What’s in the manifest

Running Strategies

Pull and execute in one step:
With a specific version:
The strategy module is dynamically loaded and executed. If it defines a main() or run() function, that gets called. Otherwise it runs on import (the standard hz.run() pattern).

Managing Local Strategies

List pulled strategies

Remove a local strategy

Workflow Example

Use pull() to download and inspect strategy code before running it. The pulled strategy is plain Python you can read, modify, and version control with git.