Calendar Events
Major economic events (FOMC decisions, CPI releases) cause sharp moves in prediction markets. Horizon’s calendar module provides a live event feed, bundled FOMC/CPI dates through 2026, and pipeline functions for time-decay sizing and pre-event risk reduction. The feed maps event data to standard FeedSnapshot fields for seamless pipeline integration.Overview
Event Feed
CalendarFeed tracks the nearest event with seconds-to-event countdown.Time Decay
hz.time_decay() reduces position size as events approach.Event Countdown
hz.event_countdown() exposes event data for downstream use.Pre-Event Strategy
hz.pre_event_strategy() automatically reduces exposure before events.Feed
CalendarFeed
Parses bundled or custom event data and tracks the nearest future event.
Bundled events include FOMC meeting dates and CPI release dates from 2024 through 2026.
FeedSnapshot mapping:
price= urgency score (0.0 to 1.0, higher as event approaches)bid= seconds to next eventask= event type code (FOMC=1.0, CPI=2.0, NFP=3.0, GDP=4.0, EARNINGS=5.0)volume_24h= days to next eventsource="calendar:EVENT_NAME"
Pipeline Functions
hz.time_decay
Reduce position size as events approach.
Returns each cycle:
hz.event_countdown
Expose raw event countdown data for downstream pipeline use.
Returns each cycle:
hz.pre_event_strategy
Automatically reduce exposure as events approach, with a linear ramp.
Returns each cycle: