mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-24 09:28:11 -07:00
heatmaps: part 13
This commit is contained in:
@@ -8674,37 +8674,37 @@ class BrkClient(BrkClientBase):
|
||||
Endpoint: `GET /api/oracle/price`"""
|
||||
return self.get_json('/api/oracle/price')
|
||||
|
||||
def get_oracle_histogram_ema_live(self) -> List[int]:
|
||||
"""Live EMA histogram.
|
||||
def get_oracle_histogram_payments_live(self) -> List[int]:
|
||||
"""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`"""
|
||||
return self.get_json('/api/oracle/histogram/ema/live')
|
||||
Endpoint: `GET /api/oracle/histogram/payments/live`"""
|
||||
return self.get_json('/api/oracle/histogram/payments/live')
|
||||
|
||||
def get_oracle_histogram_ema(self, point: str) -> List[int]:
|
||||
"""EMA histogram at height or day.
|
||||
def get_oracle_histogram_payments(self, point: str) -> List[int]:
|
||||
"""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}`"""
|
||||
return self.get_json(f'/api/oracle/histogram/ema/{point}')
|
||||
Endpoint: `GET /api/oracle/histogram/payments/{point}`"""
|
||||
return self.get_json(f'/api/oracle/histogram/payments/{point}')
|
||||
|
||||
def get_oracle_histogram_raw_live(self) -> List[int]:
|
||||
"""Live raw histogram.
|
||||
def get_oracle_histogram_outputs_live(self) -> List[int]:
|
||||
"""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`"""
|
||||
return self.get_json('/api/oracle/histogram/raw/live')
|
||||
Endpoint: `GET /api/oracle/histogram/outputs/live`"""
|
||||
return self.get_json('/api/oracle/histogram/outputs/live')
|
||||
|
||||
def get_oracle_histogram_raw(self, point: str) -> List[int]:
|
||||
"""Raw histogram at height or day.
|
||||
def get_oracle_histogram_outputs(self, point: str) -> List[int]:
|
||||
"""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}`"""
|
||||
return self.get_json(f'/api/oracle/histogram/raw/{point}')
|
||||
Endpoint: `GET /api/oracle/histogram/outputs/{point}`"""
|
||||
return self.get_json(f'/api/oracle/histogram/outputs/{point}')
|
||||
|
||||
def get_tx_by_index(self, index: TxIndex) -> Txid:
|
||||
"""Txid by index.
|
||||
|
||||
Reference in New Issue
Block a user