---
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

## Changes

> 8 revisions in range; 1 not diffed.

- **2026-08-18** `b7c4b36e1fa1` — 1 warning, 3 info
  - removed the optional property `detail` from the response with the `422` status
  - added the required property `details` to the response with the `422` status
  - added the required property `error` to the response with the `422` status
  - added the required property `message` to the response with the `422` status

[Change history](https://skmtc.dev/goldprice/apis/gold-api/changes/internal/cron/pyth-live-flush/post.md)

---

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