brk-client 0.3.3 → 0.3.4

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 +517 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2506,6 +2506,22 @@ function create_10y1m1w1y2y3m3y4y5y6m6y8yPattern3(client, acc) {
2506
2506
  * @property {AdjustedRatioValuePattern} sopr
2507
2507
  */
2508
2508
 
2509
+ /**
2510
+ * @typedef {Object} CapCapitalizedGrossLossMvrvNetPeakPriceProfitSellSoprPattern2
2511
+ * @property {CentsDeltaToUsdPattern} cap
2512
+ * @property {PricePattern} capitalized
2513
+ * @property {BlockCumulativeSumPattern} grossPnl
2514
+ * @property {BlockCumulativeNegativeSumPattern} loss
2515
+ * @property {SeriesPattern1<StoredF32>} mvrv
2516
+ * @property {BlockChangeCumulativeDeltaSumPattern} netPnl
2517
+ * @property {BlockCumulativeSumPattern} peakRegret
2518
+ * @property {BpsCentsPercentilesRatioSatsSmaStdUsdPattern} price
2519
+ * @property {BlockCumulativeSumPattern} profit
2520
+ * @property {_1m1w1y24hPattern<StoredF64>} profitToLossRatio
2521
+ * @property {_1m1w1y24hPattern8} sellSideRiskRatio
2522
+ * @property {RatioValuePattern2} sopr
2523
+ */
2524
+
2509
2525
  /**
2510
2526
  * @typedef {Object} EmptyOpP2aP2msP2pk33P2pk65P2pkhP2shP2trP2wpkhP2wshUnknownPattern2
2511
2527
  * @property {_1m1w1y24hBpsPercentRatioPattern} empty
@@ -3017,6 +3033,17 @@ function create_1m1w1y24hBpsPercentRatioPattern(client, acc) {
3017
3033
  * @property {_1m1w1y24hBpsPercentRatioPattern} spendableOutputToReusedAddrShare
3018
3034
  */
3019
3035
 
3036
+ /**
3037
+ * @typedef {Object} ActivityCostInvestedOutputsRealizedSupplyUnrealizedPattern2
3038
+ * @property {CoindaysCoinyearsDormancyTransferPattern} activity
3039
+ * @property {InMaxMinPerSupplyPattern} costBasis
3040
+ * @property {InPattern} investedCapital
3041
+ * @property {SpendingSpentUnspentPattern} outputs
3042
+ * @property {CapCapitalizedGrossLossMvrvNetPeakPriceProfitSellSoprPattern2} realized
3043
+ * @property {DeltaDominanceHalfInTotalPattern2} supply
3044
+ * @property {CapitalizedGrossInvestedLossNetNuplProfitSentimentPattern2} unrealized
3045
+ */
3046
+
3020
3047
  /**
3021
3048
  * @typedef {Object} CapLossMvrvNetPriceProfitSoprPattern
3022
3049
  * @property {CentsDeltaUsdPattern} cap
@@ -5046,6 +5073,25 @@ function createPriceRatioPattern(client, acc, disc) {
5046
5073
  };
5047
5074
  }
5048
5075
 
5076
+ /**
5077
+ * @typedef {Object} RatioValuePattern2
5078
+ * @property {_1m1w1y24hPattern<StoredF64>} ratio
5079
+ * @property {AverageBlockCumulativeSumPattern<Cents>} valueDestroyed
5080
+ */
5081
+
5082
+ /**
5083
+ * Create a RatioValuePattern2 pattern node
5084
+ * @param {BrkClient} client
5085
+ * @param {string} acc - Accumulated series name
5086
+ * @returns {RatioValuePattern2}
5087
+ */
5088
+ function createRatioValuePattern2(client, acc) {
5089
+ return {
5090
+ ratio: create_1m1w1y24hPattern(client, _m(acc, 'sopr')),
5091
+ valueDestroyed: createAverageBlockCumulativeSumPattern(client, _m(acc, 'value_destroyed')),
5092
+ };
5093
+ }
5094
+
5049
5095
  /**
5050
5096
  * @typedef {Object} RatioValuePattern
5051
5097
  * @property {_24hPattern} ratio
@@ -6787,6 +6833,7 @@ function createTransferPattern(client, acc) {
6787
6833
  * @property {SeriesTree_Cohorts_Utxo_OverAge} overAge
6788
6834
  * @property {SeriesTree_Cohorts_Utxo_Epoch} epoch
6789
6835
  * @property {SeriesTree_Cohorts_Utxo_Class} class
6836
+ * @property {SeriesTree_Cohorts_Utxo_Entry} entry
6790
6837
  * @property {SeriesTree_Cohorts_Utxo_OverAmount} overAmount
6791
6838
  * @property {SeriesTree_Cohorts_Utxo_AmountRange} amountRange
6792
6839
  * @property {SeriesTree_Cohorts_Utxo_UnderAmount} underAmount
@@ -7144,7 +7191,7 @@ function createTransferPattern(client, acc) {
7144
7191
  * @property {SeriesTree_Cohorts_Utxo_Lth_Realized_Price} price
7145
7192
  * @property {SeriesPattern1<StoredF32>} mvrv
7146
7193
  * @property {BlockChangeCumulativeDeltaSumPattern} netPnl
7147
- * @property {SeriesTree_Cohorts_Utxo_Lth_Realized_Sopr} sopr
7194
+ * @property {RatioValuePattern2} sopr
7148
7195
  * @property {BlockCumulativeSumPattern} grossPnl
7149
7196
  * @property {_1m1w1y24hPattern8} sellSideRiskRatio
7150
7197
  * @property {BlockCumulativeSumPattern} peakRegret
@@ -7248,12 +7295,6 @@ function createTransferPattern(client, acc) {
7248
7295
  * @property {PriceRatioPattern} m3sd
7249
7296
  */
7250
7297
 
7251
- /**
7252
- * @typedef {Object} SeriesTree_Cohorts_Utxo_Lth_Realized_Sopr
7253
- * @property {AverageBlockCumulativeSumPattern<Cents>} valueDestroyed
7254
- * @property {_1m1w1y24hPattern<StoredF64>} ratio
7255
- */
7256
-
7257
7298
  /**
7258
7299
  * @typedef {Object} SeriesTree_Cohorts_Utxo_AgeRange
7259
7300
  * @property {ActivityOutputsRealizedSupplyUnrealizedPattern} under1h
@@ -7354,6 +7395,258 @@ function createTransferPattern(client, acc) {
7354
7395
  * @property {ActivityOutputsRealizedSupplyUnrealizedPattern} _2026
7355
7396
  */
7356
7397
 
7398
+ /**
7399
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry
7400
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount} discount
7401
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium} premium
7402
+ */
7403
+
7404
+ /**
7405
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount
7406
+ * @property {DeltaDominanceHalfInTotalPattern2} supply
7407
+ * @property {SpendingSpentUnspentPattern} outputs
7408
+ * @property {CoindaysCoinyearsDormancyTransferPattern} activity
7409
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount_Realized} realized
7410
+ * @property {InMaxMinPerSupplyPattern} costBasis
7411
+ * @property {CapitalizedGrossInvestedLossNetNuplProfitSentimentPattern2} unrealized
7412
+ * @property {InPattern} investedCapital
7413
+ */
7414
+
7415
+ /**
7416
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount_Realized
7417
+ * @property {CentsDeltaToUsdPattern} cap
7418
+ * @property {BlockCumulativeSumPattern} profit
7419
+ * @property {BlockCumulativeNegativeSumPattern} loss
7420
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price} price
7421
+ * @property {SeriesPattern1<StoredF32>} mvrv
7422
+ * @property {BlockChangeCumulativeDeltaSumPattern} netPnl
7423
+ * @property {RatioValuePattern2} sopr
7424
+ * @property {BlockCumulativeSumPattern} grossPnl
7425
+ * @property {_1m1w1y24hPattern8} sellSideRiskRatio
7426
+ * @property {BlockCumulativeSumPattern} peakRegret
7427
+ * @property {PricePattern} capitalized
7428
+ * @property {_1m1w1y24hPattern<StoredF64>} profitToLossRatio
7429
+ */
7430
+
7431
+ /**
7432
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price
7433
+ * @property {SeriesPattern1<Dollars>} usd
7434
+ * @property {SeriesPattern1<Cents>} cents
7435
+ * @property {SeriesPattern1<SatsFract>} sats
7436
+ * @property {SeriesPattern1<BasisPoints32>} bps
7437
+ * @property {SeriesPattern1<StoredF32>} ratio
7438
+ * @property {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern} percentiles
7439
+ * @property {_1m1w1y2y4yAllPattern} sma
7440
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev} stdDev
7441
+ */
7442
+
7443
+ /**
7444
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev
7445
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_All} all
7446
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_4y} _4y
7447
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_2y} _2y
7448
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_1y} _1y
7449
+ */
7450
+
7451
+ /**
7452
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_All
7453
+ * @property {SeriesPattern1<StoredF32>} sd
7454
+ * @property {SeriesPattern1<StoredF32>} zscore
7455
+ * @property {CentsSatsUsdPattern} _0sd
7456
+ * @property {PriceRatioPattern} p05sd
7457
+ * @property {PriceRatioPattern} p1sd
7458
+ * @property {PriceRatioPattern} p15sd
7459
+ * @property {PriceRatioPattern} p2sd
7460
+ * @property {PriceRatioPattern} p25sd
7461
+ * @property {PriceRatioPattern} p3sd
7462
+ * @property {PriceRatioPattern} m05sd
7463
+ * @property {PriceRatioPattern} m1sd
7464
+ * @property {PriceRatioPattern} m15sd
7465
+ * @property {PriceRatioPattern} m2sd
7466
+ * @property {PriceRatioPattern} m25sd
7467
+ * @property {PriceRatioPattern} m3sd
7468
+ */
7469
+
7470
+ /**
7471
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_4y
7472
+ * @property {SeriesPattern1<StoredF32>} sd
7473
+ * @property {SeriesPattern1<StoredF32>} zscore
7474
+ * @property {CentsSatsUsdPattern} _0sd
7475
+ * @property {PriceRatioPattern} p05sd
7476
+ * @property {PriceRatioPattern} p1sd
7477
+ * @property {PriceRatioPattern} p15sd
7478
+ * @property {PriceRatioPattern} p2sd
7479
+ * @property {PriceRatioPattern} p25sd
7480
+ * @property {PriceRatioPattern} p3sd
7481
+ * @property {PriceRatioPattern} m05sd
7482
+ * @property {PriceRatioPattern} m1sd
7483
+ * @property {PriceRatioPattern} m15sd
7484
+ * @property {PriceRatioPattern} m2sd
7485
+ * @property {PriceRatioPattern} m25sd
7486
+ * @property {PriceRatioPattern} m3sd
7487
+ */
7488
+
7489
+ /**
7490
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_2y
7491
+ * @property {SeriesPattern1<StoredF32>} sd
7492
+ * @property {SeriesPattern1<StoredF32>} zscore
7493
+ * @property {CentsSatsUsdPattern} _0sd
7494
+ * @property {PriceRatioPattern} p05sd
7495
+ * @property {PriceRatioPattern} p1sd
7496
+ * @property {PriceRatioPattern} p15sd
7497
+ * @property {PriceRatioPattern} p2sd
7498
+ * @property {PriceRatioPattern} p25sd
7499
+ * @property {PriceRatioPattern} p3sd
7500
+ * @property {PriceRatioPattern} m05sd
7501
+ * @property {PriceRatioPattern} m1sd
7502
+ * @property {PriceRatioPattern} m15sd
7503
+ * @property {PriceRatioPattern} m2sd
7504
+ * @property {PriceRatioPattern} m25sd
7505
+ * @property {PriceRatioPattern} m3sd
7506
+ */
7507
+
7508
+ /**
7509
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Discount_Realized_Price_StdDev_1y
7510
+ * @property {SeriesPattern1<StoredF32>} sd
7511
+ * @property {SeriesPattern1<StoredF32>} zscore
7512
+ * @property {CentsSatsUsdPattern} _0sd
7513
+ * @property {PriceRatioPattern} p05sd
7514
+ * @property {PriceRatioPattern} p1sd
7515
+ * @property {PriceRatioPattern} p15sd
7516
+ * @property {PriceRatioPattern} p2sd
7517
+ * @property {PriceRatioPattern} p25sd
7518
+ * @property {PriceRatioPattern} p3sd
7519
+ * @property {PriceRatioPattern} m05sd
7520
+ * @property {PriceRatioPattern} m1sd
7521
+ * @property {PriceRatioPattern} m15sd
7522
+ * @property {PriceRatioPattern} m2sd
7523
+ * @property {PriceRatioPattern} m25sd
7524
+ * @property {PriceRatioPattern} m3sd
7525
+ */
7526
+
7527
+ /**
7528
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium
7529
+ * @property {DeltaDominanceHalfInTotalPattern2} supply
7530
+ * @property {SpendingSpentUnspentPattern} outputs
7531
+ * @property {CoindaysCoinyearsDormancyTransferPattern} activity
7532
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium_Realized} realized
7533
+ * @property {InMaxMinPerSupplyPattern} costBasis
7534
+ * @property {CapitalizedGrossInvestedLossNetNuplProfitSentimentPattern2} unrealized
7535
+ * @property {InPattern} investedCapital
7536
+ */
7537
+
7538
+ /**
7539
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium_Realized
7540
+ * @property {CentsDeltaToUsdPattern} cap
7541
+ * @property {BlockCumulativeSumPattern} profit
7542
+ * @property {BlockCumulativeNegativeSumPattern} loss
7543
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price} price
7544
+ * @property {SeriesPattern1<StoredF32>} mvrv
7545
+ * @property {BlockChangeCumulativeDeltaSumPattern} netPnl
7546
+ * @property {RatioValuePattern2} sopr
7547
+ * @property {BlockCumulativeSumPattern} grossPnl
7548
+ * @property {_1m1w1y24hPattern8} sellSideRiskRatio
7549
+ * @property {BlockCumulativeSumPattern} peakRegret
7550
+ * @property {PricePattern} capitalized
7551
+ * @property {_1m1w1y24hPattern<StoredF64>} profitToLossRatio
7552
+ */
7553
+
7554
+ /**
7555
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price
7556
+ * @property {SeriesPattern1<Dollars>} usd
7557
+ * @property {SeriesPattern1<Cents>} cents
7558
+ * @property {SeriesPattern1<SatsFract>} sats
7559
+ * @property {SeriesPattern1<BasisPoints32>} bps
7560
+ * @property {SeriesPattern1<StoredF32>} ratio
7561
+ * @property {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern} percentiles
7562
+ * @property {_1m1w1y2y4yAllPattern} sma
7563
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev} stdDev
7564
+ */
7565
+
7566
+ /**
7567
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev
7568
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_All} all
7569
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_4y} _4y
7570
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_2y} _2y
7571
+ * @property {SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_1y} _1y
7572
+ */
7573
+
7574
+ /**
7575
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_All
7576
+ * @property {SeriesPattern1<StoredF32>} sd
7577
+ * @property {SeriesPattern1<StoredF32>} zscore
7578
+ * @property {CentsSatsUsdPattern} _0sd
7579
+ * @property {PriceRatioPattern} p05sd
7580
+ * @property {PriceRatioPattern} p1sd
7581
+ * @property {PriceRatioPattern} p15sd
7582
+ * @property {PriceRatioPattern} p2sd
7583
+ * @property {PriceRatioPattern} p25sd
7584
+ * @property {PriceRatioPattern} p3sd
7585
+ * @property {PriceRatioPattern} m05sd
7586
+ * @property {PriceRatioPattern} m1sd
7587
+ * @property {PriceRatioPattern} m15sd
7588
+ * @property {PriceRatioPattern} m2sd
7589
+ * @property {PriceRatioPattern} m25sd
7590
+ * @property {PriceRatioPattern} m3sd
7591
+ */
7592
+
7593
+ /**
7594
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_4y
7595
+ * @property {SeriesPattern1<StoredF32>} sd
7596
+ * @property {SeriesPattern1<StoredF32>} zscore
7597
+ * @property {CentsSatsUsdPattern} _0sd
7598
+ * @property {PriceRatioPattern} p05sd
7599
+ * @property {PriceRatioPattern} p1sd
7600
+ * @property {PriceRatioPattern} p15sd
7601
+ * @property {PriceRatioPattern} p2sd
7602
+ * @property {PriceRatioPattern} p25sd
7603
+ * @property {PriceRatioPattern} p3sd
7604
+ * @property {PriceRatioPattern} m05sd
7605
+ * @property {PriceRatioPattern} m1sd
7606
+ * @property {PriceRatioPattern} m15sd
7607
+ * @property {PriceRatioPattern} m2sd
7608
+ * @property {PriceRatioPattern} m25sd
7609
+ * @property {PriceRatioPattern} m3sd
7610
+ */
7611
+
7612
+ /**
7613
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_2y
7614
+ * @property {SeriesPattern1<StoredF32>} sd
7615
+ * @property {SeriesPattern1<StoredF32>} zscore
7616
+ * @property {CentsSatsUsdPattern} _0sd
7617
+ * @property {PriceRatioPattern} p05sd
7618
+ * @property {PriceRatioPattern} p1sd
7619
+ * @property {PriceRatioPattern} p15sd
7620
+ * @property {PriceRatioPattern} p2sd
7621
+ * @property {PriceRatioPattern} p25sd
7622
+ * @property {PriceRatioPattern} p3sd
7623
+ * @property {PriceRatioPattern} m05sd
7624
+ * @property {PriceRatioPattern} m1sd
7625
+ * @property {PriceRatioPattern} m15sd
7626
+ * @property {PriceRatioPattern} m2sd
7627
+ * @property {PriceRatioPattern} m25sd
7628
+ * @property {PriceRatioPattern} m3sd
7629
+ */
7630
+
7631
+ /**
7632
+ * @typedef {Object} SeriesTree_Cohorts_Utxo_Entry_Premium_Realized_Price_StdDev_1y
7633
+ * @property {SeriesPattern1<StoredF32>} sd
7634
+ * @property {SeriesPattern1<StoredF32>} zscore
7635
+ * @property {CentsSatsUsdPattern} _0sd
7636
+ * @property {PriceRatioPattern} p05sd
7637
+ * @property {PriceRatioPattern} p1sd
7638
+ * @property {PriceRatioPattern} p15sd
7639
+ * @property {PriceRatioPattern} p2sd
7640
+ * @property {PriceRatioPattern} p25sd
7641
+ * @property {PriceRatioPattern} p3sd
7642
+ * @property {PriceRatioPattern} m05sd
7643
+ * @property {PriceRatioPattern} m1sd
7644
+ * @property {PriceRatioPattern} m15sd
7645
+ * @property {PriceRatioPattern} m2sd
7646
+ * @property {PriceRatioPattern} m25sd
7647
+ * @property {PriceRatioPattern} m3sd
7648
+ */
7649
+
7357
7650
  /**
7358
7651
  * @typedef {Object} SeriesTree_Cohorts_Utxo_OverAmount
7359
7652
  * @property {ActivityOutputsRealizedSupplyUnrealizedPattern2} _1sat
@@ -7579,7 +7872,7 @@ function createTransferPattern(client, acc) {
7579
7872
  * @extends BrkClientBase
7580
7873
  */
7581
7874
  class BrkClient extends BrkClientBase {
7582
- VERSION = "v0.3.3";
7875
+ VERSION = "v0.3.4";
7583
7876
 
7584
7877
  INDEXES = /** @type {const} */ ([
7585
7878
  "minute10",
@@ -7919,6 +8212,19 @@ class BrkClient extends BrkClientBase {
7919
8212
  }
7920
8213
  });
7921
8214
 
8215
+ ENTRY_NAMES = /** @type {const} */ ({
8216
+ "discount": {
8217
+ "id": "veteran",
8218
+ "short": "Veteran",
8219
+ "long": "Veteran Coins"
8220
+ },
8221
+ "premium": {
8222
+ "id": "rookie",
8223
+ "short": "Rookie",
8224
+ "long": "Rookie Coins"
8225
+ }
8226
+ });
8227
+
7922
8228
  SPENDABLE_TYPE_NAMES = /** @type {const} */ ({
7923
8229
  "p2pk65": {
7924
8230
  "id": "p2pk65",
@@ -10239,10 +10545,7 @@ class BrkClient extends BrkClientBase {
10239
10545
  },
10240
10546
  mvrv: createSeriesPattern1(this, 'lth_mvrv'),
10241
10547
  netPnl: createBlockChangeCumulativeDeltaSumPattern(this, 'lth_net'),
10242
- sopr: {
10243
- valueDestroyed: createAverageBlockCumulativeSumPattern(this, 'lth_value_destroyed'),
10244
- ratio: create_1m1w1y24hPattern(this, 'lth_sopr'),
10245
- },
10548
+ sopr: createRatioValuePattern2(this, 'lth'),
10246
10549
  grossPnl: createBlockCumulativeSumPattern(this, 'lth_realized_gross_pnl'),
10247
10550
  sellSideRiskRatio: create_1m1w1y24hPattern8(this, 'lth_sell_side_risk_ratio'),
10248
10551
  peakRegret: createBlockCumulativeSumPattern(this, 'lth_realized_peak_regret'),
@@ -10343,6 +10646,208 @@ class BrkClient extends BrkClientBase {
10343
10646
  _2025: createActivityOutputsRealizedSupplyUnrealizedPattern(this, 'class_2025'),
10344
10647
  _2026: createActivityOutputsRealizedSupplyUnrealizedPattern(this, 'class_2026'),
10345
10648
  },
10649
+ entry: {
10650
+ discount: {
10651
+ supply: createDeltaDominanceHalfInTotalPattern2(this, 'veteran_supply'),
10652
+ outputs: createSpendingSpentUnspentPattern(this, 'veteran'),
10653
+ activity: createCoindaysCoinyearsDormancyTransferPattern(this, 'veteran'),
10654
+ realized: {
10655
+ cap: createCentsDeltaToUsdPattern(this, 'veteran_realized_cap'),
10656
+ profit: createBlockCumulativeSumPattern(this, 'veteran_realized_profit'),
10657
+ loss: createBlockCumulativeNegativeSumPattern(this, 'veteran_realized_loss'),
10658
+ price: {
10659
+ usd: createSeriesPattern1(this, 'veteran_realized_price'),
10660
+ cents: createSeriesPattern1(this, 'veteran_realized_price_cents'),
10661
+ sats: createSeriesPattern1(this, 'veteran_realized_price_sats'),
10662
+ bps: createSeriesPattern1(this, 'veteran_realized_price_ratio_bps'),
10663
+ ratio: createSeriesPattern1(this, 'veteran_realized_price_ratio'),
10664
+ percentiles: createPct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern(this, 'veteran_realized_price'),
10665
+ sma: create_1m1w1y2y4yAllPattern(this, 'veteran_realized_price_ratio_sma'),
10666
+ stdDev: {
10667
+ all: {
10668
+ sd: createSeriesPattern1(this, 'veteran_realized_price_ratio_sd'),
10669
+ zscore: createSeriesPattern1(this, 'veteran_realized_price_ratio_zscore'),
10670
+ _0sd: createCentsSatsUsdPattern(this, 'veteran_realized_price_0sd'),
10671
+ p05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p0_5sd'),
10672
+ p1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1sd'),
10673
+ p15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1_5sd'),
10674
+ p2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2sd'),
10675
+ p25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2_5sd'),
10676
+ p3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p3sd'),
10677
+ m05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm0_5sd'),
10678
+ m1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1sd'),
10679
+ m15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1_5sd'),
10680
+ m2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2sd'),
10681
+ m25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2_5sd'),
10682
+ m3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm3sd'),
10683
+ },
10684
+ _4y: {
10685
+ sd: createSeriesPattern1(this, 'veteran_realized_price_ratio_sd_4y'),
10686
+ zscore: createSeriesPattern1(this, 'veteran_realized_price_ratio_zscore_4y'),
10687
+ _0sd: createCentsSatsUsdPattern(this, 'veteran_realized_price_0sd_4y'),
10688
+ p05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p0_5sd_4y'),
10689
+ p1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1sd_4y'),
10690
+ p15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1_5sd_4y'),
10691
+ p2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2sd_4y'),
10692
+ p25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2_5sd_4y'),
10693
+ p3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p3sd_4y'),
10694
+ m05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm0_5sd_4y'),
10695
+ m1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1sd_4y'),
10696
+ m15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1_5sd_4y'),
10697
+ m2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2sd_4y'),
10698
+ m25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2_5sd_4y'),
10699
+ m3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm3sd_4y'),
10700
+ },
10701
+ _2y: {
10702
+ sd: createSeriesPattern1(this, 'veteran_realized_price_ratio_sd_2y'),
10703
+ zscore: createSeriesPattern1(this, 'veteran_realized_price_ratio_zscore_2y'),
10704
+ _0sd: createCentsSatsUsdPattern(this, 'veteran_realized_price_0sd_2y'),
10705
+ p05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p0_5sd_2y'),
10706
+ p1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1sd_2y'),
10707
+ p15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1_5sd_2y'),
10708
+ p2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2sd_2y'),
10709
+ p25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2_5sd_2y'),
10710
+ p3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p3sd_2y'),
10711
+ m05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm0_5sd_2y'),
10712
+ m1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1sd_2y'),
10713
+ m15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1_5sd_2y'),
10714
+ m2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2sd_2y'),
10715
+ m25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2_5sd_2y'),
10716
+ m3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm3sd_2y'),
10717
+ },
10718
+ _1y: {
10719
+ sd: createSeriesPattern1(this, 'veteran_realized_price_ratio_sd_1y'),
10720
+ zscore: createSeriesPattern1(this, 'veteran_realized_price_ratio_zscore_1y'),
10721
+ _0sd: createCentsSatsUsdPattern(this, 'veteran_realized_price_0sd_1y'),
10722
+ p05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p0_5sd_1y'),
10723
+ p1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1sd_1y'),
10724
+ p15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p1_5sd_1y'),
10725
+ p2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2sd_1y'),
10726
+ p25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p2_5sd_1y'),
10727
+ p3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'p3sd_1y'),
10728
+ m05sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm0_5sd_1y'),
10729
+ m1sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1sd_1y'),
10730
+ m15sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm1_5sd_1y'),
10731
+ m2sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2sd_1y'),
10732
+ m25sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm2_5sd_1y'),
10733
+ m3sd: createPriceRatioPattern(this, 'veteran_realized_price', 'm3sd_1y'),
10734
+ },
10735
+ },
10736
+ },
10737
+ mvrv: createSeriesPattern1(this, 'veteran_mvrv'),
10738
+ netPnl: createBlockChangeCumulativeDeltaSumPattern(this, 'veteran_net'),
10739
+ sopr: createRatioValuePattern2(this, 'veteran'),
10740
+ grossPnl: createBlockCumulativeSumPattern(this, 'veteran_realized_gross_pnl'),
10741
+ sellSideRiskRatio: create_1m1w1y24hPattern8(this, 'veteran_sell_side_risk_ratio'),
10742
+ peakRegret: createBlockCumulativeSumPattern(this, 'veteran_realized_peak_regret'),
10743
+ capitalized: createPricePattern(this, 'veteran_capitalized_price'),
10744
+ profitToLossRatio: create_1m1w1y24hPattern(this, 'veteran_realized_profit_to_loss_ratio'),
10745
+ },
10746
+ costBasis: createInMaxMinPerSupplyPattern(this, 'veteran'),
10747
+ unrealized: createCapitalizedGrossInvestedLossNetNuplProfitSentimentPattern2(this, 'veteran'),
10748
+ investedCapital: createInPattern(this, 'veteran_invested_capital_in'),
10749
+ },
10750
+ premium: {
10751
+ supply: createDeltaDominanceHalfInTotalPattern2(this, 'rookie_supply'),
10752
+ outputs: createSpendingSpentUnspentPattern(this, 'rookie'),
10753
+ activity: createCoindaysCoinyearsDormancyTransferPattern(this, 'rookie'),
10754
+ realized: {
10755
+ cap: createCentsDeltaToUsdPattern(this, 'rookie_realized_cap'),
10756
+ profit: createBlockCumulativeSumPattern(this, 'rookie_realized_profit'),
10757
+ loss: createBlockCumulativeNegativeSumPattern(this, 'rookie_realized_loss'),
10758
+ price: {
10759
+ usd: createSeriesPattern1(this, 'rookie_realized_price'),
10760
+ cents: createSeriesPattern1(this, 'rookie_realized_price_cents'),
10761
+ sats: createSeriesPattern1(this, 'rookie_realized_price_sats'),
10762
+ bps: createSeriesPattern1(this, 'rookie_realized_price_ratio_bps'),
10763
+ ratio: createSeriesPattern1(this, 'rookie_realized_price_ratio'),
10764
+ percentiles: createPct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern(this, 'rookie_realized_price'),
10765
+ sma: create_1m1w1y2y4yAllPattern(this, 'rookie_realized_price_ratio_sma'),
10766
+ stdDev: {
10767
+ all: {
10768
+ sd: createSeriesPattern1(this, 'rookie_realized_price_ratio_sd'),
10769
+ zscore: createSeriesPattern1(this, 'rookie_realized_price_ratio_zscore'),
10770
+ _0sd: createCentsSatsUsdPattern(this, 'rookie_realized_price_0sd'),
10771
+ p05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p0_5sd'),
10772
+ p1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1sd'),
10773
+ p15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1_5sd'),
10774
+ p2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2sd'),
10775
+ p25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2_5sd'),
10776
+ p3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p3sd'),
10777
+ m05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm0_5sd'),
10778
+ m1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1sd'),
10779
+ m15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1_5sd'),
10780
+ m2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2sd'),
10781
+ m25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2_5sd'),
10782
+ m3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm3sd'),
10783
+ },
10784
+ _4y: {
10785
+ sd: createSeriesPattern1(this, 'rookie_realized_price_ratio_sd_4y'),
10786
+ zscore: createSeriesPattern1(this, 'rookie_realized_price_ratio_zscore_4y'),
10787
+ _0sd: createCentsSatsUsdPattern(this, 'rookie_realized_price_0sd_4y'),
10788
+ p05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p0_5sd_4y'),
10789
+ p1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1sd_4y'),
10790
+ p15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1_5sd_4y'),
10791
+ p2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2sd_4y'),
10792
+ p25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2_5sd_4y'),
10793
+ p3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p3sd_4y'),
10794
+ m05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm0_5sd_4y'),
10795
+ m1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1sd_4y'),
10796
+ m15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1_5sd_4y'),
10797
+ m2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2sd_4y'),
10798
+ m25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2_5sd_4y'),
10799
+ m3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm3sd_4y'),
10800
+ },
10801
+ _2y: {
10802
+ sd: createSeriesPattern1(this, 'rookie_realized_price_ratio_sd_2y'),
10803
+ zscore: createSeriesPattern1(this, 'rookie_realized_price_ratio_zscore_2y'),
10804
+ _0sd: createCentsSatsUsdPattern(this, 'rookie_realized_price_0sd_2y'),
10805
+ p05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p0_5sd_2y'),
10806
+ p1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1sd_2y'),
10807
+ p15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1_5sd_2y'),
10808
+ p2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2sd_2y'),
10809
+ p25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2_5sd_2y'),
10810
+ p3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p3sd_2y'),
10811
+ m05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm0_5sd_2y'),
10812
+ m1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1sd_2y'),
10813
+ m15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1_5sd_2y'),
10814
+ m2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2sd_2y'),
10815
+ m25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2_5sd_2y'),
10816
+ m3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm3sd_2y'),
10817
+ },
10818
+ _1y: {
10819
+ sd: createSeriesPattern1(this, 'rookie_realized_price_ratio_sd_1y'),
10820
+ zscore: createSeriesPattern1(this, 'rookie_realized_price_ratio_zscore_1y'),
10821
+ _0sd: createCentsSatsUsdPattern(this, 'rookie_realized_price_0sd_1y'),
10822
+ p05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p0_5sd_1y'),
10823
+ p1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1sd_1y'),
10824
+ p15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p1_5sd_1y'),
10825
+ p2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2sd_1y'),
10826
+ p25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p2_5sd_1y'),
10827
+ p3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'p3sd_1y'),
10828
+ m05sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm0_5sd_1y'),
10829
+ m1sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1sd_1y'),
10830
+ m15sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm1_5sd_1y'),
10831
+ m2sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2sd_1y'),
10832
+ m25sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm2_5sd_1y'),
10833
+ m3sd: createPriceRatioPattern(this, 'rookie_realized_price', 'm3sd_1y'),
10834
+ },
10835
+ },
10836
+ },
10837
+ mvrv: createSeriesPattern1(this, 'rookie_mvrv'),
10838
+ netPnl: createBlockChangeCumulativeDeltaSumPattern(this, 'rookie_net'),
10839
+ sopr: createRatioValuePattern2(this, 'rookie'),
10840
+ grossPnl: createBlockCumulativeSumPattern(this, 'rookie_realized_gross_pnl'),
10841
+ sellSideRiskRatio: create_1m1w1y24hPattern8(this, 'rookie_sell_side_risk_ratio'),
10842
+ peakRegret: createBlockCumulativeSumPattern(this, 'rookie_realized_peak_regret'),
10843
+ capitalized: createPricePattern(this, 'rookie_capitalized_price'),
10844
+ profitToLossRatio: create_1m1w1y24hPattern(this, 'rookie_realized_profit_to_loss_ratio'),
10845
+ },
10846
+ costBasis: createInMaxMinPerSupplyPattern(this, 'rookie'),
10847
+ unrealized: createCapitalizedGrossInvestedLossNetNuplProfitSentimentPattern2(this, 'rookie'),
10848
+ investedCapital: createInPattern(this, 'rookie_invested_capital_in'),
10849
+ },
10850
+ },
10346
10851
  overAmount: {
10347
10852
  _1sat: createActivityOutputsRealizedSupplyUnrealizedPattern2(this, 'utxos_over_1sat'),
10348
10853
  _10sats: createActivityOutputsRealizedSupplyUnrealizedPattern2(this, 'utxos_over_10sats'),
package/package.json CHANGED
@@ -40,5 +40,5 @@
40
40
  "url": "git+https://github.com/bitcoinresearchkit/brk.git"
41
41
  },
42
42
  "type": "module",
43
- "version": "0.3.3"
43
+ "version": "0.3.4"
44
44
  }