mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-13 12:08:13 -07:00
clients: snapshot
This commit is contained in:
@@ -3699,24 +3699,6 @@ class BitcoinPattern:
|
||||
self.sum: MetricPattern2[Bitcoin] = MetricPattern2(client, _m(acc, "sum"))
|
||||
|
||||
|
||||
class ClassAveragePricePattern(Generic[T]):
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self._2015: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2015_returns"))
|
||||
self._2016: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2016_returns"))
|
||||
self._2017: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2017_returns"))
|
||||
self._2018: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2018_returns"))
|
||||
self._2019: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2019_returns"))
|
||||
self._2020: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2020_returns"))
|
||||
self._2021: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2021_returns"))
|
||||
self._2022: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2022_returns"))
|
||||
self._2023: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2023_returns"))
|
||||
self._2024: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2024_returns"))
|
||||
self._2025: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2025_returns"))
|
||||
|
||||
|
||||
class DollarsPattern(Generic[T]):
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -3737,6 +3719,61 @@ class DollarsPattern(Generic[T]):
|
||||
self.sum: MetricPattern2[T] = MetricPattern2(client, _m(acc, "sum"))
|
||||
|
||||
|
||||
class ClassAveragePricePattern(Generic[T]):
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self._2015: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2015_returns"))
|
||||
self._2016: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2016_returns"))
|
||||
self._2017: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2017_returns"))
|
||||
self._2018: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2018_returns"))
|
||||
self._2019: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2019_returns"))
|
||||
self._2020: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2020_returns"))
|
||||
self._2021: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2021_returns"))
|
||||
self._2022: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2022_returns"))
|
||||
self._2023: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2023_returns"))
|
||||
self._2024: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2024_returns"))
|
||||
self._2025: MetricPattern4[T] = MetricPattern4(client, _m(acc, "2025_returns"))
|
||||
|
||||
|
||||
class RelativePattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.neg_unrealized_loss_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "neg_unrealized_loss_rel_to_market_cap"))
|
||||
)
|
||||
self.net_unrealized_pnl_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "net_unrealized_pnl_rel_to_market_cap"))
|
||||
)
|
||||
self.nupl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, "nupl"))
|
||||
self.supply_in_loss_rel_to_circulating_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(client, _m(acc, "supply_in_loss_rel_to_circulating_supply"))
|
||||
)
|
||||
self.supply_in_loss_rel_to_own_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(client, _m(acc, "supply_in_loss_rel_to_own_supply"))
|
||||
)
|
||||
self.supply_in_profit_rel_to_circulating_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(
|
||||
client, _m(acc, "supply_in_profit_rel_to_circulating_supply")
|
||||
)
|
||||
)
|
||||
self.supply_in_profit_rel_to_own_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(client, _m(acc, "supply_in_profit_rel_to_own_supply"))
|
||||
)
|
||||
self.supply_rel_to_circulating_supply: MetricPattern4[StoredF64] = (
|
||||
MetricPattern4(client, _m(acc, "supply_rel_to_circulating_supply"))
|
||||
)
|
||||
self.unrealized_loss_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "unrealized_loss_rel_to_market_cap"))
|
||||
)
|
||||
self.unrealized_profit_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "unrealized_profit_rel_to_market_cap"))
|
||||
)
|
||||
|
||||
|
||||
class RelativePattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -3782,43 +3819,6 @@ class RelativePattern2:
|
||||
)
|
||||
|
||||
|
||||
class RelativePattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.neg_unrealized_loss_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "neg_unrealized_loss_rel_to_market_cap"))
|
||||
)
|
||||
self.net_unrealized_pnl_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "net_unrealized_pnl_rel_to_market_cap"))
|
||||
)
|
||||
self.nupl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, "nupl"))
|
||||
self.supply_in_loss_rel_to_circulating_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(client, _m(acc, "supply_in_loss_rel_to_circulating_supply"))
|
||||
)
|
||||
self.supply_in_loss_rel_to_own_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(client, _m(acc, "supply_in_loss_rel_to_own_supply"))
|
||||
)
|
||||
self.supply_in_profit_rel_to_circulating_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(
|
||||
client, _m(acc, "supply_in_profit_rel_to_circulating_supply")
|
||||
)
|
||||
)
|
||||
self.supply_in_profit_rel_to_own_supply: MetricPattern1[StoredF64] = (
|
||||
MetricPattern1(client, _m(acc, "supply_in_profit_rel_to_own_supply"))
|
||||
)
|
||||
self.supply_rel_to_circulating_supply: MetricPattern4[StoredF64] = (
|
||||
MetricPattern4(client, _m(acc, "supply_rel_to_circulating_supply"))
|
||||
)
|
||||
self.unrealized_loss_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "unrealized_loss_rel_to_market_cap"))
|
||||
)
|
||||
self.unrealized_profit_rel_to_market_cap: MetricPattern1[StoredF32] = (
|
||||
MetricPattern1(client, _m(acc, "unrealized_profit_rel_to_market_cap"))
|
||||
)
|
||||
|
||||
|
||||
class CountPattern2(Generic[T]):
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -3860,22 +3860,6 @@ class AddrCountPattern:
|
||||
self.p2wsh: MetricPattern1[StoredU64] = MetricPattern1(client, _p("p2wsh", acc))
|
||||
|
||||
|
||||
class FullnessPattern(Generic[T]):
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.average: MetricPattern2[T] = MetricPattern2(client, _m(acc, "average"))
|
||||
self.base: MetricPattern11[T] = MetricPattern11(client, acc)
|
||||
self.max: MetricPattern2[T] = MetricPattern2(client, _m(acc, "max"))
|
||||
self.median: MetricPattern6[T] = MetricPattern6(client, _m(acc, "median"))
|
||||
self.min: MetricPattern2[T] = MetricPattern2(client, _m(acc, "min"))
|
||||
self.pct10: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct10"))
|
||||
self.pct25: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct25"))
|
||||
self.pct75: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct75"))
|
||||
self.pct90: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct90"))
|
||||
|
||||
|
||||
class FeeRatePattern(Generic[T]):
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -3892,6 +3876,22 @@ class FeeRatePattern(Generic[T]):
|
||||
self.txindex: MetricPattern27[T] = MetricPattern27(client, acc)
|
||||
|
||||
|
||||
class FullnessPattern(Generic[T]):
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.average: MetricPattern2[T] = MetricPattern2(client, _m(acc, "average"))
|
||||
self.base: MetricPattern11[T] = MetricPattern11(client, acc)
|
||||
self.max: MetricPattern2[T] = MetricPattern2(client, _m(acc, "max"))
|
||||
self.median: MetricPattern6[T] = MetricPattern6(client, _m(acc, "median"))
|
||||
self.min: MetricPattern2[T] = MetricPattern2(client, _m(acc, "min"))
|
||||
self.pct10: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct10"))
|
||||
self.pct25: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct25"))
|
||||
self.pct75: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct75"))
|
||||
self.pct90: MetricPattern6[T] = MetricPattern6(client, _m(acc, "pct90"))
|
||||
|
||||
|
||||
class _0satsPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -3923,48 +3923,6 @@ class _100btcPattern:
|
||||
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
||||
|
||||
|
||||
class _10yTo12yPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.activity: ActivityPattern2 = ActivityPattern2(client, acc)
|
||||
self.cost_basis: CostBasisPattern2 = CostBasisPattern2(client, acc)
|
||||
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, "utxo_count"))
|
||||
self.realized: RealizedPattern2 = RealizedPattern2(client, acc)
|
||||
self.relative: RelativePattern2 = RelativePattern2(client, acc)
|
||||
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, "supply"))
|
||||
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
||||
|
||||
|
||||
class _0satsPattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.activity: ActivityPattern2 = ActivityPattern2(client, acc)
|
||||
self.cost_basis: CostBasisPattern = CostBasisPattern(client, acc)
|
||||
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, "utxo_count"))
|
||||
self.realized: RealizedPattern = RealizedPattern(client, acc)
|
||||
self.relative: RelativePattern4 = RelativePattern4(client, _m(acc, "supply_in"))
|
||||
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, "supply"))
|
||||
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
||||
|
||||
|
||||
class PeriodCagrPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self._10y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("10y", acc))
|
||||
self._2y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("2y", acc))
|
||||
self._3y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("3y", acc))
|
||||
self._4y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("4y", acc))
|
||||
self._5y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("5y", acc))
|
||||
self._6y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("6y", acc))
|
||||
self._8y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("8y", acc))
|
||||
|
||||
|
||||
class UnrealizedPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -4007,6 +3965,48 @@ class _10yPattern:
|
||||
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
||||
|
||||
|
||||
class _0satsPattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.activity: ActivityPattern2 = ActivityPattern2(client, acc)
|
||||
self.cost_basis: CostBasisPattern = CostBasisPattern(client, acc)
|
||||
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, "utxo_count"))
|
||||
self.realized: RealizedPattern = RealizedPattern(client, acc)
|
||||
self.relative: RelativePattern4 = RelativePattern4(client, _m(acc, "supply_in"))
|
||||
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, "supply"))
|
||||
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
||||
|
||||
|
||||
class _10yTo12yPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.activity: ActivityPattern2 = ActivityPattern2(client, acc)
|
||||
self.cost_basis: CostBasisPattern2 = CostBasisPattern2(client, acc)
|
||||
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, "utxo_count"))
|
||||
self.realized: RealizedPattern2 = RealizedPattern2(client, acc)
|
||||
self.relative: RelativePattern2 = RelativePattern2(client, acc)
|
||||
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, "supply"))
|
||||
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
||||
|
||||
|
||||
class PeriodCagrPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self._10y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("10y", acc))
|
||||
self._2y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("2y", acc))
|
||||
self._3y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("3y", acc))
|
||||
self._4y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("4y", acc))
|
||||
self._5y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("5y", acc))
|
||||
self._6y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("6y", acc))
|
||||
self._8y: MetricPattern4[StoredF32] = MetricPattern4(client, _p("8y", acc))
|
||||
|
||||
|
||||
class ActivityPattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -4040,64 +4040,6 @@ class SplitPattern2(Generic[T]):
|
||||
self.open: MetricPattern1[T] = MetricPattern1(client, _m(acc, "open"))
|
||||
|
||||
|
||||
class CoinbasePattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: BlockCountPattern[Bitcoin] = BlockCountPattern(
|
||||
client, _m(acc, "btc")
|
||||
)
|
||||
self.dollars: BlockCountPattern[Dollars] = BlockCountPattern(
|
||||
client, _m(acc, "usd")
|
||||
)
|
||||
self.sats: BlockCountPattern[Sats] = BlockCountPattern(client, acc)
|
||||
|
||||
|
||||
class SegwitAdoptionPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.base: MetricPattern11[StoredF32] = MetricPattern11(client, acc)
|
||||
self.cumulative: MetricPattern2[StoredF32] = MetricPattern2(
|
||||
client, _m(acc, "cumulative")
|
||||
)
|
||||
self.sum: MetricPattern2[StoredF32] = MetricPattern2(client, _m(acc, "sum"))
|
||||
|
||||
|
||||
class CoinbasePattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: BitcoinPattern = BitcoinPattern(client, _m(acc, "btc"))
|
||||
self.dollars: DollarsPattern[Dollars] = DollarsPattern(client, _m(acc, "usd"))
|
||||
self.sats: DollarsPattern[Sats] = DollarsPattern(client, acc)
|
||||
|
||||
|
||||
class UnclaimedRewardsPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: BitcoinPattern2[Bitcoin] = BitcoinPattern2(client, _m(acc, "btc"))
|
||||
self.dollars: BlockCountPattern[Dollars] = BlockCountPattern(
|
||||
client, _m(acc, "usd")
|
||||
)
|
||||
self.sats: BlockCountPattern[Sats] = BlockCountPattern(client, acc)
|
||||
|
||||
|
||||
class _2015Pattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: MetricPattern4[Bitcoin] = MetricPattern4(client, _m(acc, "btc"))
|
||||
self.dollars: MetricPattern4[Dollars] = MetricPattern4(client, _m(acc, "usd"))
|
||||
self.sats: MetricPattern4[Sats] = MetricPattern4(client, acc)
|
||||
|
||||
|
||||
class CostBasisPattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -4114,6 +4056,26 @@ class CostBasisPattern2:
|
||||
)
|
||||
|
||||
|
||||
class CoinbasePattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: BitcoinPattern = BitcoinPattern(client, _m(acc, "btc"))
|
||||
self.dollars: DollarsPattern[Dollars] = DollarsPattern(client, _m(acc, "usd"))
|
||||
self.sats: DollarsPattern[Sats] = DollarsPattern(client, acc)
|
||||
|
||||
|
||||
class _2015Pattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: MetricPattern4[Bitcoin] = MetricPattern4(client, _m(acc, "btc"))
|
||||
self.dollars: MetricPattern4[Dollars] = MetricPattern4(client, _m(acc, "usd"))
|
||||
self.sats: MetricPattern4[Sats] = MetricPattern4(client, acc)
|
||||
|
||||
|
||||
class ActiveSupplyPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
@@ -4124,17 +4086,62 @@ class ActiveSupplyPattern:
|
||||
self.sats: MetricPattern1[Sats] = MetricPattern1(client, acc)
|
||||
|
||||
|
||||
class CostBasisPattern:
|
||||
class SegwitAdoptionPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.max: MetricPattern1[Dollars] = MetricPattern1(
|
||||
client, _m(acc, "max_cost_basis")
|
||||
self.base: MetricPattern11[StoredF32] = MetricPattern11(client, acc)
|
||||
self.cumulative: MetricPattern2[StoredF32] = MetricPattern2(
|
||||
client, _m(acc, "cumulative")
|
||||
)
|
||||
self.min: MetricPattern1[Dollars] = MetricPattern1(
|
||||
client, _m(acc, "min_cost_basis")
|
||||
self.sum: MetricPattern2[StoredF32] = MetricPattern2(client, _m(acc, "sum"))
|
||||
|
||||
|
||||
class CoinbasePattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: BlockCountPattern[Bitcoin] = BlockCountPattern(
|
||||
client, _m(acc, "btc")
|
||||
)
|
||||
self.dollars: BlockCountPattern[Dollars] = BlockCountPattern(
|
||||
client, _m(acc, "usd")
|
||||
)
|
||||
self.sats: BlockCountPattern[Sats] = BlockCountPattern(client, acc)
|
||||
|
||||
|
||||
class UnclaimedRewardsPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.bitcoin: BitcoinPattern2[Bitcoin] = BitcoinPattern2(client, _m(acc, "btc"))
|
||||
self.dollars: BlockCountPattern[Dollars] = BlockCountPattern(
|
||||
client, _m(acc, "usd")
|
||||
)
|
||||
self.sats: BlockCountPattern[Sats] = BlockCountPattern(client, acc)
|
||||
|
||||
|
||||
class _1dReturns1mSdPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.sd: MetricPattern4[StoredF32] = MetricPattern4(client, _m(acc, "sd"))
|
||||
self.sma: MetricPattern4[StoredF32] = MetricPattern4(client, _m(acc, "sma"))
|
||||
|
||||
|
||||
class SupplyPattern2:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.halved: ActiveSupplyPattern = ActiveSupplyPattern(
|
||||
client, _m(acc, "halved")
|
||||
)
|
||||
self.total: ActiveSupplyPattern = ActiveSupplyPattern(client, acc)
|
||||
|
||||
|
||||
class RelativePattern4:
|
||||
@@ -4150,24 +4157,17 @@ class RelativePattern4:
|
||||
)
|
||||
|
||||
|
||||
class SupplyPattern2:
|
||||
class CostBasisPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.halved: ActiveSupplyPattern = ActiveSupplyPattern(
|
||||
client, _m(acc, "halved")
|
||||
self.max: MetricPattern1[Dollars] = MetricPattern1(
|
||||
client, _m(acc, "max_cost_basis")
|
||||
)
|
||||
self.min: MetricPattern1[Dollars] = MetricPattern1(
|
||||
client, _m(acc, "min_cost_basis")
|
||||
)
|
||||
self.total: ActiveSupplyPattern = ActiveSupplyPattern(client, acc)
|
||||
|
||||
|
||||
class _1dReturns1mSdPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.sd: MetricPattern4[StoredF32] = MetricPattern4(client, _m(acc, "sd"))
|
||||
self.sma: MetricPattern4[StoredF32] = MetricPattern4(client, _m(acc, "sma"))
|
||||
|
||||
|
||||
class BitcoinPattern2(Generic[T]):
|
||||
@@ -4197,16 +4197,8 @@ class SatsPattern(Generic[T]):
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.ohlc: MetricPattern1[T] = MetricPattern1(client, _m(acc, "ohlc"))
|
||||
self.split: SplitPattern2[T] = SplitPattern2(client, acc)
|
||||
|
||||
|
||||
class OutputsPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.utxo_count: MetricPattern1[StoredU64] = MetricPattern1(client, acc)
|
||||
self.ohlc: MetricPattern1[T] = MetricPattern1(client, _m(acc, "ohlc_sats"))
|
||||
self.split: SplitPattern2[T] = SplitPattern2(client, _m(acc, "sats"))
|
||||
|
||||
|
||||
class RealizedPriceExtraPattern:
|
||||
@@ -4217,6 +4209,14 @@ class RealizedPriceExtraPattern:
|
||||
self.ratio: MetricPattern4[StoredF32] = MetricPattern4(client, acc)
|
||||
|
||||
|
||||
class OutputsPattern:
|
||||
"""Pattern struct for repeated tree structure."""
|
||||
|
||||
def __init__(self, client: BrkClientBase, acc: str):
|
||||
"""Create pattern node with accumulated metric name."""
|
||||
self.utxo_count: MetricPattern1[StoredU64] = MetricPattern1(client, acc)
|
||||
|
||||
|
||||
# Metrics tree classes
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user