brk-client 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +55 -39
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -199,9 +199,9 @@
199
199
  /**
200
200
  * Bucket type for cost basis aggregation.
201
201
  * Options: raw (no aggregation), lin200/lin500/lin1000 (linear $200/$500/$1000),
202
- * log10/log50/log100 (logarithmic with 10/50/100 buckets per decade).
202
+ * log10/log50/log100/log200 (logarithmic with 10/50/100/200 buckets per decade).
203
203
  *
204
- * @typedef {("raw"|"lin200"|"lin500"|"lin1000"|"log10"|"log50"|"log100")} CostBasisBucket
204
+ * @typedef {("raw"|"lin200"|"lin500"|"lin1000"|"log10"|"log50"|"log100"|"log200")} CostBasisBucket
205
205
  */
206
206
  /**
207
207
  * Path parameters for cost basis dates endpoint.
@@ -1438,7 +1438,7 @@ function createMetricPattern32(client, name) { return _mp(client, name, _i32); }
1438
1438
  // Reusable structural pattern factories
1439
1439
 
1440
1440
  /**
1441
- * @typedef {Object} AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern
1441
+ * @typedef {Object} AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern
1442
1442
  * @property {MetricPattern6<StoredF64>} adjustedSopr
1443
1443
  * @property {MetricPattern6<StoredF64>} adjustedSopr30dEma
1444
1444
  * @property {MetricPattern6<StoredF64>} adjustedSopr7dEma
@@ -1452,6 +1452,7 @@ function createMetricPattern32(client, name) { return _mp(client, name, _i32); }
1452
1452
  * @property {RatioPattern} investorPriceExtra
1453
1453
  * @property {MetricPattern1<Dollars>} lossValueCreated
1454
1454
  * @property {MetricPattern1<Dollars>} lossValueDestroyed
1455
+ * @property {DollarsSatsPattern} lowerPriceBand
1455
1456
  * @property {MetricPattern4<StoredF32>} mvrv
1456
1457
  * @property {CumulativeSumPattern2<Dollars>} negRealizedLoss
1457
1458
  * @property {CumulativeSumPattern<Dollars>} netRealizedPnl
@@ -1490,17 +1491,18 @@ function createMetricPattern32(client, name) { return _mp(client, name, _i32); }
1490
1491
  * @property {MetricPattern6<StoredF64>} sopr30dEma
1491
1492
  * @property {MetricPattern6<StoredF64>} sopr7dEma
1492
1493
  * @property {MetricPattern1<Dollars>} totalRealizedPnl
1494
+ * @property {DollarsSatsPattern} upperPriceBand
1493
1495
  * @property {MetricPattern1<Dollars>} valueCreated
1494
1496
  * @property {MetricPattern1<Dollars>} valueDestroyed
1495
1497
  */
1496
1498
 
1497
1499
  /**
1498
- * Create a AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern pattern node
1500
+ * Create a AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern pattern node
1499
1501
  * @param {BrkClientBase} client
1500
1502
  * @param {string} acc - Accumulated metric name
1501
- * @returns {AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern}
1503
+ * @returns {AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern}
1502
1504
  */
