heatmaps: part 13

This commit is contained in:
nym21
2026-06-01 11:17:00 +02:00
parent e64ffac8d1
commit 102933b406
10 changed files with 162 additions and 142 deletions
+20 -20
View File
@@ -11888,62 +11888,62 @@ class BrkClient extends BrkClientBase {
}
/**
* Live EMA histogram
* Live payment output histogram
*
* Smoothed round-dollar payment histogram at the live tip: the committed EMA with the forming mempool block blended in. A flat array of log-scale bins.
* Live smoothed histogram of oracle-eligible payment outputs, binned by output value on the oracle log scale. It combines the committed oracle window with the forming mempool block. A flat array of log-scale bins.
*
* Endpoint: `GET /api/oracle/histogram/ema/live`
* Endpoint: `GET /api/oracle/histogram/payments/live`
* @param {{ signal?: AbortSignal, onValue?: (value: number[]) => void }} [options]
* @returns {Promise<number[]>}
*/
async getOracleHistogramEmaLive({ signal, onValue } = {}) {
const path = `/api/oracle/histogram/ema/live`;
async getOracleHistogramPaymentsLive({ signal, onValue } = {}) {
const path = `/api/oracle/histogram/payments/live`;
return this.getJson(path, { signal, onValue });
}
/**
* EMA histogram at height or day
* Payment output histogram at height or day
*
* Smoothed round-dollar payment histogram for a confirmed point: a block height (`840000`) gives that block's EMA, a calendar date (`YYYY-MM-DD`) gives the average of that day's per-block EMAs. A flat array of log-scale bins.
* Smoothed histogram of oracle-eligible payment outputs for a confirmed point. A block height (`840000`) gives that block's oracle payment histogram; a calendar date (`YYYY-MM-DD`) gives the average of that day's per-block payment histograms. A flat array of log-scale bins.
*
* Endpoint: `GET /api/oracle/histogram/ema/{point}`
* Endpoint: `GET /api/oracle/histogram/payments/{point}`
*
* @param {string} point
* @param {{ signal?: AbortSignal, onValue?: (value: number[]) => void }} [options]
* @returns {Promise<number[]>}
*/
async getOracleHistogramEma(point, { signal, onValue } = {}) {
const path = `/api/oracle/histogram/ema/${point}`;
async getOracleHistogramPayments(point, { signal, onValue } = {}) {
const path = `/api/oracle/histogram/payments/${point}`;
return this.getJson(path, { signal, onValue });
}
/**
* Live raw histogram
* Live output value histogram
*
* Unfiltered output histogram for the forming mempool block: every live output binned by value, with none of the round-dollar payment filters applied. A flat array of log-scale bins, all zero when no mempool is configured.
* Live unfiltered output value histogram for the forming mempool block. Every live output is binned by value on the oracle log scale; no oracle payment filters are applied. A flat array of log-scale bins, all zero when no mempool is configured.
*
* Endpoint: `GET /api/oracle/histogram/raw/live`
* Endpoint: `GET /api/oracle/histogram/outputs/live`
* @param {{ signal?: AbortSignal, onValue?: (value: number[]) => void }} [options]
* @returns {Promise<number[]>}
*/
async getOracleHistogramRawLive({ signal, onValue } = {}) {
const path = `/api/oracle/histogram/raw/live`;
async getOracleHistogramOutputsLive({ signal, onValue } = {}) {
const path = `/api/oracle/histogram/outputs/live`;
return this.getJson(path, { signal, onValue });
}
/**
* Raw histogram at height or day
* Output value histogram at height or day
*
* Unfiltered output histogram for a confirmed point: a block height (`840000`) gives that block's outputs, coinbase included, binned by value with no payment filtering; a calendar date (`YYYY-MM-DD`) sums every block that day. A flat array of log-scale bins.
* Unfiltered output value histogram for a confirmed point. A block height (`840000`) gives every output in that block, coinbase included, binned by value on the oracle log scale; a calendar date (`YYYY-MM-DD`) sums every block that day. A flat array of log-scale bins.
*
* Endpoint: `GET /api/oracle/histogram/raw/{point}`
* Endpoint: `GET /api/oracle/histogram/outputs/{point}`
*
* @param {string} point
* @param {{ signal?: AbortSignal, onValue?: (value: number[]) => void }} [options]
* @returns {Promise<number[]>}
*/
async getOracleHistogramRaw(point, { signal, onValue } = {}) {
const path = `/api/oracle/histogram/raw/${point}`;
async getOracleHistogramOutputs(point, { signal, onValue } = {}) {
const path = `/api/oracle/histogram/outputs/${point}`;
return this.getJson(path, { signal, onValue });
}