---
title: "D3: flush settled 1m oracle bars + trigger incremental coarse rollup"
method: POST
path: "/internal/cron/pyth-live-flush"
tags: ["internal"]
---

# D3: flush settled 1m oracle bars + trigger incremental coarse rollup

`POST /internal/cron/pyth-live-flush`

Per-minute cron flush: drains settled minute bars from the accumulator
into price_bars, then re-derives the affected 15m/1h/4h/1d windows.

pg_cron schedule: every minute. Dead-man 2x = 120s.
FOUNDER-GATED to have effect: PYTH_LIVE_ROLLUP_ENABLED must be True;
until then the accumulator stays empty and this flush is a no-op.

## Headers

- `x-internal-secret` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/goldprice/apis/gold-api.md) · [All operations](https://skmtc.net/goldprice/apis/gold-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goldprice/gold-api/revisions/5e6518098e6e/schema)
