brk-client 0.2.1 → 0.2.3
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.
- package/index.js +238 -200
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1973,7 +1973,7 @@ function createGrossInvestedInvestorLossNetNuplProfitSentimentPattern2(client, a
|
|
|
1973
1973
|
* @typedef {Object} BpsCentsPercentilesRatioSatsSmaStdUsdPattern
|
|
1974
1974
|
* @property {SeriesPattern1<BasisPoints32>} bps
|
|
1975
1975
|
* @property {SeriesPattern1<Cents>} cents
|
|
1976
|
-
* @property {
|
|
1976
|
+
* @property {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern} percentiles
|
|
1977
1977
|
* @property {SeriesPattern1<StoredF32>} ratio
|
|
1978
1978
|
* @property {SeriesPattern1<SatsFract>} sats
|
|
1979
1979
|
* @property {_1m1w1y2y4yAllPattern} sma
|
|
@@ -1981,6 +1981,37 @@ function createGrossInvestedInvestorLossNetNuplProfitSentimentPattern2(client, a
|
|
|
1981
1981
|
* @property {SeriesPattern1<Dollars>} usd
|
|
1982
1982
|
*/
|
|
1983
1983
|
|
|
1984
|
+
/**
|
|
1985
|
+
* @typedef {Object} Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern
|
|
1986
|
+
* @property {BpsPriceRatioPattern} pct05
|
|
1987
|
+
* @property {BpsPriceRatioPattern} pct1
|
|
1988
|
+
* @property {BpsPriceRatioPattern} pct2
|
|
1989
|
+
* @property {BpsPriceRatioPattern} pct5
|
|
1990
|
+
* @property {BpsPriceRatioPattern} pct95
|
|
1991
|
+
* @property {BpsPriceRatioPattern} pct98
|
|
1992
|
+
* @property {BpsPriceRatioPattern} pct99
|
|
1993
|
+
* @property {BpsPriceRatioPattern} pct995
|
|
1994
|
+
*/
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* Create a Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern pattern node
|
|
1998
|
+
* @param {BrkClientBase} client
|
|
1999
|
+
* @param {string} acc - Accumulated series name
|
|
2000
|
+
* @returns {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern}
|
|
2001
|
+
*/
|
|
2002
|
+
function createPct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern(client, acc) {
|
|
2003
|
+
return {
|
|
2004
|
+
pct05: createBpsPriceRatioPattern(client, acc, 'pct0_5'),
|
|
2005
|
+
pct1: createBpsPriceRatioPattern(client, acc, 'pct1'),
|
|
2006
|
+
pct2: createBpsPriceRatioPattern(client, acc, 'pct2'),
|
|
2007
|
+
pct5: createBpsPriceRatioPattern(client, acc, 'pct5'),
|
|
2008
|
+
pct95: createBpsPriceRatioPattern(client, acc, 'pct95'),
|
|
2009
|
+
pct98: createBpsPriceRatioPattern(client, acc, 'pct98'),
|
|
2010
|
+
pct99: createBpsPriceRatioPattern(client, acc, 'pct99'),
|
|
2011
|
+
pct995: createBpsPriceRatioPattern(client, acc, 'pct99_5'),
|
|
2012
|
+
};
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1984
2015
|
/**
|
|
1985
2016
|
* @typedef {Object} _10y2y3y4y5y6y8yPattern
|
|
1986
2017
|
* @property {BpsPercentRatioPattern} _10y
|
|
@@ -2242,7 +2273,7 @@ function createAverageBlockCumulativeInSumPattern(client, acc) {
|
|
|
2242
2273
|
* @typedef {Object} BpsCentsPercentilesRatioSatsUsdPattern
|
|
2243
2274
|
* @property {SeriesPattern1<BasisPoints32>} bps
|
|
2244
2275
|
* @property {SeriesPattern1<Cents>} cents
|
|
2245
|
-
* @property {
|
|
2276
|
+
* @property {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern} percentiles
|
|
2246
2277
|
* @property {SeriesPattern1<StoredF32>} ratio
|
|
2247
2278
|
* @property {SeriesPattern1<SatsFract>} sats
|
|
2248
2279
|
* @property {SeriesPattern1<Dollars>} usd
|
|
@@ -2258,7 +2289,7 @@ function createBpsCentsPercentilesRatioSatsUsdPattern(client, acc) {
|
|
|
2258
2289
|
return {
|
|
2259
2290
|
bps: createSeriesPattern1(client, _m(acc, 'ratio_bps')),
|
|
2260
2291
|
cents: createSeriesPattern1(client, _m(acc, 'cents')),
|
|
2261
|
-
percentiles:
|
|
2292
|
+
percentiles: createPct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern(client, acc),
|
|
2262
2293
|
ratio: createSeriesPattern1(client, _m(acc, 'ratio')),
|
|
2263
2294
|
sats: createSeriesPattern1(client, _m(acc, 'sats')),
|
|
2264
2295
|
usd: createSeriesPattern1(client, acc),
|
|
@@ -2373,33 +2404,6 @@ function createDeltaHalfInToTotalPattern2(client, acc) {
|
|
|
2373
2404
|
};
|
|
2374
2405
|
}
|
|
2375
2406
|
|
|
2376
|
-
/**
|
|
2377
|
-
* @typedef {Object} Pct1Pct2Pct5Pct95Pct98Pct99Pattern
|
|
2378
|
-
* @property {BpsPriceRatioPattern} pct1
|
|
2379
|
-
* @property {BpsPriceRatioPattern} pct2
|
|
2380
|
-
* @property {BpsPriceRatioPattern} pct5
|
|
2381
|
-
* @property {BpsPriceRatioPattern} pct95
|
|
2382
|
-
* @property {BpsPriceRatioPattern} pct98
|
|
2383
|
-
* @property {BpsPriceRatioPattern} pct99
|
|
2384
|
-
*/
|
|
2385
|
-
|
|
2386
|
-
/**
|
|
2387
|
-
* Create a Pct1Pct2Pct5Pct95Pct98Pct99Pattern pattern node
|
|
2388
|
-
* @param {BrkClientBase} client
|
|
2389
|
-
* @param {string} acc - Accumulated series name
|
|
2390
|
-
* @returns {Pct1Pct2Pct5Pct95Pct98Pct99Pattern}
|
|
2391
|
-
*/
|
|
2392
|
-
function createPct1Pct2Pct5Pct95Pct98Pct99Pattern(client, acc) {
|
|
2393
|
-
return {
|
|
2394
|
-
pct1: createBpsPriceRatioPattern(client, acc, 'pct1'),
|
|
2395
|
-
pct2: createBpsPriceRatioPattern(client, acc, 'pct2'),
|
|
2396
|
-
pct5: createBpsPriceRatioPattern(client, acc, 'pct5'),
|
|
2397
|
-
pct95: createBpsPriceRatioPattern(client, acc, 'pct95'),
|
|
2398
|
-
pct98: createBpsPriceRatioPattern(client, acc, 'pct98'),
|
|
2399
|
-
pct99: createBpsPriceRatioPattern(client, acc, 'pct99'),
|
|
2400
|
-
};
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
2407
|
/**
|
|
2404
2408
|
* @typedef {Object} _1m1w1y24hBlockPattern
|
|
2405
2409
|
* @property {SeriesPattern1<StoredF32>} _1m
|
|
@@ -4146,6 +4150,7 @@ function createTransferPattern(client, acc) {
|
|
|
4146
4150
|
* @property {SeriesTree_Constants} constants
|
|
4147
4151
|
* @property {SeriesTree_Indexes} indexes
|
|
4148
4152
|
* @property {SeriesTree_Indicators} indicators
|
|
4153
|
+
* @property {SeriesTree_Investing} investing
|
|
4149
4154
|
* @property {SeriesTree_Market} market
|
|
4150
4155
|
* @property {SeriesTree_Pools} pools
|
|
4151
4156
|
* @property {SeriesTree_Prices} prices
|
|
@@ -4180,9 +4185,7 @@ function createTransferPattern(client, acc) {
|
|
|
4180
4185
|
|
|
4181
4186
|
/**
|
|
4182
4187
|
* @typedef {Object} SeriesTree_Blocks_Time
|
|
4183
|
-
* @property {
|
|
4184
|
-
* @property {SeriesPattern18<Date>} date
|
|
4185
|
-
* @property {SeriesPattern18<Timestamp>} timestampMonotonic
|
|
4188
|
+
* @property {SeriesPattern18<Timestamp>} timestamp
|
|
4186
4189
|
*/
|
|
4187
4190
|
|
|
4188
4191
|
/**
|
|
@@ -4769,6 +4772,7 @@ function createTransferPattern(client, acc) {
|
|
|
4769
4772
|
* @property {SeriesTree_Indexes_TxIndex} txIndex
|
|
4770
4773
|
* @property {SeriesTree_Indexes_TxinIndex} txinIndex
|
|
4771
4774
|
* @property {SeriesTree_Indexes_TxoutIndex} txoutIndex
|
|
4775
|
+
* @property {SeriesTree_Indexes_Timestamp} timestamp
|
|
4772
4776
|
*/
|
|
4773
4777
|
|
|
4774
4778
|
/**
|
|
@@ -4992,6 +4996,12 @@ function createTransferPattern(client, acc) {
|
|
|
4992
4996
|
* @property {SeriesPattern21<TxOutIndex>} identity
|
|
4993
4997
|
*/
|
|
4994
4998
|
|
|
4999
|
+
/**
|
|
5000
|
+
* @typedef {Object} SeriesTree_Indexes_Timestamp
|
|
5001
|
+
* @property {SeriesPattern18<Timestamp>} monotonic
|
|
5002
|
+
* @property {SeriesPattern2<Timestamp>} resolutions
|
|
5003
|
+
*/
|
|
5004
|
+
|
|
4995
5005
|
/**
|
|
4996
5006
|
* @typedef {Object} SeriesTree_Indicators
|
|
4997
5007
|
* @property {BpsRatioPattern2} puellMultiple
|
|
@@ -5004,6 +5014,7 @@ function createTransferPattern(client, acc) {
|
|
|
5004
5014
|
* @property {SeriesTree_Indicators_Dormancy} dormancy
|
|
5005
5015
|
* @property {SeriesPattern1<StoredF32>} stockToFlow
|
|
5006
5016
|
* @property {SeriesPattern1<StoredF32>} sellerExhaustion
|
|
5017
|
+
* @property {SeriesTree_Indicators_RealizedEnvelope} realizedEnvelope
|
|
5007
5018
|
*/
|
|
5008
5019
|
|
|
5009
5020
|
/**
|
|
@@ -5012,6 +5023,108 @@ function createTransferPattern(client, acc) {
|
|
|
5012
5023
|
* @property {SeriesPattern1<StoredF32>} flow
|
|
5013
5024
|
*/
|
|
5014
5025
|
|
|
5026
|
+
/**
|
|
5027
|
+
* @typedef {Object} SeriesTree_Indicators_RealizedEnvelope
|
|
5028
|
+
* @property {CentsSatsUsdPattern} pct05
|
|
5029
|
+
* @property {CentsSatsUsdPattern} pct1
|
|
5030
|
+
* @property {CentsSatsUsdPattern} pct2
|
|
5031
|
+
* @property {CentsSatsUsdPattern} pct5
|
|
5032
|
+
* @property {CentsSatsUsdPattern} pct95
|
|
5033
|
+
* @property {CentsSatsUsdPattern} pct98
|
|
5034
|
+
* @property {CentsSatsUsdPattern} pct99
|
|
5035
|
+
* @property {CentsSatsUsdPattern} pct995
|
|
5036
|
+
* @property {SeriesPattern1<StoredI8>} index
|
|
5037
|
+
* @property {SeriesPattern1<StoredI8>} score
|
|
5038
|
+
*/
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
* @typedef {Object} SeriesTree_Investing
|
|
5042
|
+
* @property {SeriesPattern18<Sats>} satsPerDay
|
|
5043
|
+
* @property {SeriesTree_Investing_Period} period
|
|
5044
|
+
* @property {SeriesTree_Investing_Class} class
|
|
5045
|
+
*/
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
* @typedef {Object} SeriesTree_Investing_Period
|
|
5049
|
+
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern3} dcaStack
|
|
5050
|
+
* @property {SeriesTree_Investing_Period_DcaCostBasis} dcaCostBasis
|
|
5051
|
+
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern2} dcaReturn
|
|
5052
|
+
* @property {_10y2y3y4y5y6y8yPattern} dcaCagr
|
|
5053
|
+
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern3} lumpSumStack
|
|
5054
|
+
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern2} lumpSumReturn
|
|
5055
|
+
*/
|
|
5056
|
+
|
|
5057
|
+
/**
|
|
5058
|
+
* @typedef {Object} SeriesTree_Investing_Period_DcaCostBasis
|
|
5059
|
+
* @property {CentsSatsUsdPattern} _1w
|
|
5060
|
+
* @property {CentsSatsUsdPattern} _1m
|
|
5061
|
+
* @property {CentsSatsUsdPattern} _3m
|
|
5062
|
+
* @property {CentsSatsUsdPattern} _6m
|
|
5063
|
+
* @property {CentsSatsUsdPattern} _1y
|
|
5064
|
+
* @property {CentsSatsUsdPattern} _2y
|
|
5065
|
+
* @property {CentsSatsUsdPattern} _3y
|
|
5066
|
+
* @property {CentsSatsUsdPattern} _4y
|
|
5067
|
+
* @property {CentsSatsUsdPattern} _5y
|
|
5068
|
+
* @property {CentsSatsUsdPattern} _6y
|
|
5069
|
+
* @property {CentsSatsUsdPattern} _8y
|
|
5070
|
+
* @property {CentsSatsUsdPattern} _10y
|
|
5071
|
+
*/
|
|
5072
|
+
|
|
5073
|
+
/**
|
|
5074
|
+
* @typedef {Object} SeriesTree_Investing_Class
|
|
5075
|
+
* @property {SeriesTree_Investing_Class_DcaStack} dcaStack
|
|
5076
|
+
* @property {SeriesTree_Investing_Class_DcaCostBasis} dcaCostBasis
|
|
5077
|
+
* @property {SeriesTree_Investing_Class_DcaReturn} dcaReturn
|
|
5078
|
+
*/
|
|
5079
|
+
|
|
5080
|
+
/**
|
|
5081
|
+
* @typedef {Object} SeriesTree_Investing_Class_DcaStack
|
|
5082
|
+
* @property {BtcCentsSatsUsdPattern3} from2015
|
|
5083
|
+
* @property {BtcCentsSatsUsdPattern3} from2016
|
|
5084
|
+
* @property {BtcCentsSatsUsdPattern3} from2017
|
|
5085
|
+
* @property {BtcCentsSatsUsdPattern3} from2018
|
|
5086
|
+
* @property {BtcCentsSatsUsdPattern3} from2019
|
|
5087
|
+
* @property {BtcCentsSatsUsdPattern3} from2020
|
|
5088
|
+
* @property {BtcCentsSatsUsdPattern3} from2021
|
|
5089
|
+
* @property {BtcCentsSatsUsdPattern3} from2022
|
|
5090
|
+
* @property {BtcCentsSatsUsdPattern3} from2023
|
|
5091
|
+
* @property {BtcCentsSatsUsdPattern3} from2024
|
|
5092
|
+
* @property {BtcCentsSatsUsdPattern3} from2025
|
|
5093
|
+
* @property {BtcCentsSatsUsdPattern3} from2026
|
|
5094
|
+
*/
|
|
5095
|
+
|
|
5096
|
+
/**
|
|
5097
|
+
* @typedef {Object} SeriesTree_Investing_Class_DcaCostBasis
|
|
5098
|
+
* @property {CentsSatsUsdPattern} from2015
|
|
5099
|
+
* @property {CentsSatsUsdPattern} from2016
|
|
5100
|
+
* @property {CentsSatsUsdPattern} from2017
|
|
5101
|
+
* @property {CentsSatsUsdPattern} from2018
|
|
5102
|
+
* @property {CentsSatsUsdPattern} from2019
|
|
5103
|
+
* @property {CentsSatsUsdPattern} from2020
|
|
5104
|
+
* @property {CentsSatsUsdPattern} from2021
|
|
5105
|
+
* @property {CentsSatsUsdPattern} from2022
|
|
5106
|
+
* @property {CentsSatsUsdPattern} from2023
|
|
5107
|
+
* @property {CentsSatsUsdPattern} from2024
|
|
5108
|
+
* @property {CentsSatsUsdPattern} from2025
|
|
5109
|
+
* @property {CentsSatsUsdPattern} from2026
|
|
5110
|
+
*/
|
|
5111
|
+
|
|
5112
|
+
/**
|
|
5113
|
+
* @typedef {Object} SeriesTree_Investing_Class_DcaReturn
|
|
5114
|
+
* @property {BpsPercentRatioPattern} from2015
|
|
5115
|
+
* @property {BpsPercentRatioPattern} from2016
|
|
5116
|
+
* @property {BpsPercentRatioPattern} from2017
|
|
5117
|
+
* @property {BpsPercentRatioPattern} from2018
|
|
5118
|
+
* @property {BpsPercentRatioPattern} from2019
|
|
5119
|
+
* @property {BpsPercentRatioPattern} from2020
|
|
5120
|
+
* @property {BpsPercentRatioPattern} from2021
|
|
5121
|
+
* @property {BpsPercentRatioPattern} from2022
|
|
5122
|
+
* @property {BpsPercentRatioPattern} from2023
|
|
5123
|
+
* @property {BpsPercentRatioPattern} from2024
|
|
5124
|
+
* @property {BpsPercentRatioPattern} from2025
|
|
5125
|
+
* @property {BpsPercentRatioPattern} from2026
|
|
5126
|
+
*/
|
|
5127
|
+
|
|
5015
5128
|
/**
|
|
5016
5129
|
* @typedef {Object} SeriesTree_Market
|
|
5017
5130
|
* @property {SeriesTree_Market_Ath} ath
|
|
@@ -5020,7 +5133,6 @@ function createTransferPattern(client, acc) {
|
|
|
5020
5133
|
* @property {_1m1w1y24hPattern<StoredF32>} volatility
|
|
5021
5134
|
* @property {SeriesTree_Market_Range} range
|
|
5022
5135
|
* @property {SeriesTree_Market_MovingAverage} movingAverage
|
|
5023
|
-
* @property {SeriesTree_Market_Dca} dca
|
|
5024
5136
|
* @property {SeriesTree_Market_Technical} technical
|
|
5025
5137
|
*/
|
|
5026
5138
|
|
|
@@ -5183,94 +5295,6 @@ function createTransferPattern(client, acc) {
|
|
|
5183
5295
|
* @property {BpsCentsRatioSatsUsdPattern} _4y
|
|
5184
5296
|
*/
|
|
5185
5297
|
|
|
5186
|
-
/**
|
|
5187
|
-
* @typedef {Object} SeriesTree_Market_Dca
|
|
5188
|
-
* @property {SeriesPattern18<Sats>} satsPerDay
|
|
5189
|
-
* @property {SeriesTree_Market_Dca_Period} period
|
|
5190
|
-
* @property {SeriesTree_Market_Dca_Class} class
|
|
5191
|
-
*/
|
|
5192
|
-
|
|
5193
|
-
/**
|
|
5194
|
-
* @typedef {Object} SeriesTree_Market_Dca_Period
|
|
5195
|
-
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern3} stack
|
|
5196
|
-
* @property {SeriesTree_Market_Dca_Period_CostBasis} costBasis
|
|
5197
|
-
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern2} return
|
|
5198
|
-
* @property {_10y2y3y4y5y6y8yPattern} cagr
|
|
5199
|
-
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern3} lumpSumStack
|
|
5200
|
-
* @property {_10y1m1w1y2y3m3y4y5y6m6y8yPattern2} lumpSumReturn
|
|
5201
|
-
*/
|
|
5202
|
-
|
|
5203
|
-
/**
|
|
5204
|
-
* @typedef {Object} SeriesTree_Market_Dca_Period_CostBasis
|
|
5205
|
-
* @property {CentsSatsUsdPattern} _1w
|
|
5206
|
-
* @property {CentsSatsUsdPattern} _1m
|
|
5207
|
-
* @property {CentsSatsUsdPattern} _3m
|
|
5208
|
-
* @property {CentsSatsUsdPattern} _6m
|
|
5209
|
-
* @property {CentsSatsUsdPattern} _1y
|
|
5210
|
-
* @property {CentsSatsUsdPattern} _2y
|
|
5211
|
-
* @property {CentsSatsUsdPattern} _3y
|
|
5212
|
-
* @property {CentsSatsUsdPattern} _4y
|
|
5213
|
-
* @property {CentsSatsUsdPattern} _5y
|
|
5214
|
-
* @property {CentsSatsUsdPattern} _6y
|
|
5215
|
-
* @property {CentsSatsUsdPattern} _8y
|
|
5216
|
-
* @property {CentsSatsUsdPattern} _10y
|
|
5217
|
-
*/
|
|
5218
|
-
|
|
5219
|
-
/**
|
|
5220
|
-
* @typedef {Object} SeriesTree_Market_Dca_Class
|
|
5221
|
-
* @property {SeriesTree_Market_Dca_Class_Stack} stack
|
|
5222
|
-
* @property {SeriesTree_Market_Dca_Class_CostBasis} costBasis
|
|
5223
|
-
* @property {SeriesTree_Market_Dca_Class_Return} return
|
|
5224
|
-
*/
|
|
5225
|
-
|
|
5226
|
-
/**
|
|
5227
|
-
* @typedef {Object} SeriesTree_Market_Dca_Class_Stack
|
|
5228
|
-
* @property {BtcCentsSatsUsdPattern3} from2015
|
|
5229
|
-
* @property {BtcCentsSatsUsdPattern3} from2016
|
|
5230
|
-
* @property {BtcCentsSatsUsdPattern3} from2017
|
|
5231
|
-
* @property {BtcCentsSatsUsdPattern3} from2018
|
|
5232
|
-
* @property {BtcCentsSatsUsdPattern3} from2019
|
|
5233
|
-
* @property {BtcCentsSatsUsdPattern3} from2020
|
|
5234
|
-
* @property {BtcCentsSatsUsdPattern3} from2021
|
|
5235
|
-
* @property {BtcCentsSatsUsdPattern3} from2022
|
|
5236
|
-
* @property {BtcCentsSatsUsdPattern3} from2023
|
|
5237
|
-
* @property {BtcCentsSatsUsdPattern3} from2024
|
|
5238
|
-
* @property {BtcCentsSatsUsdPattern3} from2025
|
|
5239
|
-
* @property {BtcCentsSatsUsdPattern3} from2026
|
|
5240
|
-
*/
|
|
5241
|
-
|
|
5242
|
-
/**
|
|
5243
|
-
* @typedef {Object} SeriesTree_Market_Dca_Class_CostBasis
|
|
5244
|
-
* @property {CentsSatsUsdPattern} from2015
|
|
5245
|
-
* @property {CentsSatsUsdPattern} from2016
|
|
5246
|
-
* @property {CentsSatsUsdPattern} from2017
|
|
5247
|
-
* @property {CentsSatsUsdPattern} from2018
|
|
5248
|
-
* @property {CentsSatsUsdPattern} from2019
|
|
5249
|
-
* @property {CentsSatsUsdPattern} from2020
|
|
5250
|
-
* @property {CentsSatsUsdPattern} from2021
|
|
5251
|
-
* @property {CentsSatsUsdPattern} from2022
|
|
5252
|
-
* @property {CentsSatsUsdPattern} from2023
|
|
5253
|
-
* @property {CentsSatsUsdPattern} from2024
|
|
5254
|
-
* @property {CentsSatsUsdPattern} from2025
|
|
5255
|
-
* @property {CentsSatsUsdPattern} from2026
|
|
5256
|
-
*/
|
|
5257
|
-
|
|
5258
|
-
/**
|
|
5259
|
-
* @typedef {Object} SeriesTree_Market_Dca_Class_Return
|
|
5260
|
-
* @property {BpsPercentRatioPattern} from2015
|
|
5261
|
-
* @property {BpsPercentRatioPattern} from2016
|
|
5262
|
-
* @property {BpsPercentRatioPattern} from2017
|
|
5263
|
-
* @property {BpsPercentRatioPattern} from2018
|
|
5264
|
-
* @property {BpsPercentRatioPattern} from2019
|
|
5265
|
-
* @property {BpsPercentRatioPattern} from2020
|
|
5266
|
-
* @property {BpsPercentRatioPattern} from2021
|
|
5267
|
-
* @property {BpsPercentRatioPattern} from2022
|
|
5268
|
-
* @property {BpsPercentRatioPattern} from2023
|
|
5269
|
-
* @property {BpsPercentRatioPattern} from2024
|
|
5270
|
-
* @property {BpsPercentRatioPattern} from2025
|
|
5271
|
-
* @property {BpsPercentRatioPattern} from2026
|
|
5272
|
-
*/
|
|
5273
|
-
|
|
5274
5298
|
/**
|
|
5275
5299
|
* @typedef {Object} SeriesTree_Market_Technical
|
|
5276
5300
|
* @property {SeriesTree_Market_Technical_Rsi} rsi
|
|
@@ -5624,7 +5648,7 @@ function createTransferPattern(client, acc) {
|
|
|
5624
5648
|
* @property {SeriesPattern1<SatsFract>} sats
|
|
5625
5649
|
* @property {SeriesPattern1<BasisPoints32>} bps
|
|
5626
5650
|
* @property {SeriesPattern1<StoredF32>} ratio
|
|
5627
|
-
* @property {
|
|
5651
|
+
* @property {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern} percentiles
|
|
5628
5652
|
* @property {_1m1w1y2y4yAllPattern} sma
|
|
5629
5653
|
* @property {SeriesTree_Cohorts_Utxo_All_Realized_Price_StdDev} stdDev
|
|
5630
5654
|
*/
|
|
@@ -5815,7 +5839,7 @@ function createTransferPattern(client, acc) {
|
|
|
5815
5839
|
* @property {SeriesPattern1<SatsFract>} sats
|
|
5816
5840
|
* @property {SeriesPattern1<BasisPoints32>} bps
|
|
5817
5841
|
* @property {SeriesPattern1<StoredF32>} ratio
|
|
5818
|
-
* @property {
|
|
5842
|
+
* @property {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern} percentiles
|
|
5819
5843
|
* @property {_1m1w1y2y4yAllPattern} sma
|
|
5820
5844
|
* @property {SeriesTree_Cohorts_Utxo_Sth_Realized_Price_StdDev} stdDev
|
|
5821
5845
|
*/
|
|
@@ -5937,7 +5961,7 @@ function createTransferPattern(client, acc) {
|
|
|
5937
5961
|
* @property {SeriesPattern1<SatsFract>} sats
|
|
5938
5962
|
* @property {SeriesPattern1<BasisPoints32>} bps
|
|
5939
5963
|
* @property {SeriesPattern1<StoredF32>} ratio
|
|
5940
|
-
* @property {
|
|
5964
|
+
* @property {Pct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern} percentiles
|
|
5941
5965
|
* @property {_1m1w1y2y4yAllPattern} sma
|
|
5942
5966
|
* @property {SeriesTree_Cohorts_Utxo_Lth_Realized_Price_StdDev} stdDev
|
|
5943
5967
|
*/
|
|
@@ -6357,7 +6381,7 @@ function createTransferPattern(client, acc) {
|
|
|
6357
6381
|
* @extends BrkClientBase
|
|
6358
6382
|
*/
|
|
6359
6383
|
class BrkClient extends BrkClientBase {
|
|
6360
|
-
VERSION = "v0.2.
|
|
6384
|
+
VERSION = "v0.2.3";
|
|
6361
6385
|
|
|
6362
6386
|
INDEXES = /** @type {const} */ ([
|
|
6363
6387
|
"minute10",
|
|
@@ -7557,9 +7581,7 @@ class BrkClient extends BrkClientBase {
|
|
|
7557
7581
|
daysToRetarget: createSeriesPattern1(this, 'days_to_retarget'),
|
|
7558
7582
|
},
|
|
7559
7583
|
time: {
|
|
7560
|
-
timestamp:
|
|
7561
|
-
date: createSeriesPattern18(this, 'date'),
|
|
7562
|
-
timestampMonotonic: createSeriesPattern18(this, 'timestamp_monotonic'),
|
|
7584
|
+
timestamp: createSeriesPattern18(this, 'timestamp'),
|
|
7563
7585
|
},
|
|
7564
7586
|
size: {
|
|
7565
7587
|
base: createSeriesPattern18(this, 'total_size'),
|
|
@@ -8101,6 +8123,10 @@ class BrkClient extends BrkClientBase {
|
|
|
8101
8123
|
txoutIndex: {
|
|
8102
8124
|
identity: createSeriesPattern21(this, 'txout_index'),
|
|
8103
8125
|
},
|
|
8126
|
+
timestamp: {
|
|
8127
|
+
monotonic: createSeriesPattern18(this, 'timestamp_monotonic'),
|
|
8128
|
+
resolutions: createSeriesPattern2(this, 'timestamp'),
|
|
8129
|
+
},
|
|
8104
8130
|
},
|
|
8105
8131
|
indicators: {
|
|
8106
8132
|
puellMultiple: createBpsRatioPattern2(this, 'puell_multiple'),
|
|
@@ -8116,6 +8142,86 @@ class BrkClient extends BrkClientBase {
|
|
|
8116
8142
|
},
|
|
8117
8143
|
stockToFlow: createSeriesPattern1(this, 'stock_to_flow'),
|
|
8118
8144
|
sellerExhaustion: createSeriesPattern1(this, 'seller_exhaustion'),
|
|
8145
|
+
realizedEnvelope: {
|
|
8146
|
+
pct05: createCentsSatsUsdPattern(this, 'realized_envelope_pct0_5'),
|
|
8147
|
+
pct1: createCentsSatsUsdPattern(this, 'realized_envelope_pct01'),
|
|
8148
|
+
pct2: createCentsSatsUsdPattern(this, 'realized_envelope_pct02'),
|
|
8149
|
+
pct5: createCentsSatsUsdPattern(this, 'realized_envelope_pct05'),
|
|
8150
|
+
pct95: createCentsSatsUsdPattern(this, 'realized_envelope_pct95'),
|
|
8151
|
+
pct98: createCentsSatsUsdPattern(this, 'realized_envelope_pct98'),
|
|
8152
|
+
pct99: createCentsSatsUsdPattern(this, 'realized_envelope_pct99'),
|
|
8153
|
+
pct995: createCentsSatsUsdPattern(this, 'realized_envelope_pct99_5'),
|
|
8154
|
+
index: createSeriesPattern1(this, 'realized_envelope_index'),
|
|
8155
|
+
score: createSeriesPattern1(this, 'realized_envelope_score'),
|
|
8156
|
+
},
|
|
8157
|
+
},
|
|
8158
|
+
investing: {
|
|
8159
|
+
satsPerDay: createSeriesPattern18(this, 'dca_sats_per_day'),
|
|
8160
|
+
period: {
|
|
8161
|
+
dcaStack: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern3(this, 'dca_stack'),
|
|
8162
|
+
dcaCostBasis: {
|
|
8163
|
+
_1w: createCentsSatsUsdPattern(this, 'dca_cost_basis_1w'),
|
|
8164
|
+
_1m: createCentsSatsUsdPattern(this, 'dca_cost_basis_1m'),
|
|
8165
|
+
_3m: createCentsSatsUsdPattern(this, 'dca_cost_basis_3m'),
|
|
8166
|
+
_6m: createCentsSatsUsdPattern(this, 'dca_cost_basis_6m'),
|
|
8167
|
+
_1y: createCentsSatsUsdPattern(this, 'dca_cost_basis_1y'),
|
|
8168
|
+
_2y: createCentsSatsUsdPattern(this, 'dca_cost_basis_2y'),
|
|
8169
|
+
_3y: createCentsSatsUsdPattern(this, 'dca_cost_basis_3y'),
|
|
8170
|
+
_4y: createCentsSatsUsdPattern(this, 'dca_cost_basis_4y'),
|
|
8171
|
+
_5y: createCentsSatsUsdPattern(this, 'dca_cost_basis_5y'),
|
|
8172
|
+
_6y: createCentsSatsUsdPattern(this, 'dca_cost_basis_6y'),
|
|
8173
|
+
_8y: createCentsSatsUsdPattern(this, 'dca_cost_basis_8y'),
|
|
8174
|
+
_10y: createCentsSatsUsdPattern(this, 'dca_cost_basis_10y'),
|
|
8175
|
+
},
|
|
8176
|
+
dcaReturn: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern2(this, 'dca_return'),
|
|
8177
|
+
dcaCagr: create_10y2y3y4y5y6y8yPattern(this, 'dca_cagr'),
|
|
8178
|
+
lumpSumStack: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern3(this, 'lump_sum_stack'),
|
|
8179
|
+
lumpSumReturn: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern2(this, 'lump_sum_return'),
|
|
8180
|
+
},
|
|
8181
|
+
class: {
|
|
8182
|
+
dcaStack: {
|
|
8183
|
+
from2015: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2015'),
|
|
8184
|
+
from2016: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2016'),
|
|
8185
|
+
from2017: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2017'),
|
|
8186
|
+
from2018: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2018'),
|
|
8187
|
+
from2019: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2019'),
|
|
8188
|
+
from2020: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2020'),
|
|
8189
|
+
from2021: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2021'),
|
|
8190
|
+
from2022: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2022'),
|
|
8191
|
+
from2023: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2023'),
|
|
8192
|
+
from2024: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2024'),
|
|
8193
|
+
from2025: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2025'),
|
|
8194
|
+
from2026: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2026'),
|
|
8195
|
+
},
|
|
8196
|
+
dcaCostBasis: {
|
|
8197
|
+
from2015: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2015'),
|
|
8198
|
+
from2016: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2016'),
|
|
8199
|
+
from2017: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2017'),
|
|
8200
|
+
from2018: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2018'),
|
|
8201
|
+
from2019: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2019'),
|
|
8202
|
+
from2020: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2020'),
|
|
8203
|
+
from2021: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2021'),
|
|
8204
|
+
from2022: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2022'),
|
|
8205
|
+
from2023: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2023'),
|
|
8206
|
+
from2024: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2024'),
|
|
8207
|
+
from2025: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2025'),
|
|
8208
|
+
from2026: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2026'),
|
|
8209
|
+
},
|
|
8210
|
+
dcaReturn: {
|
|
8211
|
+
from2015: createBpsPercentRatioPattern(this, 'dca_return_from_2015'),
|
|
8212
|
+
from2016: createBpsPercentRatioPattern(this, 'dca_return_from_2016'),
|
|
8213
|
+
from2017: createBpsPercentRatioPattern(this, 'dca_return_from_2017'),
|
|
8214
|
+
from2018: createBpsPercentRatioPattern(this, 'dca_return_from_2018'),
|
|
8215
|
+
from2019: createBpsPercentRatioPattern(this, 'dca_return_from_2019'),
|
|
8216
|
+
from2020: createBpsPercentRatioPattern(this, 'dca_return_from_2020'),
|
|
8217
|
+
from2021: createBpsPercentRatioPattern(this, 'dca_return_from_2021'),
|
|
8218
|
+
from2022: createBpsPercentRatioPattern(this, 'dca_return_from_2022'),
|
|
8219
|
+
from2023: createBpsPercentRatioPattern(this, 'dca_return_from_2023'),
|
|
8220
|
+
from2024: createBpsPercentRatioPattern(this, 'dca_return_from_2024'),
|
|
8221
|
+
from2025: createBpsPercentRatioPattern(this, 'dca_return_from_2025'),
|
|
8222
|
+
from2026: createBpsPercentRatioPattern(this, 'dca_return_from_2026'),
|
|
8223
|
+
},
|
|
8224
|
+
},
|
|
8119
8225
|
},
|
|
8120
8226
|
market: {
|
|
8121
8227
|
ath: {
|
|
@@ -8238,74 +8344,6 @@ class BrkClient extends BrkClientBase {
|
|
|
8238
8344
|
_4y: createBpsCentsRatioSatsUsdPattern(this, 'price_ema_4y'),
|
|
8239
8345
|
},
|
|
8240
8346
|
},
|
|
8241
|
-
dca: {
|
|
8242
|
-
satsPerDay: createSeriesPattern18(this, 'dca_sats_per_day'),
|
|
8243
|
-
period: {
|
|
8244
|
-
stack: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern3(this, 'dca_stack'),
|
|
8245
|
-
costBasis: {
|
|
8246
|
-
_1w: createCentsSatsUsdPattern(this, 'dca_cost_basis_1w'),
|
|
8247
|
-
_1m: createCentsSatsUsdPattern(this, 'dca_cost_basis_1m'),
|
|
8248
|
-
_3m: createCentsSatsUsdPattern(this, 'dca_cost_basis_3m'),
|
|
8249
|
-
_6m: createCentsSatsUsdPattern(this, 'dca_cost_basis_6m'),
|
|
8250
|
-
_1y: createCentsSatsUsdPattern(this, 'dca_cost_basis_1y'),
|
|
8251
|
-
_2y: createCentsSatsUsdPattern(this, 'dca_cost_basis_2y'),
|
|
8252
|
-
_3y: createCentsSatsUsdPattern(this, 'dca_cost_basis_3y'),
|
|
8253
|
-
_4y: createCentsSatsUsdPattern(this, 'dca_cost_basis_4y'),
|
|
8254
|
-
_5y: createCentsSatsUsdPattern(this, 'dca_cost_basis_5y'),
|
|
8255
|
-
_6y: createCentsSatsUsdPattern(this, 'dca_cost_basis_6y'),
|
|
8256
|
-
_8y: createCentsSatsUsdPattern(this, 'dca_cost_basis_8y'),
|
|
8257
|
-
_10y: createCentsSatsUsdPattern(this, 'dca_cost_basis_10y'),
|
|
8258
|
-
},
|
|
8259
|
-
return: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern2(this, 'dca_return'),
|
|
8260
|
-
cagr: create_10y2y3y4y5y6y8yPattern(this, 'dca_cagr'),
|
|
8261
|
-
lumpSumStack: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern3(this, 'lump_sum_stack'),
|
|
8262
|
-
lumpSumReturn: create_10y1m1w1y2y3m3y4y5y6m6y8yPattern2(this, 'lump_sum_return'),
|
|
8263
|
-
},
|
|
8264
|
-
class: {
|
|
8265
|
-
stack: {
|
|
8266
|
-
from2015: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2015'),
|
|
8267
|
-
from2016: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2016'),
|
|
8268
|
-
from2017: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2017'),
|
|
8269
|
-
from2018: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2018'),
|
|
8270
|
-
from2019: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2019'),
|
|
8271
|
-
from2020: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2020'),
|
|
8272
|
-
from2021: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2021'),
|
|
8273
|
-
from2022: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2022'),
|
|
8274
|
-
from2023: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2023'),
|
|
8275
|
-
from2024: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2024'),
|
|
8276
|
-
from2025: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2025'),
|
|
8277
|
-
from2026: createBtcCentsSatsUsdPattern3(this, 'dca_stack_from_2026'),
|
|
8278
|
-
},
|
|
8279
|
-
costBasis: {
|
|
8280
|
-
from2015: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2015'),
|
|
8281
|
-
from2016: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2016'),
|
|
8282
|
-
from2017: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2017'),
|
|
8283
|
-
from2018: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2018'),
|
|
8284
|
-
from2019: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2019'),
|
|
8285
|
-
from2020: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2020'),
|
|
8286
|
-
from2021: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2021'),
|
|
8287
|
-
from2022: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2022'),
|
|
8288
|
-
from2023: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2023'),
|
|
8289
|
-
from2024: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2024'),
|
|
8290
|
-
from2025: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2025'),
|
|
8291
|
-
from2026: createCentsSatsUsdPattern(this, 'dca_cost_basis_from_2026'),
|
|
8292
|
-
},
|
|
8293
|
-
return: {
|
|
8294
|
-
from2015: createBpsPercentRatioPattern(this, 'dca_return_from_2015'),
|
|
8295
|
-
from2016: createBpsPercentRatioPattern(this, 'dca_return_from_2016'),
|
|
8296
|
-
from2017: createBpsPercentRatioPattern(this, 'dca_return_from_2017'),
|
|
8297
|
-
from2018: createBpsPercentRatioPattern(this, 'dca_return_from_2018'),
|
|
8298
|
-
from2019: createBpsPercentRatioPattern(this, 'dca_return_from_2019'),
|
|
8299
|
-
from2020: createBpsPercentRatioPattern(this, 'dca_return_from_2020'),
|
|
8300
|
-
from2021: createBpsPercentRatioPattern(this, 'dca_return_from_2021'),
|
|
8301
|
-
from2022: createBpsPercentRatioPattern(this, 'dca_return_from_2022'),
|
|
8302
|
-
from2023: createBpsPercentRatioPattern(this, 'dca_return_from_2023'),
|
|
8303
|
-
from2024: createBpsPercentRatioPattern(this, 'dca_return_from_2024'),
|
|
8304
|
-
from2025: createBpsPercentRatioPattern(this, 'dca_return_from_2025'),
|
|
8305
|
-
from2026: createBpsPercentRatioPattern(this, 'dca_return_from_2026'),
|
|
8306
|
-
},
|
|
8307
|
-
},
|
|
8308
|
-
},
|
|
8309
8347
|
technical: {
|
|
8310
8348
|
rsi: {
|
|
8311
8349
|
_24h: createRsiStochPattern(this, 'rsi', '24h'),
|
|
@@ -8569,7 +8607,7 @@ class BrkClient extends BrkClientBase {
|
|
|
8569
8607
|
sats: createSeriesPattern1(this, 'realized_price_sats'),
|
|
8570
8608
|
bps: createSeriesPattern1(this, 'realized_price_ratio_bps'),
|
|
8571
8609
|
ratio: createSeriesPattern1(this, 'realized_price_ratio'),
|
|
8572
|
-
percentiles:
|
|
8610
|
+
percentiles: createPct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern(this, 'realized_price'),
|
|
8573
8611
|
sma: create_1m1w1y2y4yAllPattern(this, 'realized_price_ratio_sma'),
|
|
8574
8612
|
stdDev: {
|
|
8575
8613
|
all: {
|
|
@@ -8713,7 +8751,7 @@ class BrkClient extends BrkClientBase {
|
|
|
8713
8751
|
sats: createSeriesPattern1(this, 'sth_realized_price_sats'),
|
|
8714
8752
|
bps: createSeriesPattern1(this, 'sth_realized_price_ratio_bps'),
|
|
8715
8753
|
ratio: createSeriesPattern1(this, 'sth_realized_price_ratio'),
|
|
8716
|
-
percentiles:
|
|
8754
|
+
percentiles: createPct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern(this, 'sth_realized_price'),
|
|
8717
8755
|
sma: create_1m1w1y2y4yAllPattern(this, 'sth_realized_price_ratio_sma'),
|
|
8718
8756
|
stdDev: {
|
|
8719
8757
|
all: {
|
|
@@ -8812,7 +8850,7 @@ class BrkClient extends BrkClientBase {
|
|
|
8812
8850
|
sats: createSeriesPattern1(this, 'lth_realized_price_sats'),
|
|
8813
8851
|
bps: createSeriesPattern1(this, 'lth_realized_price_ratio_bps'),
|
|
8814
8852
|
ratio: createSeriesPattern1(this, 'lth_realized_price_ratio'),
|
|
8815
|
-
percentiles:
|
|
8853
|
+
percentiles: createPct0Pct1Pct2Pct5Pct95Pct98Pct99Pattern(this, 'lth_realized_price'),
|
|
8816
8854
|
sma: create_1m1w1y2y4yAllPattern(this, 'lth_realized_price_ratio_sma'),
|
|
8817
8855
|
stdDev: {
|
|
8818
8856
|
all: {
|
package/package.json
CHANGED