> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Calendar and milestones

> Upcoming events, settlements, Kalshi milestones, and yield curves for resolution-time planning.

Two related surfaces:

* **Calendar** — what's resolving, when, across all venues.
* **Milestones** — Kalshi's native upcoming-events feed, filtered by horizon.

## Calendar

```bash theme={null}
sf calendar --json
sf calendar --json --since 24h
sf calendar --json --until 7d
```

Returns markets resolving in the window with the SimpleFunctions angle: implied probability, indicators, regime label, and category.

## Milestones (Kalshi-native)

```bash theme={null}
sf milestones --json
sf milestones --json --horizon 7d
```

Wraps Kalshi's `/milestones` endpoint. Useful when you want venue-canonical event timing rather than SimpleFunctions's normalized view.

## Settlements

```bash theme={null}
sf settlements --json --since 30d
sf settlements --json --thesis <id>
```

Returns resolved contracts you held, with realized P\&L, exit reason, and (if `--thesis` is set) attribution to the originating thesis.

## Forecast (Kalshi numeric series)

For numeric-outcome series, Kalshi exposes percentile forecasts:

```bash theme={null}
sf forecast <event-ticker> --json
```

Returns P50/P75/P90 percentiles. Falls back from event ticker to series if not found.

## Yield curves

```bash theme={null}
sf yield-curve <event> --json
```

For events that span multiple resolution dates, returns the implied probability curve over time-to-resolve.

## Next steps

<CardGroup cols={2}>
  <Card title="Public data API" href="/api-reference/public-market-data">
    `/api/public/calendar`, `/api/public/yield-curves`.
  </Card>

  <Card title="Indicators" href="/concepts/indicators">
    What each numeric field means.
  </Card>
</CardGroup>