1503
- function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(client, acc) {
1505
+ function createAdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(client, acc) {
1504
1506
  return {
1505
1507
  adjustedSopr: createMetricPattern6(client, _m(acc, 'adjusted_sopr')),
1506
1508
  adjustedSopr30dEma: createMetricPattern6(client, _m(acc, 'adjusted_sopr_30d_ema')),
@@ -1515,6 +1517,7 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1515
1517
  investorPriceExtra: createRatioPattern(client, _m(acc, 'investor_price_ratio')),
1516
1518
  lossValueCreated: createMetricPattern1(client, _m(acc, 'loss_value_created')),
1517
1519
  lossValueDestroyed: createMetricPattern1(client, _m(acc, 'loss_value_destroyed')),
1520
+ lowerPriceBand: createDollarsSatsPattern(client, _m(acc, 'lower_price_band')),
1518
1521
  mvrv: createMetricPattern4(client, _m(acc, 'mvrv')),
1519
1522
  negRealizedLoss: createCumulativeSumPattern2(client, _m(acc, 'neg_realized_loss')),
1520
1523
  netRealizedPnl: createCumulativeSumPattern(client, _m(acc, 'net_realized_pnl')),
@@ -1553,13 +1556,14 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1553
1556
  sopr30dEma: createMetricPattern6(client, _m(acc, 'sopr_30d_ema')),
1554
1557
  sopr7dEma: createMetricPattern6(client, _m(acc, 'sopr_7d_ema')),
1555
1558
  totalRealizedPnl: createMetricPattern1(client, _m(acc, 'total_realized_pnl')),
1559
+ upperPriceBand: createDollarsSatsPattern(client, _m(acc, 'upper_price_band')),
1556
1560
  valueCreated: createMetricPattern1(client, _m(acc, 'value_created')),
1557
1561
  valueDestroyed: createMetricPattern1(client, _m(acc, 'value_destroyed')),
1558
1562
  };
1559
1563
  }
1560
1564
 
1561
1565
  /**
1562
- * @typedef {Object} AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2
1566
+ * @typedef {Object} AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2
1563
1567
  * @property {MetricPattern6<StoredF64>} adjustedSopr
1564
1568
  * @property {MetricPattern6<StoredF64>} adjustedSopr30dEma
1565
1569
  * @property {MetricPattern6<StoredF64>} adjustedSopr7dEma
@@ -1573,6 +1577,7 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1573
1577
  * @property {RatioPattern2} investorPriceExtra
1574
1578
  * @property {MetricPattern1<Dollars>} lossValueCreated
1575
1579
  * @property {MetricPattern1<Dollars>} lossValueDestroyed
1580
+ * @property {DollarsSatsPattern} lowerPriceBand
1576
1581
  * @property {MetricPattern4<StoredF32>} mvrv
1577
1582
  * @property {CumulativeSumPattern2<Dollars>} negRealizedLoss
1578
1583
  * @property {CumulativeSumPattern<Dollars>} netRealizedPnl
@@ -1609,17 +1614,18 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1609
1614
  * @property {MetricPattern6<StoredF64>} sopr30dEma
1610
1615
  * @property {MetricPattern6<StoredF64>} sopr7dEma
1611
1616
  * @property {MetricPattern1<Dollars>} totalRealizedPnl
1617
+ * @property {DollarsSatsPattern} upperPriceBand
1612
1618
  * @property {MetricPattern1<Dollars>} valueCreated
1613
1619
  * @property {MetricPattern1<Dollars>} valueDestroyed
1614
1620
  */
1615
1621
 
1616
1622
  /**
1617
- * Create a AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2 pattern node
1623
+ * Create a AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2 pattern node
1618
1624
  * @param {BrkClientBase} client
1619
1625
  * @param {string} acc - Accumulated metric name
1620
- * @returns {AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2}
1626
+ * @returns {AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2}
1621
1627
  */
1622
- function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2(client, acc) {
1628
+ function createAdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2(client, acc) {
1623
1629
  return {
1624
1630
  adjustedSopr: createMetricPattern6(client, _m(acc, 'adjusted_sopr')),
1625
1631
  adjustedSopr30dEma: createMetricPattern6(client, _m(acc, 'adjusted_sopr_30d_ema')),
@@ -1634,6 +1640,7 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1634
1640
  investorPriceExtra: createRatioPattern2(client, _m(acc, 'investor_price_ratio')),
1635
1641
  lossValueCreated: createMetricPattern1(client, _m(acc, 'loss_value_created')),
1636
1642
  lossValueDestroyed: createMetricPattern1(client, _m(acc, 'loss_value_destroyed')),
1643
+ lowerPriceBand: createDollarsSatsPattern(client, _m(acc, 'lower_price_band')),
1637
1644
  mvrv: createMetricPattern4(client, _m(acc, 'mvrv')),
1638
1645
  negRealizedLoss: createCumulativeSumPattern2(client, _m(acc, 'neg_realized_loss')),
1639
1646
  netRealizedPnl: createCumulativeSumPattern(client, _m(acc, 'net_realized_pnl')),
@@ -1670,13 +1677,14 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1670
1677
  sopr30dEma: createMetricPattern6(client, _m(acc, 'sopr_30d_ema')),
1671
1678
  sopr7dEma: createMetricPattern6(client, _m(acc, 'sopr_7d_ema')),
1672
1679
  totalRealizedPnl: createMetricPattern1(client, _m(acc, 'total_realized_pnl')),
1680
+ upperPriceBand: createDollarsSatsPattern(client, _m(acc, 'upper_price_band')),
1673
1681
  valueCreated: createMetricPattern1(client, _m(acc, 'value_created')),
1674
1682
  valueDestroyed: createMetricPattern1(client, _m(acc, 'value_destroyed')),
1675
1683
  };
1676
1684
  }
1677
1685
 
1678
1686
  /**
1679
- * @typedef {Object} CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2
1687
+ * @typedef {Object} CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2
1680
1688
  * @property {MetricPattern11<CentsSats>} capRaw
1681
1689
  * @property {MetricPattern1<Dollars>} capitulationFlow
1682
1690
  * @property {MetricPattern11<CentsSquaredSats>} investorCapRaw
@@ -1685,6 +1693,7 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1685
1693
  * @property {RatioPattern} investorPriceExtra
1686
1694
  * @property {MetricPattern1<Dollars>} lossValueCreated
1687
1695
  * @property {MetricPattern1<Dollars>} lossValueDestroyed
1696
+ * @property {DollarsSatsPattern} lowerPriceBand
1688
1697
  * @property {MetricPattern4<StoredF32>} mvrv
1689
1698
  * @property {CumulativeSumPattern2<Dollars>} negRealizedLoss
1690
1699
  * @property {CumulativeSumPattern<Dollars>} netRealizedPnl
@@ -1723,17 +1732,18 @@ function createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSe
1723
1732
  * @property {MetricPattern6<StoredF64>} sopr30dEma
1724
1733
  * @property {MetricPattern6<StoredF64>} sopr7dEma
1725
1734
  * @property {MetricPattern1<Dollars>} totalRealizedPnl
1735
+ * @property {DollarsSatsPattern} upperPriceBand
1726
1736
  * @property {MetricPattern1<Dollars>} valueCreated
1727
1737
  * @property {MetricPattern1<Dollars>} valueDestroyed
1728
1738
  */
1729
1739
 
1730
1740
  /**
1731
- * Create a CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2 pattern node
1741
+ * Create a CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2 pattern node
1732
1742
  * @param {BrkClientBase} client
1733
1743
  * @param {string} acc - Accumulated metric name
1734
- * @returns {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2}
1744
+ * @returns {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2}
1735
1745
  */
1736
- function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2(client, acc) {
1746
+ function createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2(client, acc) {
1737
1747
  return {
1738
1748
  capRaw: createMetricPattern11(client, _m(acc, 'cap_raw')),
1739
1749
  capitulationFlow: createMetricPattern1(client, _m(acc, 'capitulation_flow')),
@@ -1743,6 +1753,7 @@ function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSo
1743
1753
  investorPriceExtra: createRatioPattern(client, _m(acc, 'investor_price_ratio')),
1744
1754
  lossValueCreated: createMetricPattern1(client, _m(acc, 'loss_value_created')),
1745
1755
  lossValueDestroyed: createMetricPattern1(client, _m(acc, 'loss_value_destroyed')),
1756
+ lowerPriceBand: createDollarsSatsPattern(client, _m(acc, 'lower_price_band')),
1746
1757
  mvrv: createMetricPattern4(client, _m(acc, 'mvrv')),
1747
1758
  negRealizedLoss: createCumulativeSumPattern2(client, _m(acc, 'neg_realized_loss')),
1748
1759
  netRealizedPnl: createCumulativeSumPattern(client, _m(acc, 'net_realized_pnl')),
@@ -1781,13 +1792,14 @@ function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSo
1781
1792
  sopr30dEma: createMetricPattern6(client, _m(acc, 'sopr_30d_ema')),
1782
1793
  sopr7dEma: createMetricPattern6(client, _m(acc, 'sopr_7d_ema')),
1783
1794
  totalRealizedPnl: createMetricPattern1(client, _m(acc, 'total_realized_pnl')),
1795
+ upperPriceBand: createDollarsSatsPattern(client, _m(acc, 'upper_price_band')),
1784
1796
  valueCreated: createMetricPattern1(client, _m(acc, 'value_created')),
1785
1797
  valueDestroyed: createMetricPattern1(client, _m(acc, 'value_destroyed')),
1786
1798
  };
1787
1799
  }
1788
1800
 
1789
1801
  /**
1790
- * @typedef {Object} CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern
1802
+ * @typedef {Object} CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern
1791
1803
  * @property {MetricPattern11<CentsSats>} capRaw
1792
1804
  * @property {MetricPattern1<Dollars>} capitulationFlow
1793
1805
  * @property {MetricPattern11<CentsSquaredSats>} investorCapRaw
@@ -1796,6 +1808,7 @@ function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSo
1796
1808
  * @property {RatioPattern2} investorPriceExtra
1797
1809
  * @property {MetricPattern1<Dollars>} lossValueCreated
1798
1810
  * @property {MetricPattern1<Dollars>} lossValueDestroyed
1811
+ * @property {DollarsSatsPattern} lowerPriceBand
1799
1812
  * @property {MetricPattern4<StoredF32>} mvrv
1800
1813
  * @property {CumulativeSumPattern2<Dollars>} negRealizedLoss
1801
1814
  * @property {CumulativeSumPattern<Dollars>} netRealizedPnl
@@ -1832,17 +1845,18 @@ function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSo
1832
1845
  * @property {MetricPattern6<StoredF64>} sopr30dEma
1833
1846
  * @property {MetricPattern6<StoredF64>} sopr7dEma
1834
1847
  * @property {MetricPattern1<Dollars>} totalRealizedPnl
1848
+ * @property {DollarsSatsPattern} upperPriceBand
1835
1849
  * @property {MetricPattern1<Dollars>} valueCreated
1836
1850
  * @property {MetricPattern1<Dollars>} valueDestroyed
1837
1851
  */
1838
1852
 
1839
1853
  /**
1840
- * Create a CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern pattern node
1854
+ * Create a CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern pattern node
1841
1855
  * @param {BrkClientBase} client
1842
1856
  * @param {string} acc - Accumulated metric name
1843
- * @returns {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern}
1857
+ * @returns {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern}
1844
1858
  */
1845
- function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(client, acc) {
1859
+ function createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(client, acc) {
1846
1860
  return {
1847
1861
  capRaw: createMetricPattern11(client, _m(acc, 'cap_raw')),
1848
1862
  capitulationFlow: createMetricPattern1(client, _m(acc, 'capitulation_flow')),
@@ -1852,6 +1866,7 @@ function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSo
1852
1866
  investorPriceExtra: createRatioPattern2(client, _m(acc, 'investor_price_ratio')),
1853
1867
  lossValueCreated: createMetricPattern1(client, _m(acc, 'loss_value_created')),
1854
1868
  lossValueDestroyed: createMetricPattern1(client, _m(acc, 'loss_value_destroyed')),
1869
+ lowerPriceBand: createDollarsSatsPattern(client, _m(acc, 'lower_price_band')),
1855
1870
  mvrv: createMetricPattern4(client, _m(acc, 'mvrv')),
1856
1871
  negRealizedLoss: createCumulativeSumPattern2(client, _m(acc, 'neg_realized_loss')),
1857
1872
  netRealizedPnl: createCumulativeSumPattern(client, _m(acc, 'net_realized_pnl')),
@@ -1888,6 +1903,7 @@ function createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSo
1888
1903
  sopr30dEma: createMetricPattern6(client, _m(acc, 'sopr_30d_ema')),
1889
1904
  sopr7dEma: createMetricPattern6(client, _m(acc, 'sopr_7d_ema')),
1890
1905
  totalRealizedPnl: createMetricPattern1(client, _m(acc, 'total_realized_pnl')),
1906
+ upperPriceBand: createDollarsSatsPattern(client, _m(acc, 'upper_price_band')),
1891
1907
  valueCreated: createMetricPattern1(client, _m(acc, 'value_created')),
1892
1908
  valueDestroyed: createMetricPattern1(client, _m(acc, 'value_destroyed')),
1893
1909
  };
@@ -2683,7 +2699,7 @@ function createAverageCumulativeMaxMedianMinPct10Pct25Pct75Pct90SumPattern2(clie
2683
2699
  * @property {MetricPattern4<StoredF64>} addrCount30dChange
2684
2700
  * @property {MaxMinPattern} costBasis
2685
2701
  * @property {UtxoPattern} outputs
2686
- * @property {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern} realized
2702
+ * @property {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern} realized
2687
2703
  * @property {InvestedNegNetNuplSupplyUnrealizedPattern} relative
2688
2704
  * @property {_30dHalvedTotalPattern} supply
2689
2705
  * @property {GreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern} unrealized
@@ -2702,7 +2718,7 @@ function createActivityAddrCostOutputsRealizedRelativeSupplyUnrealizedPattern(cl
2702
2718
  addrCount30dChange: createMetricPattern4(client, _m(acc, 'addr_count_30d_change')),
2703
2719
  costBasis: createMaxMinPattern(client, acc),
2704
2720
  outputs: createUtxoPattern(client, _m(acc, 'utxo_count')),
2705
- realized: createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(client, acc),
2721
+ realized: createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(client, acc),
2706
2722
  relative: createInvestedNegNetNuplSupplyUnrealizedPattern(client, acc),
2707
2723
  supply: create_30dHalvedTotalPattern(client, acc),
2708
2724
  unrealized: createGreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern(client, acc),
@@ -2846,7 +2862,7 @@ function create_10y2y3y4y5y6y8yPattern(client, acc) {
2846
2862
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
2847
2863
  * @property {InvestedMaxMinPercentilesSpotPattern} costBasis
2848
2864
  * @property {UtxoPattern} outputs
2849
- * @property {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2} realized
2865
+ * @property {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2} realized
2850
2866
  * @property {InvestedNegNetSupplyUnrealizedPattern} relative
2851
2867
  * @property {_30dHalvedTotalPattern} supply
2852
2868
  * @property {GreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern} unrealized
@@ -2863,7 +2879,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern(client
2863
2879
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(client, acc),
2864
2880
  costBasis: createInvestedMaxMinPercentilesSpotPattern(client, acc),
2865
2881
  outputs: createUtxoPattern(client, _m(acc, 'utxo_count')),
2866
- realized: createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2(client, acc),
2882
+ realized: createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2(client, acc),
2867
2883
  relative: createInvestedNegNetSupplyUnrealizedPattern(client, acc),
2868
2884
  supply: create_30dHalvedTotalPattern(client, acc),
2869
2885
  unrealized: createGreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern(client, acc),
@@ -2875,7 +2891,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern(client
2875
2891
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
2876
2892
  * @property {MaxMinPattern} costBasis
2877
2893
  * @property {UtxoPattern} outputs
2878
- * @property {AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2} realized
2894
+ * @property {AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2} realized
2879
2895
  * @property {InvestedNegNetNuplSupplyUnrealizedPattern3} relative
2880
2896
  * @property {_30dHalvedTotalPattern} supply
2881
2897
  * @property {GreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern} unrealized
@@ -2892,7 +2908,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern5(clien
2892
2908
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(client, acc),
2893
2909
  costBasis: createMaxMinPattern(client, acc),
2894
2910
  outputs: createUtxoPattern(client, _m(acc, 'utxo_count')),
2895
- realized: createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2(client, acc),
2911
+ realized: createAdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2(client, acc),
2896
2912
  relative: createInvestedNegNetNuplSupplyUnrealizedPattern3(client, acc),
2897
2913
  supply: create_30dHalvedTotalPattern(client, acc),
2898
2914
  unrealized: createGreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern(client, acc),
@@ -2904,7 +2920,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern5(clien
2904
2920
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
2905
2921
  * @property {MaxMinPattern} costBasis
2906
2922
  * @property {UtxoPattern} outputs
2907
- * @property {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern} realized
2923
+ * @property {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern} realized
2908
2924
  * @property {InvestedNegNetNuplSupplyUnrealizedPattern} relative
2909
2925
  * @property {_30dHalvedTotalPattern} supply
2910
2926
  * @property {GreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern} unrealized
@@ -2921,7 +2937,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern4(clien
2921
2937
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(client, acc),
2922
2938
  costBasis: createMaxMinPattern(client, acc),
2923
2939
  outputs: createUtxoPattern(client, _m(acc, 'utxo_count')),
2924
- realized: createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(client, acc),
2940
+ realized: createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(client, acc),
2925
2941
  relative: createInvestedNegNetNuplSupplyUnrealizedPattern(client, acc),
2926
2942
  supply: create_30dHalvedTotalPattern(client, acc),
2927
2943
  unrealized: createGreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern(client, acc),
@@ -2933,7 +2949,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern4(clien
2933
2949
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
2934
2950
  * @property {MaxMinPattern} costBasis
2935
2951
  * @property {UtxoPattern} outputs
2936
- * @property {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern} realized
2952
+ * @property {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern} realized
2937
2953
  * @property {InvestedNegNetNuplSupplyUnrealizedPattern3} relative
2938
2954
  * @property {_30dHalvedTotalPattern} supply
2939
2955
  * @property {GreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern} unrealized
@@ -2950,7 +2966,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern6(clien
2950
2966
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(client, acc),
2951
2967
  costBasis: createMaxMinPattern(client, acc),
2952
2968
  outputs: createUtxoPattern(client, _m(acc, 'utxo_count')),
2953
- realized: createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(client, acc),
2969
+ realized: createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(client, acc),
2954
2970
  relative: createInvestedNegNetNuplSupplyUnrealizedPattern3(client, acc),
2955
2971
  supply: create_30dHalvedTotalPattern(client, acc),
2956
2972
  unrealized: createGreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern(client, acc),
@@ -2962,7 +2978,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern6(clien
2962
2978
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
2963
2979
  * @property {MaxMinPattern} costBasis
2964
2980
  * @property {UtxoPattern} outputs
2965
- * @property {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern} realized
2981
+ * @property {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern} realized
2966
2982
  * @property {InvestedSupplyPattern} relative
2967
2983
  * @property {_30dHalvedTotalPattern} supply
2968
2984
  * @property {GreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern} unrealized
@@ -2979,7 +2995,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern3(clien
2979
2995
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(client, acc),
2980
2996
  costBasis: createMaxMinPattern(client, acc),
2981
2997
  outputs: createUtxoPattern(client, _m(acc, 'utxo_count')),
2982
- realized: createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(client, acc),
2998
+ realized: createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(client, acc),
2983
2999
  relative: createInvestedSupplyPattern(client, acc),
2984
3000
  supply: create_30dHalvedTotalPattern(client, acc),
2985
3001
  unrealized: createGreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern(client, acc),
@@ -2991,7 +3007,7 @@ function createActivityCostOutputsRealizedRelativeSupplyUnrealizedPattern3(clien
2991
3007
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
2992
3008
  * @property {MaxMinPattern} costBasis
2993
3009
  * @property {UtxoPattern} outputs
2994
- * @property {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern} realized
3010
+ * @property {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern} realized
2995
3011
  * @property {_30dHalvedTotalPattern} supply
2996
3012
  * @property {GreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern} unrealized
2997
3013
  */
@@ -3007,7 +3023,7 @@ function createActivityCostOutputsRealizedSupplyUnrealizedPattern(client, acc) {
3007
3023
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(client, acc),
3008
3024
  costBasis: createMaxMinPattern(client, acc),
3009
3025
  outputs: createUtxoPattern(client, _m(acc, 'utxo_count')),
3010
- realized: createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(client, acc),
3026
+ realized: createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(client, acc),
3011
3027
  supply: create_30dHalvedTotalPattern(client, acc),
3012
3028
  unrealized: createGreedInvestedInvestorNegNetPainSupplyTotalUnrealizedPattern(client, acc),
3013
3029
  };
@@ -4611,7 +4627,7 @@ function createRatioPattern2(client, acc) {
4611
4627
  * @property {_30dHalvedTotalPattern} supply
4612
4628
  * @property {UtxoPattern} outputs
4613
4629
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
4614
- * @property {AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern} realized
4630
+ * @property {AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern} realized
4615
4631
  * @property {GreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern} unrealized
4616
4632
  * @property {InvestedMaxMinPercentilesSpotPattern} costBasis
4617
4633
  * @property {MetricsTree_Distribution_UtxoCohorts_All_Relative} relative
@@ -4760,7 +4776,7 @@ function createRatioPattern2(client, acc) {
4760
4776
  * @property {_30dHalvedTotalPattern} supply
4761
4777
  * @property {UtxoPattern} outputs
4762
4778
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
4763
- * @property {AdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern} realized
4779
+ * @property {AdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern} realized
4764
4780
  * @property {GreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern} unrealized
4765
4781
  * @property {InvestedMaxMinPercentilesSpotPattern} costBasis
4766
4782
  * @property {InvestedNegNetNuplSupplyUnrealizedPattern4} relative
@@ -4771,7 +4787,7 @@ function createRatioPattern2(client, acc) {
4771
4787
  * @property {_30dHalvedTotalPattern} supply
4772
4788
  * @property {UtxoPattern} outputs
4773
4789
  * @property {CoinblocksCoindaysSatblocksSatdaysSentPattern} activity
4774
- * @property {CapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2} realized
4790
+ * @property {CapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2} realized
4775
4791
  * @property {GreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern} unrealized
4776
4792
  * @property {InvestedMaxMinPercentilesSpotPattern} costBasis
4777
4793
  * @property {InvestedNegNetNuplSupplyUnrealizedPattern4} relative
@@ -4976,7 +4992,7 @@ function createRatioPattern2(client, acc) {
4976
4992
  * @extends BrkClientBase
4977
4993
  */
4978
4994
  class BrkClient extends BrkClientBase {
4979
- VERSION = "v0.1.6";
4995
+ VERSION = "v0.1.7";
4980
4996
 
4981
4997
  INDEXES = /** @type {const} */ ([
4982
4998
  "dateindex",
@@ -6736,7 +6752,7 @@ class BrkClient extends BrkClientBase {
6736
6752
  supply: create_30dHalvedTotalPattern(this, ''),
6737
6753
  outputs: createUtxoPattern(this, 'utxo_count'),
6738
6754
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(this, ''),
6739
- realized: createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(this, ''),
6755
+ realized: createAdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(this, ''),
6740
6756
  unrealized: createGreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern(this, ''),
6741
6757
  costBasis: createInvestedMaxMinPercentilesSpotPattern(this, ''),
6742
6758
  relative: {
@@ -6863,7 +6879,7 @@ class BrkClient extends BrkClientBase {
6863
6879
  supply: create_30dHalvedTotalPattern(this, 'sth'),
6864
6880
  outputs: createUtxoPattern(this, 'sth_utxo_count'),
6865
6881
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(this, 'sth'),
6866
- realized: createAdjustedCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern(this, 'sth'),
6882
+ realized: createAdjustedCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern(this, 'sth'),
6867
6883
  unrealized: createGreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern(this, 'sth'),
6868
6884
  costBasis: createInvestedMaxMinPercentilesSpotPattern(this, 'sth'),
6869
6885
  relative: createInvestedNegNetNuplSupplyUnrealizedPattern4(this, 'sth'),
@@ -6872,7 +6888,7 @@ class BrkClient extends BrkClientBase {
6872
6888
  supply: create_30dHalvedTotalPattern(this, 'lth'),
6873
6889
  outputs: createUtxoPattern(this, 'lth_utxo_count'),
6874
6890
  activity: createCoinblocksCoindaysSatblocksSatdaysSentPattern(this, 'lth'),
6875
- realized: createCapCapitulationInvestorLossMvrvNegNetPeakProfitRealizedSellSentSoprTotalValuePattern2(this, 'lth'),
6891
+ realized: createCapCapitulationInvestorLossLowerMvrvNegNetPeakProfitRealizedSellSentSoprTotalUpperValuePattern2(this, 'lth'),
6876
6892
  unrealized: createGreedInvestedInvestorNegNetPainPeakSupplyTotalUnrealizedPattern(this, 'lth'),
6877
6893
  costBasis: createInvestedMaxMinPercentilesSpotPattern(this, 'lth'),
6878
6894
  relative: createInvestedNegNetNuplSupplyUnrealizedPattern4(this, 'lth'),
package/package.json CHANGED
@@ -34,5 +34,5 @@
34
34
  "url": "git+https://github.com/bitcoinresearchkit/brk.git"
35
35
  },
36
36
  "type": "module",
37
- "version": "0.1.6"
37
+ "version": "0.1.7"
38
38
  }