Horizon API Key
Polymarket
Kalshi
Database
Logging
Valid levels:
debug, info, warn, error
Python Logging
Horizon uses Python’slogging module for the Python layer:
Rust Logging
Set the Rust tracing level via environment variable:CLI Log Level
The--log-level flag sets both Python logging and the HORIZON_LOG environment variable:
Credential Resolution Order
BothPolymarket and Kalshi resolve credentials in this order:
1
Explicit constructor arguments
2
Environment variables
Hot-Reload Parameters
Update strategy parameters at runtime without restarting. Three approaches: pipeline function, standaloneParamReloader, or engine runtime params.
Pipeline Function
Drophz.hot_reload() into your pipeline to inject parameters into ctx.params every cycle.
File-based:
ParamReloader
Standalone class for watching a JSON parameter file. Useful outside ofhz.run().
check() returns None on the first call if the file hasn’t changed since construction. Use current() to get the initial values.Engine Runtime Params
Set and retrieve parameters directly on the Engine.ctx.params every cycle when using hz.run().