brk-client 0.1.0b0__py3-none-any.whl → 0.1.0b1__py3-none-any.whl
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.
brk_client/__init__.py
CHANGED
|
@@ -2054,24 +2054,6 @@ class PeriodLumpSumStackPattern:
|
|
|
2054
2054
|
self._6y: _2015Pattern = _2015Pattern(client, _p('6y', acc))
|
|
2055
2055
|
self._8y: _2015Pattern = _2015Pattern(client, _p('8y', acc))
|
|
2056
2056
|
|
|
2057
|
-
class PeriodAveragePricePattern(Generic[T]):
|
|
2058
|
-
"""Pattern struct for repeated tree structure."""
|
|
2059
|
-
|
|
2060
|
-
def __init__(self, client: BrkClientBase, acc: str):
|
|
2061
|
-
"""Create pattern node with accumulated metric name."""
|
|
2062
|
-
self._10y: MetricPattern4[T] = MetricPattern4(client, _p('10y', acc))
|
|
2063
|
-
self._1m: MetricPattern4[T] = MetricPattern4(client, _p('1m', acc))
|
|
2064
|
-
self._1w: MetricPattern4[T] = MetricPattern4(client, _p('1w', acc))
|
|
2065
|
-
self._1y: MetricPattern4[T] = MetricPattern4(client, _p('1y', acc))
|
|
2066
|
-
self._2y: MetricPattern4[T] = MetricPattern4(client, _p('2y', acc))
|
|
2067
|
-
self._3m: MetricPattern4[T] = MetricPattern4(client, _p('3m', acc))
|
|
2068
|
-
self._3y: MetricPattern4[T] = MetricPattern4(client, _p('3y', acc))
|
|
2069
|
-
self._4y: MetricPattern4[T] = MetricPattern4(client, _p('4y', acc))
|
|
2070
|
-
self._5y: MetricPattern4[T] = MetricPattern4(client, _p('5y', acc))
|
|
2071
|
-
self._6m: MetricPattern4[T] = MetricPattern4(client, _p('6m', acc))
|
|
2072
|
-
self._6y: MetricPattern4[T] = MetricPattern4(client, _p('6y', acc))
|
|
2073
|
-
self._8y: MetricPattern4[T] = MetricPattern4(client, _p('8y', acc))
|
|
2074
|
-
|
|
2075
2057
|
class ClassAveragePricePattern(Generic[T]):
|
|
2076
2058
|
"""Pattern struct for repeated tree structure."""
|
|
2077
2059
|
|
|
@@ -2090,6 +2072,24 @@ class ClassAveragePricePattern(Generic[T]):
|
|
|
2090
2072
|
self._2025: MetricPattern4[T] = MetricPattern4(client, _m(acc, '2025_average_price'))
|
|
2091
2073
|
self._2026: MetricPattern4[T] = MetricPattern4(client, _m(acc, '2026_average_price'))
|
|
2092
2074
|
|
|
2075
|
+
class PeriodAveragePricePattern(Generic[T]):
|
|
2076
|
+
"""Pattern struct for repeated tree structure."""
|
|
2077
|
+
|
|
2078
|
+
def __init__(self, client: BrkClientBase, acc: str):
|
|
2079
|
+
"""Create pattern node with accumulated metric name."""
|
|
2080
|
+
self._10y: MetricPattern4[T] = MetricPattern4(client, _p('10y', acc))
|
|
2081
|
+
self._1m: MetricPattern4[T] = MetricPattern4(client, _p('1m', acc))
|
|
2082
|
+
self._1w: MetricPattern4[T] = MetricPattern4(client, _p('1w', acc))
|
|
2083
|
+
self._1y: MetricPattern4[T] = MetricPattern4(client, _p('1y', acc))
|
|
2084
|
+
self._2y: MetricPattern4[T] = MetricPattern4(client, _p('2y', acc))
|
|
2085
|
+
self._3m: MetricPattern4[T] = MetricPattern4(client, _p('3m', acc))
|
|
2086
|
+
self._3y: MetricPattern4[T] = MetricPattern4(client, _p('3y', acc))
|
|
2087
|
+
self._4y: MetricPattern4[T] = MetricPattern4(client, _p('4y', acc))
|
|
2088
|
+
self._5y: MetricPattern4[T] = MetricPattern4(client, _p('5y', acc))
|
|
2089
|
+
self._6m: MetricPattern4[T] = MetricPattern4(client, _p('6m', acc))
|
|
2090
|
+
self._6y: MetricPattern4[T] = MetricPattern4(client, _p('6y', acc))
|
|
2091
|
+
self._8y: MetricPattern4[T] = MetricPattern4(client, _p('8y', acc))
|
|
2092
|
+
|
|
2093
2093
|
class BitcoinPattern:
|
|
2094
2094
|
"""Pattern struct for repeated tree structure."""
|
|
2095
2095
|
|
|
@@ -2124,22 +2124,6 @@ class DollarsPattern(Generic[T]):
|
|
|
2124
2124
|
self.pct90: MetricPattern6[T] = MetricPattern6(client, _m(acc, 'pct90'))
|
|
2125
2125
|
self.sum: MetricPattern2[T] = MetricPattern2(client, _m(acc, 'sum'))
|
|
2126
2126
|
|
|
2127
|
-
class RelativePattern2:
|
|
2128
|
-
"""Pattern struct for repeated tree structure."""
|
|
2129
|
-
|
|
2130
|
-
def __init__(self, client: BrkClientBase, acc: str):
|
|
2131
|
-
"""Create pattern node with accumulated metric name."""
|
|
2132
|
-
self.neg_unrealized_loss_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'neg_unrealized_loss_rel_to_own_market_cap'))
|
|
2133
|
-
self.neg_unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'neg_unrealized_loss_rel_to_own_total_unrealized_pnl'))
|
|
2134
|
-
self.net_unrealized_pnl_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'net_unrealized_pnl_rel_to_own_market_cap'))
|
|
2135
|
-
self.net_unrealized_pnl_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'net_unrealized_pnl_rel_to_own_total_unrealized_pnl'))
|
|
2136
|
-
self.supply_in_loss_rel_to_own_supply: MetricPattern1[StoredF64] = MetricPattern1(client, _m(acc, 'supply_in_loss_rel_to_own_supply'))
|
|
2137
|
-
self.supply_in_profit_rel_to_own_supply: MetricPattern1[StoredF64] = MetricPattern1(client, _m(acc, 'supply_in_profit_rel_to_own_supply'))
|
|
2138
|
-
self.unrealized_loss_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_loss_rel_to_own_market_cap'))
|
|
2139
|
-
self.unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_loss_rel_to_own_total_unrealized_pnl'))
|
|
2140
|
-
self.unrealized_profit_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_profit_rel_to_own_market_cap'))
|
|
2141
|
-
self.unrealized_profit_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_profit_rel_to_own_total_unrealized_pnl'))
|
|
2142
|
-
|
|
2143
2127
|
class RelativePattern:
|
|
2144
2128
|
"""Pattern struct for repeated tree structure."""
|
|
2145
2129
|
|
|
@@ -2156,6 +2140,22 @@ class RelativePattern:
|
|
|
2156
2140
|
self.unrealized_loss_rel_to_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_loss_rel_to_market_cap'))
|
|
2157
2141
|
self.unrealized_profit_rel_to_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_profit_rel_to_market_cap'))
|
|
2158
2142
|
|
|
2143
|
+
class RelativePattern2:
|
|
2144
|
+
"""Pattern struct for repeated tree structure."""
|
|
2145
|
+
|
|
2146
|
+
def __init__(self, client: BrkClientBase, acc: str):
|
|
2147
|
+
"""Create pattern node with accumulated metric name."""
|
|
2148
|
+
self.neg_unrealized_loss_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'neg_unrealized_loss_rel_to_own_market_cap'))
|
|
2149
|
+
self.neg_unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'neg_unrealized_loss_rel_to_own_total_unrealized_pnl'))
|
|
2150
|
+
self.net_unrealized_pnl_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'net_unrealized_pnl_rel_to_own_market_cap'))
|
|
2151
|
+
self.net_unrealized_pnl_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'net_unrealized_pnl_rel_to_own_total_unrealized_pnl'))
|
|
2152
|
+
self.supply_in_loss_rel_to_own_supply: MetricPattern1[StoredF64] = MetricPattern1(client, _m(acc, 'supply_in_loss_rel_to_own_supply'))
|
|
2153
|
+
self.supply_in_profit_rel_to_own_supply: MetricPattern1[StoredF64] = MetricPattern1(client, _m(acc, 'supply_in_profit_rel_to_own_supply'))
|
|
2154
|
+
self.unrealized_loss_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_loss_rel_to_own_market_cap'))
|
|
2155
|
+
self.unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_loss_rel_to_own_total_unrealized_pnl'))
|
|
2156
|
+
self.unrealized_profit_rel_to_own_market_cap: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_profit_rel_to_own_market_cap'))
|
|
2157
|
+
self.unrealized_profit_rel_to_own_total_unrealized_pnl: MetricPattern1[StoredF32] = MetricPattern1(client, _m(acc, 'unrealized_profit_rel_to_own_total_unrealized_pnl'))
|
|
2158
|
+
|
|
2159
2159
|
class CountPattern2(Generic[T]):
|
|
2160
2160
|
"""Pattern struct for repeated tree structure."""
|
|
2161
2161
|
|
|
@@ -2245,33 +2245,20 @@ class PhaseDailyCentsPattern(Generic[T]):
|
|
|
2245
2245
|
self.pct75: MetricPattern6[T] = MetricPattern6(client, _m(acc, 'pct75'))
|
|
2246
2246
|
self.pct90: MetricPattern6[T] = MetricPattern6(client, _m(acc, 'pct90'))
|
|
2247
2247
|
|
|
2248
|
-
class
|
|
2248
|
+
class _0satsPattern2:
|
|
2249
2249
|
"""Pattern struct for repeated tree structure."""
|
|
2250
2250
|
|
|
2251
2251
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2252
2252
|
"""Create pattern node with accumulated metric name."""
|
|
2253
2253
|
self.activity: ActivityPattern2 = ActivityPattern2(client, acc)
|
|
2254
|
-
self.cost_basis:
|
|
2254
|
+
self.cost_basis: CostBasisPattern = CostBasisPattern(client, acc)
|
|
2255
2255
|
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, 'utxo_count'))
|
|
2256
|
-
self.realized:
|
|
2257
|
-
self.relative:
|
|
2256
|
+
self.realized: RealizedPattern = RealizedPattern(client, acc)
|
|
2257
|
+
self.relative: RelativePattern4 = RelativePattern4(client, _m(acc, 'supply_in'))
|
|
2258
2258
|
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, 'supply'))
|
|
2259
2259
|
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
|
2260
2260
|
|
|
2261
|
-
class
|
|
2262
|
-
"""Pattern struct for repeated tree structure."""
|
|
2263
|
-
|
|
2264
|
-
def __init__(self, client: BrkClientBase, acc: str):
|
|
2265
|
-
"""Create pattern node with accumulated metric name."""
|
|
2266
|
-
self.neg_unrealized_loss: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'neg_unrealized_loss'))
|
|
2267
|
-
self.net_unrealized_pnl: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'net_unrealized_pnl'))
|
|
2268
|
-
self.supply_in_loss: ActiveSupplyPattern = ActiveSupplyPattern(client, _m(acc, 'supply_in_loss'))
|
|
2269
|
-
self.supply_in_profit: ActiveSupplyPattern = ActiveSupplyPattern(client, _m(acc, 'supply_in_profit'))
|
|
2270
|
-
self.total_unrealized_pnl: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'total_unrealized_pnl'))
|
|
2271
|
-
self.unrealized_loss: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'unrealized_loss'))
|
|
2272
|
-
self.unrealized_profit: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'unrealized_profit'))
|
|
2273
|
-
|
|
2274
|
-
class _0satsPattern2:
|
|
2261
|
+
class _100btcPattern:
|
|
2275
2262
|
"""Pattern struct for repeated tree structure."""
|
|
2276
2263
|
|
|
2277
2264
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
@@ -2280,7 +2267,7 @@ class _0satsPattern2:
|
|
|
2280
2267
|
self.cost_basis: CostBasisPattern = CostBasisPattern(client, acc)
|
|
2281
2268
|
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, 'utxo_count'))
|
|
2282
2269
|
self.realized: RealizedPattern = RealizedPattern(client, acc)
|
|
2283
|
-
self.relative:
|
|
2270
|
+
self.relative: RelativePattern = RelativePattern(client, acc)
|
|
2284
2271
|
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, 'supply'))
|
|
2285
2272
|
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
|
2286
2273
|
|
|
@@ -2297,20 +2284,20 @@ class PeriodCagrPattern:
|
|
|
2297
2284
|
self._6y: MetricPattern4[StoredF32] = MetricPattern4(client, _p('6y', acc))
|
|
2298
2285
|
self._8y: MetricPattern4[StoredF32] = MetricPattern4(client, _p('8y', acc))
|
|
2299
2286
|
|
|
2300
|
-
class
|
|
2287
|
+
class _10yTo12yPattern:
|
|
2301
2288
|
"""Pattern struct for repeated tree structure."""
|
|
2302
2289
|
|
|
2303
2290
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2304
2291
|
"""Create pattern node with accumulated metric name."""
|
|
2305
2292
|
self.activity: ActivityPattern2 = ActivityPattern2(client, acc)
|
|
2306
|
-
self.cost_basis:
|
|
2293
|
+
self.cost_basis: CostBasisPattern2 = CostBasisPattern2(client, acc)
|
|
2307
2294
|
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, 'utxo_count'))
|
|
2308
|
-
self.realized:
|
|
2309
|
-
self.relative:
|
|
2295
|
+
self.realized: RealizedPattern2 = RealizedPattern2(client, acc)
|
|
2296
|
+
self.relative: RelativePattern2 = RelativePattern2(client, acc)
|
|
2310
2297
|
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, 'supply'))
|
|
2311
2298
|
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
|
2312
2299
|
|
|
2313
|
-
class
|
|
2300
|
+
class _10yPattern:
|
|
2314
2301
|
"""Pattern struct for repeated tree structure."""
|
|
2315
2302
|
|
|
2316
2303
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
@@ -2318,11 +2305,24 @@ class _100btcPattern:
|
|
|
2318
2305
|
self.activity: ActivityPattern2 = ActivityPattern2(client, acc)
|
|
2319
2306
|
self.cost_basis: CostBasisPattern = CostBasisPattern(client, acc)
|
|
2320
2307
|
self.outputs: OutputsPattern = OutputsPattern(client, _m(acc, 'utxo_count'))
|
|
2321
|
-
self.realized:
|
|
2308
|
+
self.realized: RealizedPattern4 = RealizedPattern4(client, acc)
|
|
2322
2309
|
self.relative: RelativePattern = RelativePattern(client, acc)
|
|
2323
2310
|
self.supply: SupplyPattern2 = SupplyPattern2(client, _m(acc, 'supply'))
|
|
2324
2311
|
self.unrealized: UnrealizedPattern = UnrealizedPattern(client, acc)
|
|
2325
2312
|
|
|
2313
|
+
class UnrealizedPattern:
|
|
2314
|
+
"""Pattern struct for repeated tree structure."""
|
|
2315
|
+
|
|
2316
|
+
def __init__(self, client: BrkClientBase, acc: str):
|
|
2317
|
+
"""Create pattern node with accumulated metric name."""
|
|
2318
|
+
self.neg_unrealized_loss: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'neg_unrealized_loss'))
|
|
2319
|
+
self.net_unrealized_pnl: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'net_unrealized_pnl'))
|
|
2320
|
+
self.supply_in_loss: ActiveSupplyPattern = ActiveSupplyPattern(client, _m(acc, 'supply_in_loss'))
|
|
2321
|
+
self.supply_in_profit: ActiveSupplyPattern = ActiveSupplyPattern(client, _m(acc, 'supply_in_profit'))
|
|
2322
|
+
self.total_unrealized_pnl: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'total_unrealized_pnl'))
|
|
2323
|
+
self.unrealized_loss: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'unrealized_loss'))
|
|
2324
|
+
self.unrealized_profit: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'unrealized_profit'))
|
|
2325
|
+
|
|
2326
2326
|
class ActivityPattern2:
|
|
2327
2327
|
"""Pattern struct for repeated tree structure."""
|
|
2328
2328
|
|
|
@@ -2344,23 +2344,23 @@ class SplitPattern2(Generic[T]):
|
|
|
2344
2344
|
self.low: MetricPattern1[T] = MetricPattern1(client, _m(acc, 'low'))
|
|
2345
2345
|
self.open: MetricPattern1[T] = MetricPattern1(client, _m(acc, 'open'))
|
|
2346
2346
|
|
|
2347
|
-
class
|
|
2347
|
+
class CostBasisPattern2:
|
|
2348
2348
|
"""Pattern struct for repeated tree structure."""
|
|
2349
2349
|
|
|
2350
2350
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2351
2351
|
"""Create pattern node with accumulated metric name."""
|
|
2352
|
-
self.
|
|
2353
|
-
self.
|
|
2354
|
-
self.
|
|
2352
|
+
self.max: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'max_cost_basis'))
|
|
2353
|
+
self.min: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'min_cost_basis'))
|
|
2354
|
+
self.percentiles: PercentilesPattern = PercentilesPattern(client, _m(acc, 'cost_basis'))
|
|
2355
2355
|
|
|
2356
|
-
class
|
|
2356
|
+
class ActiveSupplyPattern:
|
|
2357
2357
|
"""Pattern struct for repeated tree structure."""
|
|
2358
2358
|
|
|
2359
2359
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2360
2360
|
"""Create pattern node with accumulated metric name."""
|
|
2361
|
-
self.bitcoin:
|
|
2362
|
-
self.dollars:
|
|
2363
|
-
self.sats:
|
|
2361
|
+
self.bitcoin: MetricPattern1[Bitcoin] = MetricPattern1(client, _m(acc, 'btc'))
|
|
2362
|
+
self.dollars: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'usd'))
|
|
2363
|
+
self.sats: MetricPattern1[Sats] = MetricPattern1(client, acc)
|
|
2364
2364
|
|
|
2365
2365
|
class SegwitAdoptionPattern:
|
|
2366
2366
|
"""Pattern struct for repeated tree structure."""
|
|
@@ -2371,23 +2371,32 @@ class SegwitAdoptionPattern:
|
|
|
2371
2371
|
self.cumulative: MetricPattern2[StoredF32] = MetricPattern2(client, _m(acc, 'cumulative'))
|
|
2372
2372
|
self.sum: MetricPattern2[StoredF32] = MetricPattern2(client, _m(acc, 'sum'))
|
|
2373
2373
|
|
|
2374
|
-
class
|
|
2374
|
+
class CoinbasePattern2:
|
|
2375
2375
|
"""Pattern struct for repeated tree structure."""
|
|
2376
2376
|
|
|
2377
2377
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2378
2378
|
"""Create pattern node with accumulated metric name."""
|
|
2379
|
-
self.
|
|
2380
|
-
self.
|
|
2381
|
-
self.
|
|
2379
|
+
self.bitcoin: BlockCountPattern[Bitcoin] = BlockCountPattern(client, _m(acc, 'btc'))
|
|
2380
|
+
self.dollars: BlockCountPattern[Dollars] = BlockCountPattern(client, _m(acc, 'usd'))
|
|
2381
|
+
self.sats: BlockCountPattern[Sats] = BlockCountPattern(client, acc)
|
|
2382
2382
|
|
|
2383
|
-
class
|
|
2383
|
+
class UnclaimedRewardsPattern:
|
|
2384
2384
|
"""Pattern struct for repeated tree structure."""
|
|
2385
2385
|
|
|
2386
2386
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2387
2387
|
"""Create pattern node with accumulated metric name."""
|
|
2388
|
-
self.bitcoin:
|
|
2389
|
-
self.dollars:
|
|
2390
|
-
self.sats:
|
|
2388
|
+
self.bitcoin: BitcoinPattern2[Bitcoin] = BitcoinPattern2(client, _m(acc, 'btc'))
|
|
2389
|
+
self.dollars: BlockCountPattern[Dollars] = BlockCountPattern(client, _m(acc, 'usd'))
|
|
2390
|
+
self.sats: BlockCountPattern[Sats] = BlockCountPattern(client, acc)
|
|
2391
|
+
|
|
2392
|
+
class CoinbasePattern:
|
|
2393
|
+
"""Pattern struct for repeated tree structure."""
|
|
2394
|
+
|
|
2395
|
+
def __init__(self, client: BrkClientBase, acc: str):
|
|
2396
|
+
"""Create pattern node with accumulated metric name."""
|
|
2397
|
+
self.bitcoin: BitcoinPattern = BitcoinPattern(client, _m(acc, 'btc'))
|
|
2398
|
+
self.dollars: DollarsPattern[Dollars] = DollarsPattern(client, _m(acc, 'usd'))
|
|
2399
|
+
self.sats: DollarsPattern[Sats] = DollarsPattern(client, acc)
|
|
2391
2400
|
|
|
2392
2401
|
class _2015Pattern:
|
|
2393
2402
|
"""Pattern struct for repeated tree structure."""
|
|
@@ -2398,22 +2407,21 @@ class _2015Pattern:
|
|
|
2398
2407
|
self.dollars: MetricPattern4[Dollars] = MetricPattern4(client, _m(acc, 'usd'))
|
|
2399
2408
|
self.sats: MetricPattern4[Sats] = MetricPattern4(client, acc)
|
|
2400
2409
|
|
|
2401
|
-
class
|
|
2410
|
+
class RelativePattern4:
|
|
2402
2411
|
"""Pattern struct for repeated tree structure."""
|
|
2403
2412
|
|
|
2404
2413
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2405
2414
|
"""Create pattern node with accumulated metric name."""
|
|
2406
|
-
self.
|
|
2407
|
-
self.
|
|
2408
|
-
self.sats: BlockCountPattern[Sats] = BlockCountPattern(client, acc)
|
|
2415
|
+
self.supply_in_loss_rel_to_own_supply: MetricPattern1[StoredF64] = MetricPattern1(client, _m(acc, 'loss_rel_to_own_supply'))
|
|
2416
|
+
self.supply_in_profit_rel_to_own_supply: MetricPattern1[StoredF64] = MetricPattern1(client, _m(acc, 'profit_rel_to_own_supply'))
|
|
2409
2417
|
|
|
2410
|
-
class
|
|
2418
|
+
class SupplyPattern2:
|
|
2411
2419
|
"""Pattern struct for repeated tree structure."""
|
|
2412
2420
|
|
|
2413
2421
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2414
2422
|
"""Create pattern node with accumulated metric name."""
|
|
2415
|
-
self.
|
|
2416
|
-
self.
|
|
2423
|
+
self.halved: ActiveSupplyPattern = ActiveSupplyPattern(client, _m(acc, 'halved'))
|
|
2424
|
+
self.total: ActiveSupplyPattern = ActiveSupplyPattern(client, acc)
|
|
2417
2425
|
|
|
2418
2426
|
class CostBasisPattern:
|
|
2419
2427
|
"""Pattern struct for repeated tree structure."""
|
|
@@ -2423,28 +2431,28 @@ class CostBasisPattern:
|
|
|
2423
2431
|
self.max: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'max_cost_basis'))
|
|
2424
2432
|
self.min: MetricPattern1[Dollars] = MetricPattern1(client, _m(acc, 'min_cost_basis'))
|
|
2425
2433
|
|
|
2426
|
-
class
|
|
2434
|
+
class _1dReturns1mSdPattern:
|
|
2427
2435
|
"""Pattern struct for repeated tree structure."""
|
|
2428
2436
|
|
|
2429
2437
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2430
2438
|
"""Create pattern node with accumulated metric name."""
|
|
2431
|
-
self.
|
|
2432
|
-
self.
|
|
2439
|
+
self.sd: MetricPattern4[StoredF32] = MetricPattern4(client, _m(acc, 'sd'))
|
|
2440
|
+
self.sma: MetricPattern4[StoredF32] = MetricPattern4(client, _m(acc, 'sma'))
|
|
2433
2441
|
|
|
2434
|
-
class
|
|
2442
|
+
class BitcoinPattern2(Generic[T]):
|
|
2435
2443
|
"""Pattern struct for repeated tree structure."""
|
|
2436
2444
|
|
|
2437
2445
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2438
2446
|
"""Create pattern node with accumulated metric name."""
|
|
2439
|
-
self.
|
|
2440
|
-
self.
|
|
2447
|
+
self.cumulative: MetricPattern2[T] = MetricPattern2(client, _m(acc, 'cumulative'))
|
|
2448
|
+
self.sum: MetricPattern1[T] = MetricPattern1(client, acc)
|
|
2441
2449
|
|
|
2442
|
-
class
|
|
2450
|
+
class BlockCountPattern(Generic[T]):
|
|
2443
2451
|
"""Pattern struct for repeated tree structure."""
|
|
2444
2452
|
|
|
2445
2453
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2446
2454
|
"""Create pattern node with accumulated metric name."""
|
|
2447
|
-
self.cumulative:
|
|
2455
|
+
self.cumulative: MetricPattern1[T] = MetricPattern1(client, _m(acc, 'cumulative'))
|
|
2448
2456
|
self.sum: MetricPattern1[T] = MetricPattern1(client, acc)
|
|
2449
2457
|
|
|
2450
2458
|
class SatsPattern(Generic[T]):
|
|
@@ -2455,13 +2463,12 @@ class SatsPattern(Generic[T]):
|
|
|
2455
2463
|
self.ohlc: MetricPattern1[T] = MetricPattern1(client, _m(acc, 'ohlc'))
|
|
2456
2464
|
self.split: SplitPattern2[T] = SplitPattern2(client, acc)
|
|
2457
2465
|
|
|
2458
|
-
class
|
|
2466
|
+
class RealizedPriceExtraPattern:
|
|
2459
2467
|
"""Pattern struct for repeated tree structure."""
|
|
2460
2468
|
|
|
2461
2469
|
def __init__(self, client: BrkClientBase, acc: str):
|
|
2462
2470
|
"""Create pattern node with accumulated metric name."""
|
|
2463
|
-
self.
|
|
2464
|
-
self.sum: MetricPattern1[T] = MetricPattern1(client, acc)
|
|
2471
|
+
self.ratio: MetricPattern4[StoredF32] = MetricPattern4(client, acc)
|
|
2465
2472
|
|
|
2466
2473
|
class OutputsPattern:
|
|
2467
2474
|
"""Pattern struct for repeated tree structure."""
|
|
@@ -2470,13 +2477,6 @@ class OutputsPattern:
|
|
|
2470
2477
|
"""Create pattern node with accumulated metric name."""
|
|
2471
2478
|
self.utxo_count: MetricPattern1[StoredU64] = MetricPattern1(client, acc)
|
|
2472
2479
|
|
|
2473
|
-
class RealizedPriceExtraPattern:
|
|
2474
|
-
"""Pattern struct for repeated tree structure."""
|
|
2475
|
-
|
|
2476
|
-
def __init__(self, client: BrkClientBase, acc: str):
|
|
2477
|
-
"""Create pattern node with accumulated metric name."""
|
|
2478
|
-
self.ratio: MetricPattern4[StoredF32] = MetricPattern4(client, acc)
|
|
2479
|
-
|
|
2480
2480
|
# Metrics tree classes
|
|
2481
2481
|
|
|
2482
2482
|
class MetricsTree_Addresses:
|
|
@@ -2739,19 +2739,19 @@ class MetricsTree_Distribution_AddressCohorts_GeAmount:
|
|
|
2739
2739
|
"""Metrics tree node."""
|
|
2740
2740
|
|
|
2741
2741
|
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
2742
|
-
self._100btc: _0satsPattern = _0satsPattern(client, '
|
|
2743
|
-
self._100k_sats: _0satsPattern = _0satsPattern(client, '
|
|
2744
|
-
self._100sats: _0satsPattern = _0satsPattern(client, '
|
|
2745
|
-
self._10btc: _0satsPattern = _0satsPattern(client, '
|
|
2746
|
-
self._10k_btc: _0satsPattern = _0satsPattern(client, '
|
|
2747
|
-
self._10k_sats: _0satsPattern = _0satsPattern(client, '
|
|
2748
|
-
self._10m_sats: _0satsPattern = _0satsPattern(client, '
|
|
2749
|
-
self._10sats: _0satsPattern = _0satsPattern(client, '
|
|
2750
|
-
self._1btc: _0satsPattern = _0satsPattern(client, '
|
|
2751
|
-
self._1k_btc: _0satsPattern = _0satsPattern(client, '
|
|
2752
|
-
self._1k_sats: _0satsPattern = _0satsPattern(client, '
|
|
2753
|
-
self._1m_sats: _0satsPattern = _0satsPattern(client, '
|
|
2754
|
-
self._1sat: _0satsPattern = _0satsPattern(client, '
|
|
2742
|
+
self._100btc: _0satsPattern = _0satsPattern(client, 'addrs_over_100btc')
|
|
2743
|
+
self._100k_sats: _0satsPattern = _0satsPattern(client, 'addrs_over_100k_sats')
|
|
2744
|
+
self._100sats: _0satsPattern = _0satsPattern(client, 'addrs_over_100sats')
|
|
2745
|
+
self._10btc: _0satsPattern = _0satsPattern(client, 'addrs_over_10btc')
|
|
2746
|
+
self._10k_btc: _0satsPattern = _0satsPattern(client, 'addrs_over_10k_btc')
|
|
2747
|
+
self._10k_sats: _0satsPattern = _0satsPattern(client, 'addrs_over_10k_sats')
|
|
2748
|
+
self._10m_sats: _0satsPattern = _0satsPattern(client, 'addrs_over_10m_sats')
|
|
2749
|
+
self._10sats: _0satsPattern = _0satsPattern(client, 'addrs_over_10sats')
|
|
2750
|
+
self._1btc: _0satsPattern = _0satsPattern(client, 'addrs_over_1btc')
|
|
2751
|
+
self._1k_btc: _0satsPattern = _0satsPattern(client, 'addrs_over_1k_btc')
|
|
2752
|
+
self._1k_sats: _0satsPattern = _0satsPattern(client, 'addrs_over_1k_sats')
|
|
2753
|
+
self._1m_sats: _0satsPattern = _0satsPattern(client, 'addrs_over_1m_sats')
|
|
2754
|
+
self._1sat: _0satsPattern = _0satsPattern(client, 'addrs_over_1sat')
|
|
2755
2755
|
|
|
2756
2756
|
class MetricsTree_Distribution_AddressCohorts_LtAmount:
|
|
2757
2757
|
"""Metrics tree node."""
|
|
@@ -2803,27 +2803,27 @@ class MetricsTree_Distribution_UtxoCohorts_AgeRange:
|
|
|
2803
2803
|
"""Metrics tree node."""
|
|
2804
2804
|
|
|
2805
2805
|
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
2806
|
-
self._10y_to_12y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2807
|
-
self._12y_to_15y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2808
|
-
self._1d_to_1w: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2809
|
-
self._1h_to_1d: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2810
|
-
self._1m_to_2m: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2811
|
-
self._1w_to_1m: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2812
|
-
self._1y_to_2y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2813
|
-
self._2m_to_3m: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2814
|
-
self._2y_to_3y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2815
|
-
self._3m_to_4m: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2816
|
-
self._3y_to_4y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2817
|
-
self._4m_to_5m: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2818
|
-
self._4y_to_5y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2819
|
-
self._5m_to_6m: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2820
|
-
self._5y_to_6y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2821
|
-
self._6m_to_1y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2822
|
-
self._6y_to_7y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2823
|
-
self._7y_to_8y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2824
|
-
self._8y_to_10y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2825
|
-
self.from_15y: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2826
|
-
self.up_to_1h: _10yTo12yPattern = _10yTo12yPattern(client, '
|
|
2806
|
+
self._10y_to_12y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_10y_to_12y_old')
|
|
2807
|
+
self._12y_to_15y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_12y_to_15y_old')
|
|
2808
|
+
self._1d_to_1w: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_1d_to_1w_old')
|
|
2809
|
+
self._1h_to_1d: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_1h_to_1d_old')
|
|
2810
|
+
self._1m_to_2m: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_1m_to_2m_old')
|
|
2811
|
+
self._1w_to_1m: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_1w_to_1m_old')
|
|
2812
|
+
self._1y_to_2y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_1y_to_2y_old')
|
|
2813
|
+
self._2m_to_3m: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_2m_to_3m_old')
|
|
2814
|
+
self._2y_to_3y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_2y_to_3y_old')
|
|
2815
|
+
self._3m_to_4m: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_3m_to_4m_old')
|
|
2816
|
+
self._3y_to_4y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_3y_to_4y_old')
|
|
2817
|
+
self._4m_to_5m: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_4m_to_5m_old')
|
|
2818
|
+
self._4y_to_5y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_4y_to_5y_old')
|
|
2819
|
+
self._5m_to_6m: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_5m_to_6m_old')
|
|
2820
|
+
self._5y_to_6y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_5y_to_6y_old')
|
|
2821
|
+
self._6m_to_1y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_6m_to_1y_old')
|
|
2822
|
+
self._6y_to_7y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_6y_to_7y_old')
|
|
2823
|
+
self._7y_to_8y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_7y_to_8y_old')
|
|
2824
|
+
self._8y_to_10y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_8y_to_10y_old')
|
|
2825
|
+
self.from_15y: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_over_15y_old')
|
|
2826
|
+
self.up_to_1h: _10yTo12yPattern = _10yTo12yPattern(client, 'utxos_under_1h_old')
|
|
2827
2827
|
|
|
2828
2828
|
class MetricsTree_Distribution_UtxoCohorts_All_CostBasis:
|
|
2829
2829
|
"""Metrics tree node."""
|
|
@@ -2890,19 +2890,19 @@ class MetricsTree_Distribution_UtxoCohorts_GeAmount:
|
|
|
2890
2890
|
"""Metrics tree node."""
|
|
2891
2891
|
|
|
2892
2892
|
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
2893
|
-
self._100btc: _100btcPattern = _100btcPattern(client, '
|
|
2894
|
-
self._100k_sats: _100btcPattern = _100btcPattern(client, '
|
|
2895
|
-
self._100sats: _100btcPattern = _100btcPattern(client, '
|
|
2896
|
-
self._10btc: _100btcPattern = _100btcPattern(client, '
|
|
2897
|
-
self._10k_btc: _100btcPattern = _100btcPattern(client, '
|
|
2898
|
-
self._10k_sats: _100btcPattern = _100btcPattern(client, '
|
|
2899
|
-
self._10m_sats: _100btcPattern = _100btcPattern(client, '
|
|
2900
|
-
self._10sats: _100btcPattern = _100btcPattern(client, '
|
|
2901
|
-
self._1btc: _100btcPattern = _100btcPattern(client, '
|
|
2902
|
-
self._1k_btc: _100btcPattern = _100btcPattern(client, '
|
|
2903
|
-
self._1k_sats: _100btcPattern = _100btcPattern(client, '
|
|
2904
|
-
self._1m_sats: _100btcPattern = _100btcPattern(client, '
|
|
2905
|
-
self._1sat: _100btcPattern = _100btcPattern(client, '
|
|
2893
|
+
self._100btc: _100btcPattern = _100btcPattern(client, 'utxos_over_100btc')
|
|
2894
|
+
self._100k_sats: _100btcPattern = _100btcPattern(client, 'utxos_over_100k_sats')
|
|
2895
|
+
self._100sats: _100btcPattern = _100btcPattern(client, 'utxos_over_100sats')
|
|
2896
|
+
self._10btc: _100btcPattern = _100btcPattern(client, 'utxos_over_10btc')
|
|
2897
|
+
self._10k_btc: _100btcPattern = _100btcPattern(client, 'utxos_over_10k_btc')
|
|
2898
|
+
self._10k_sats: _100btcPattern = _100btcPattern(client, 'utxos_over_10k_sats')
|
|
2899
|
+
self._10m_sats: _100btcPattern = _100btcPattern(client, 'utxos_over_10m_sats')
|
|
2900
|
+
self._10sats: _100btcPattern = _100btcPattern(client, 'utxos_over_10sats')
|
|
2901
|
+
self._1btc: _100btcPattern = _100btcPattern(client, 'utxos_over_1btc')
|
|
2902
|
+
self._1k_btc: _100btcPattern = _100btcPattern(client, 'utxos_over_1k_btc')
|
|
2903
|
+
self._1k_sats: _100btcPattern = _100btcPattern(client, 'utxos_over_1k_sats')
|
|
2904
|
+
self._1m_sats: _100btcPattern = _100btcPattern(client, 'utxos_over_1m_sats')
|
|
2905
|
+
self._1sat: _100btcPattern = _100btcPattern(client, 'utxos_over_1sat')
|
|
2906
2906
|
|
|
2907
2907
|
class MetricsTree_Distribution_UtxoCohorts_LtAmount:
|
|
2908
2908
|
"""Metrics tree node."""
|
|
@@ -2926,47 +2926,47 @@ class MetricsTree_Distribution_UtxoCohorts_MaxAge:
|
|
|
2926
2926
|
"""Metrics tree node."""
|
|
2927
2927
|
|
|
2928
2928
|
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
2929
|
-
self._10y: _10yPattern = _10yPattern(client, '
|
|
2930
|
-
self._12y: _10yPattern = _10yPattern(client, '
|
|
2931
|
-
self._15y: _10yPattern = _10yPattern(client, '
|
|
2932
|
-
self._1m: _10yPattern = _10yPattern(client, '
|
|
2933
|
-
self._1w: _10yPattern = _10yPattern(client, '
|
|
2934
|
-
self._1y: _10yPattern = _10yPattern(client, '
|
|
2935
|
-
self._2m: _10yPattern = _10yPattern(client, '
|
|
2936
|
-
self._2y: _10yPattern = _10yPattern(client, '
|
|
2937
|
-
self._3m: _10yPattern = _10yPattern(client, '
|
|
2938
|
-
self._3y: _10yPattern = _10yPattern(client, '
|
|
2939
|
-
self._4m: _10yPattern = _10yPattern(client, '
|
|
2940
|
-
self._4y: _10yPattern = _10yPattern(client, '
|
|
2941
|
-
self._5m: _10yPattern = _10yPattern(client, '
|
|
2942
|
-
self._5y: _10yPattern = _10yPattern(client, '
|
|
2943
|
-
self._6m: _10yPattern = _10yPattern(client, '
|
|
2944
|
-
self._6y: _10yPattern = _10yPattern(client, '
|
|
2945
|
-
self._7y: _10yPattern = _10yPattern(client, '
|
|
2946
|
-
self._8y: _10yPattern = _10yPattern(client, '
|
|
2929
|
+
self._10y: _10yPattern = _10yPattern(client, 'utxos_under_10y_old')
|
|
2930
|
+
self._12y: _10yPattern = _10yPattern(client, 'utxos_under_12y_old')
|
|
2931
|
+
self._15y: _10yPattern = _10yPattern(client, 'utxos_under_15y_old')
|
|
2932
|
+
self._1m: _10yPattern = _10yPattern(client, 'utxos_under_1m_old')
|
|
2933
|
+
self._1w: _10yPattern = _10yPattern(client, 'utxos_under_1w_old')
|
|
2934
|
+
self._1y: _10yPattern = _10yPattern(client, 'utxos_under_1y_old')
|
|
2935
|
+
self._2m: _10yPattern = _10yPattern(client, 'utxos_under_2m_old')
|
|
2936
|
+
self._2y: _10yPattern = _10yPattern(client, 'utxos_under_2y_old')
|
|
2937
|
+
self._3m: _10yPattern = _10yPattern(client, 'utxos_under_3m_old')
|
|
2938
|
+
self._3y: _10yPattern = _10yPattern(client, 'utxos_under_3y_old')
|
|
2939
|
+
self._4m: _10yPattern = _10yPattern(client, 'utxos_under_4m_old')
|
|
2940
|
+
self._4y: _10yPattern = _10yPattern(client, 'utxos_under_4y_old')
|
|
2941
|
+
self._5m: _10yPattern = _10yPattern(client, 'utxos_under_5m_old')
|
|
2942
|
+
self._5y: _10yPattern = _10yPattern(client, 'utxos_under_5y_old')
|
|
2943
|
+
self._6m: _10yPattern = _10yPattern(client, 'utxos_under_6m_old')
|
|
2944
|
+
self._6y: _10yPattern = _10yPattern(client, 'utxos_under_6y_old')
|
|
2945
|
+
self._7y: _10yPattern = _10yPattern(client, 'utxos_under_7y_old')
|
|
2946
|
+
self._8y: _10yPattern = _10yPattern(client, 'utxos_under_8y_old')
|
|
2947
2947
|
|
|
2948
2948
|
class MetricsTree_Distribution_UtxoCohorts_MinAge:
|
|
2949
2949
|
"""Metrics tree node."""
|
|
2950
2950
|
|
|
2951
2951
|
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
2952
|
-
self._10y: _100btcPattern = _100btcPattern(client, '
|
|
2953
|
-
self._12y: _100btcPattern = _100btcPattern(client, '
|
|
2954
|
-
self._1d: _100btcPattern = _100btcPattern(client, '
|
|
2955
|
-
self._1m: _100btcPattern = _100btcPattern(client, '
|
|
2956
|
-
self._1w: _100btcPattern = _100btcPattern(client, '
|
|
2957
|
-
self._1y: _100btcPattern = _100btcPattern(client, '
|
|
2958
|
-
self._2m: _100btcPattern = _100btcPattern(client, '
|
|
2959
|
-
self._2y: _100btcPattern = _100btcPattern(client, '
|
|
2960
|
-
self._3m: _100btcPattern = _100btcPattern(client, '
|
|
2961
|
-
self._3y: _100btcPattern = _100btcPattern(client, '
|
|
2962
|
-
self._4m: _100btcPattern = _100btcPattern(client, '
|
|
2963
|
-
self._4y: _100btcPattern = _100btcPattern(client, '
|
|
2964
|
-
self._5m: _100btcPattern = _100btcPattern(client, '
|
|
2965
|
-
self._5y: _100btcPattern = _100btcPattern(client, '
|
|
2966
|
-
self._6m: _100btcPattern = _100btcPattern(client, '
|
|
2967
|
-
self._6y: _100btcPattern = _100btcPattern(client, '
|
|
2968
|
-
self._7y: _100btcPattern = _100btcPattern(client, '
|
|
2969
|
-
self._8y: _100btcPattern = _100btcPattern(client, '
|
|
2952
|
+
self._10y: _100btcPattern = _100btcPattern(client, 'utxos_over_10y_old')
|
|
2953
|
+
self._12y: _100btcPattern = _100btcPattern(client, 'utxos_over_12y_old')
|
|
2954
|
+
self._1d: _100btcPattern = _100btcPattern(client, 'utxos_over_1d_old')
|
|
2955
|
+
self._1m: _100btcPattern = _100btcPattern(client, 'utxos_over_1m_old')
|
|
2956
|
+
self._1w: _100btcPattern = _100btcPattern(client, 'utxos_over_1w_old')
|
|
2957
|
+
self._1y: _100btcPattern = _100btcPattern(client, 'utxos_over_1y_old')
|
|
2958
|
+
self._2m: _100btcPattern = _100btcPattern(client, 'utxos_over_2m_old')
|
|
2959
|
+
self._2y: _100btcPattern = _100btcPattern(client, 'utxos_over_2y_old')
|
|
2960
|
+
self._3m: _100btcPattern = _100btcPattern(client, 'utxos_over_3m_old')
|
|
2961
|
+
self._3y: _100btcPattern = _100btcPattern(client, 'utxos_over_3y_old')
|
|
2962
|
+
self._4m: _100btcPattern = _100btcPattern(client, 'utxos_over_4m_old')
|
|
2963
|
+
self._4y: _100btcPattern = _100btcPattern(client, 'utxos_over_4y_old')
|
|
2964
|
+
self._5m: _100btcPattern = _100btcPattern(client, 'utxos_over_5m_old')
|
|
2965
|
+
self._5y: _100btcPattern = _100btcPattern(client, 'utxos_over_5y_old')
|
|
2966
|
+
self._6m: _100btcPattern = _100btcPattern(client, 'utxos_over_6m_old')
|
|
2967
|
+
self._6y: _100btcPattern = _100btcPattern(client, 'utxos_over_6y_old')
|
|
2968
|
+
self._7y: _100btcPattern = _100btcPattern(client, 'utxos_over_7y_old')
|
|
2969
|
+
self._8y: _100btcPattern = _100btcPattern(client, 'utxos_over_8y_old')
|
|
2970
2970
|
|
|
2971
2971
|
class MetricsTree_Distribution_UtxoCohorts_Term_Long:
|
|
2972
2972
|
"""Metrics tree node."""
|
|
@@ -3320,6 +3320,74 @@ class MetricsTree_Market_Ath:
|
|
|
3320
3320
|
self.price_drawdown: MetricPattern3[StoredF32] = MetricPattern3(client, 'price_drawdown')
|
|
3321
3321
|
self.years_since_price_ath: MetricPattern4[StoredF32] = MetricPattern4(client, 'years_since_price_ath')
|
|
3322
3322
|
|
|
3323
|
+
class MetricsTree_Market_Dca_ClassDaysInLoss:
|
|
3324
|
+
"""Metrics tree node."""
|
|
3325
|
+
|
|
3326
|
+
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
3327
|
+
self._2015: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2015_days_in_loss')
|
|
3328
|
+
self._2016: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2016_days_in_loss')
|
|
3329
|
+
self._2017: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2017_days_in_loss')
|
|
3330
|
+
self._2018: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2018_days_in_loss')
|
|
3331
|
+
self._2019: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2019_days_in_loss')
|
|
3332
|
+
self._2020: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2020_days_in_loss')
|
|
3333
|
+
self._2021: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2021_days_in_loss')
|
|
3334
|
+
self._2022: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2022_days_in_loss')
|
|
3335
|
+
self._2023: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2023_days_in_loss')
|
|
3336
|
+
self._2024: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2024_days_in_loss')
|
|
3337
|
+
self._2025: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2025_days_in_loss')
|
|
3338
|
+
self._2026: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2026_days_in_loss')
|
|
3339
|
+
|
|
3340
|
+
class MetricsTree_Market_Dca_ClassDaysInProfit:
|
|
3341
|
+
"""Metrics tree node."""
|
|
3342
|
+
|
|
3343
|
+
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
3344
|
+
self._2015: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2015_days_in_profit')
|
|
3345
|
+
self._2016: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2016_days_in_profit')
|
|
3346
|
+
self._2017: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2017_days_in_profit')
|
|
3347
|
+
self._2018: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2018_days_in_profit')
|
|
3348
|
+
self._2019: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2019_days_in_profit')
|
|
3349
|
+
self._2020: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2020_days_in_profit')
|
|
3350
|
+
self._2021: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2021_days_in_profit')
|
|
3351
|
+
self._2022: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2022_days_in_profit')
|
|
3352
|
+
self._2023: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2023_days_in_profit')
|
|
3353
|
+
self._2024: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2024_days_in_profit')
|
|
3354
|
+
self._2025: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2025_days_in_profit')
|
|
3355
|
+
self._2026: MetricPattern4[StoredU32] = MetricPattern4(client, 'dca_class_2026_days_in_profit')
|
|
3356
|
+
|
|
3357
|
+
class MetricsTree_Market_Dca_ClassMaxDrawdown:
|
|
3358
|
+
"""Metrics tree node."""
|
|
3359
|
+
|
|
3360
|
+
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
3361
|
+
self._2015: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2015_max_drawdown')
|
|
3362
|
+
self._2016: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2016_max_drawdown')
|
|
3363
|
+
self._2017: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2017_max_drawdown')
|
|
3364
|
+
self._2018: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2018_max_drawdown')
|
|
3365
|
+
self._2019: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2019_max_drawdown')
|
|
3366
|
+
self._2020: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2020_max_drawdown')
|
|
3367
|
+
self._2021: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2021_max_drawdown')
|
|
3368
|
+
self._2022: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2022_max_drawdown')
|
|
3369
|
+
self._2023: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2023_max_drawdown')
|
|
3370
|
+
self._2024: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2024_max_drawdown')
|
|
3371
|
+
self._2025: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2025_max_drawdown')
|
|
3372
|
+
self._2026: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2026_max_drawdown')
|
|
3373
|
+
|
|
3374
|
+
class MetricsTree_Market_Dca_ClassMaxReturn:
|
|
3375
|
+
"""Metrics tree node."""
|
|
3376
|
+
|
|
3377
|
+
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
3378
|
+
self._2015: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2015_max_return')
|
|
3379
|
+
self._2016: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2016_max_return')
|
|
3380
|
+
self._2017: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2017_max_return')
|
|
3381
|
+
self._2018: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2018_max_return')
|
|
3382
|
+
self._2019: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2019_max_return')
|
|
3383
|
+
self._2020: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2020_max_return')
|
|
3384
|
+
self._2021: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2021_max_return')
|
|
3385
|
+
self._2022: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2022_max_return')
|
|
3386
|
+
self._2023: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2023_max_return')
|
|
3387
|
+
self._2024: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2024_max_return')
|
|
3388
|
+
self._2025: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2025_max_return')
|
|
3389
|
+
self._2026: MetricPattern4[StoredF32] = MetricPattern4(client, 'dca_class_2026_max_return')
|
|
3390
|
+
|
|
3323
3391
|
class MetricsTree_Market_Dca_ClassReturns:
|
|
3324
3392
|
"""Metrics tree node."""
|
|
3325
3393
|
|
|
@@ -3359,11 +3427,24 @@ class MetricsTree_Market_Dca:
|
|
|
3359
3427
|
|
|
3360
3428
|
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
3361
3429
|
self.class_average_price: ClassAveragePricePattern[Dollars] = ClassAveragePricePattern(client, 'dca_class')
|
|
3430
|
+
self.class_days_in_loss: MetricsTree_Market_Dca_ClassDaysInLoss = MetricsTree_Market_Dca_ClassDaysInLoss(client)
|
|
3431
|
+
self.class_days_in_profit: MetricsTree_Market_Dca_ClassDaysInProfit = MetricsTree_Market_Dca_ClassDaysInProfit(client)
|
|
3432
|
+
self.class_max_drawdown: MetricsTree_Market_Dca_ClassMaxDrawdown = MetricsTree_Market_Dca_ClassMaxDrawdown(client)
|
|
3433
|
+
self.class_max_return: MetricsTree_Market_Dca_ClassMaxReturn = MetricsTree_Market_Dca_ClassMaxReturn(client)
|
|
3362
3434
|
self.class_returns: MetricsTree_Market_Dca_ClassReturns = MetricsTree_Market_Dca_ClassReturns(client)
|
|
3363
3435
|
self.class_stack: MetricsTree_Market_Dca_ClassStack = MetricsTree_Market_Dca_ClassStack(client)
|
|
3364
3436
|
self.period_average_price: PeriodAveragePricePattern[Dollars] = PeriodAveragePricePattern(client, 'dca_average_price')
|
|
3365
3437
|
self.period_cagr: PeriodCagrPattern = PeriodCagrPattern(client, 'dca_cagr')
|
|
3438
|
+
self.period_days_in_loss: PeriodAveragePricePattern[StoredU32] = PeriodAveragePricePattern(client, 'dca_days_in_loss')
|
|
3439
|
+
self.period_days_in_profit: PeriodAveragePricePattern[StoredU32] = PeriodAveragePricePattern(client, 'dca_days_in_profit')
|
|
3440
|
+
self.period_lump_sum_days_in_loss: PeriodAveragePricePattern[StoredU32] = PeriodAveragePricePattern(client, 'lump_sum_days_in_loss')
|
|
3441
|
+
self.period_lump_sum_days_in_profit: PeriodAveragePricePattern[StoredU32] = PeriodAveragePricePattern(client, 'lump_sum_days_in_profit')
|
|
3442
|
+
self.period_lump_sum_max_drawdown: PeriodAveragePricePattern[StoredF32] = PeriodAveragePricePattern(client, 'lump_sum_max_drawdown')
|
|
3443
|
+
self.period_lump_sum_max_return: PeriodAveragePricePattern[StoredF32] = PeriodAveragePricePattern(client, 'lump_sum_max_return')
|
|
3444
|
+
self.period_lump_sum_returns: PeriodAveragePricePattern[StoredF32] = PeriodAveragePricePattern(client, 'lump_sum_returns')
|
|
3366
3445
|
self.period_lump_sum_stack: PeriodLumpSumStackPattern = PeriodLumpSumStackPattern(client, 'lump_sum_stack')
|
|
3446
|
+
self.period_max_drawdown: PeriodAveragePricePattern[StoredF32] = PeriodAveragePricePattern(client, 'dca_max_drawdown')
|
|
3447
|
+
self.period_max_return: PeriodAveragePricePattern[StoredF32] = PeriodAveragePricePattern(client, 'dca_max_return')
|
|
3367
3448
|
self.period_returns: PeriodAveragePricePattern[StoredF32] = PeriodAveragePricePattern(client, 'dca_returns')
|
|
3368
3449
|
self.period_stack: PeriodLumpSumStackPattern = PeriodLumpSumStackPattern(client, 'dca_stack')
|
|
3369
3450
|
|
|
@@ -3855,28 +3936,12 @@ class MetricsTree_Transactions_Count:
|
|
|
3855
3936
|
self.is_coinbase: MetricPattern27[StoredBool] = MetricPattern27(client, 'is_coinbase')
|
|
3856
3937
|
self.tx_count: DollarsPattern[StoredU64] = DollarsPattern(client, 'tx_count')
|
|
3857
3938
|
|
|
3858
|
-
class MetricsTree_Transactions_Fees_Fee_Dollars:
|
|
3859
|
-
"""Metrics tree node."""
|
|
3860
|
-
|
|
3861
|
-
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
3862
|
-
self.average: MetricPattern1[Dollars] = MetricPattern1(client, 'fee_usd_average')
|
|
3863
|
-
self.cumulative: MetricPattern2[Dollars] = MetricPattern2(client, 'fee_usd_cumulative')
|
|
3864
|
-
self.height_cumulative: MetricPattern11[Dollars] = MetricPattern11(client, 'fee_usd_cumulative')
|
|
3865
|
-
self.max: MetricPattern1[Dollars] = MetricPattern1(client, 'fee_usd_max')
|
|
3866
|
-
self.median: MetricPattern11[Dollars] = MetricPattern11(client, 'fee_usd_median')
|
|
3867
|
-
self.min: MetricPattern1[Dollars] = MetricPattern1(client, 'fee_usd_min')
|
|
3868
|
-
self.pct10: MetricPattern11[Dollars] = MetricPattern11(client, 'fee_usd_pct10')
|
|
3869
|
-
self.pct25: MetricPattern11[Dollars] = MetricPattern11(client, 'fee_usd_pct25')
|
|
3870
|
-
self.pct75: MetricPattern11[Dollars] = MetricPattern11(client, 'fee_usd_pct75')
|
|
3871
|
-
self.pct90: MetricPattern11[Dollars] = MetricPattern11(client, 'fee_usd_pct90')
|
|
3872
|
-
self.sum: MetricPattern1[Dollars] = MetricPattern1(client, 'fee_usd_sum')
|
|
3873
|
-
|
|
3874
3939
|
class MetricsTree_Transactions_Fees_Fee:
|
|
3875
3940
|
"""Metrics tree node."""
|
|
3876
3941
|
|
|
3877
3942
|
def __init__(self, client: BrkClientBase, base_path: str = ''):
|
|
3878
3943
|
self.bitcoin: CountPattern2[Bitcoin] = CountPattern2(client, 'fee_btc')
|
|
3879
|
-
self.dollars:
|
|
3944
|
+
self.dollars: CountPattern2[Dollars] = CountPattern2(client, 'fee_usd')
|
|
3880
3945
|
self.sats: CountPattern2[Sats] = CountPattern2(client, 'fee')
|
|
3881
3946
|
self.txindex: MetricPattern27[Sats] = MetricPattern27(client, 'fee')
|
|
3882
3947
|
|
|
@@ -3958,7 +4023,7 @@ class MetricsTree:
|
|
|
3958
4023
|
class BrkClient(BrkClientBase):
|
|
3959
4024
|
"""Main BRK client with metrics tree and API methods."""
|
|
3960
4025
|
|
|
3961
|
-
VERSION = "v0.1.0-
|
|
4026
|
+
VERSION = "v0.1.0-beta.0"
|
|
3962
4027
|
|
|
3963
4028
|
INDEXES = [
|
|
3964
4029
|
"dateindex",
|
|
@@ -4168,27 +4233,27 @@ class BrkClient(BrkClientBase):
|
|
|
4168
4233
|
EPOCH_NAMES = {
|
|
4169
4234
|
"_0": {
|
|
4170
4235
|
"id": "epoch_0",
|
|
4171
|
-
"short": "
|
|
4236
|
+
"short": "0",
|
|
4172
4237
|
"long": "Epoch 0"
|
|
4173
4238
|
},
|
|
4174
4239
|
"_1": {
|
|
4175
4240
|
"id": "epoch_1",
|
|
4176
|
-
"short": "
|
|
4241
|
+
"short": "1",
|
|
4177
4242
|
"long": "Epoch 1"
|
|
4178
4243
|
},
|
|
4179
4244
|
"_2": {
|
|
4180
4245
|
"id": "epoch_2",
|
|
4181
|
-
"short": "
|
|
4246
|
+
"short": "2",
|
|
4182
4247
|
"long": "Epoch 2"
|
|
4183
4248
|
},
|
|
4184
4249
|
"_3": {
|
|
4185
4250
|
"id": "epoch_3",
|
|
4186
|
-
"short": "
|
|
4251
|
+
"short": "3",
|
|
4187
4252
|
"long": "Epoch 3"
|
|
4188
4253
|
},
|
|
4189
4254
|
"_4": {
|
|
4190
4255
|
"id": "epoch_4",
|
|
4191
|
-
"short": "
|
|
4256
|
+
"short": "4",
|
|
4192
4257
|
"long": "Epoch 4"
|
|
4193
4258
|
}
|
|
4194
4259
|
}
|
|
@@ -4346,107 +4411,107 @@ class BrkClient(BrkClientBase):
|
|
|
4346
4411
|
|
|
4347
4412
|
AGE_RANGE_NAMES = {
|
|
4348
4413
|
"up_to_1h": {
|
|
4349
|
-
"id": "
|
|
4414
|
+
"id": "under_1h_old",
|
|
4350
4415
|
"short": "<1h",
|
|
4351
|
-
"long": "
|
|
4416
|
+
"long": "Under 1 Hour Old"
|
|
4352
4417
|
},
|
|
4353
4418
|
"_1h_to_1d": {
|
|
4354
|
-
"id": "
|
|
4419
|
+
"id": "1h_to_1d_old",
|
|
4355
4420
|
"short": "1h-1d",
|
|
4356
4421
|
"long": "1 Hour to 1 Day Old"
|
|
4357
4422
|
},
|
|
4358
4423
|
"_1d_to_1w": {
|
|
4359
|
-
"id": "
|
|
4424
|
+
"id": "1d_to_1w_old",
|
|
4360
4425
|
"short": "1d-1w",
|
|
4361
4426
|
"long": "1 Day to 1 Week Old"
|
|
4362
4427
|
},
|
|
4363
4428
|
"_1w_to_1m": {
|
|
4364
|
-
"id": "
|
|
4429
|
+
"id": "1w_to_1m_old",
|
|
4365
4430
|
"short": "1w-1m",
|
|
4366
4431
|
"long": "1 Week to 1 Month Old"
|
|
4367
4432
|
},
|
|
4368
4433
|
"_1m_to_2m": {
|
|
4369
|
-
"id": "
|
|
4434
|
+
"id": "1m_to_2m_old",
|
|
4370
4435
|
"short": "1m-2m",
|
|
4371
4436
|
"long": "1 to 2 Months Old"
|
|
4372
4437
|
},
|
|
4373
4438
|
"_2m_to_3m": {
|
|
4374
|
-
"id": "
|
|
4439
|
+
"id": "2m_to_3m_old",
|
|
4375
4440
|
"short": "2m-3m",
|
|
4376
4441
|
"long": "2 to 3 Months Old"
|
|
4377
4442
|
},
|
|
4378
4443
|
"_3m_to_4m": {
|
|
4379
|
-
"id": "
|
|
4444
|
+
"id": "3m_to_4m_old",
|
|
4380
4445
|
"short": "3m-4m",
|
|
4381
4446
|
"long": "3 to 4 Months Old"
|
|
4382
4447
|
},
|
|
4383
4448
|
"_4m_to_5m": {
|
|
4384
|
-
"id": "
|
|
4449
|
+
"id": "4m_to_5m_old",
|
|
4385
4450
|
"short": "4m-5m",
|
|
4386
4451
|
"long": "4 to 5 Months Old"
|
|
4387
4452
|
},
|
|
4388
4453
|
"_5m_to_6m": {
|
|
4389
|
-
"id": "
|
|
4454
|
+
"id": "5m_to_6m_old",
|
|
4390
4455
|
"short": "5m-6m",
|
|
4391
4456
|
"long": "5 to 6 Months Old"
|
|
4392
4457
|
},
|
|
4393
4458
|
"_6m_to_1y": {
|
|
4394
|
-
"id": "
|
|
4459
|
+
"id": "6m_to_1y_old",
|
|
4395
4460
|
"short": "6m-1y",
|
|
4396
4461
|
"long": "6 Months to 1 Year Old"
|
|
4397
4462
|
},
|
|
4398
4463
|
"_1y_to_2y": {
|
|
4399
|
-
"id": "
|
|
4464
|
+
"id": "1y_to_2y_old",
|
|
4400
4465
|
"short": "1y-2y",
|
|
4401
4466
|
"long": "1 to 2 Years Old"
|
|
4402
4467
|
},
|
|
4403
4468
|
"_2y_to_3y": {
|
|
4404
|
-
"id": "
|
|
4469
|
+
"id": "2y_to_3y_old",
|
|
4405
4470
|
"short": "2y-3y",
|
|
4406
4471
|
"long": "2 to 3 Years Old"
|
|
4407
4472
|
},
|
|
4408
4473
|
"_3y_to_4y": {
|
|
4409
|
-
"id": "
|
|
4474
|
+
"id": "3y_to_4y_old",
|
|
4410
4475
|
"short": "3y-4y",
|
|
4411
4476
|
"long": "3 to 4 Years Old"
|
|
4412
4477
|
},
|
|
4413
4478
|
"_4y_to_5y": {
|
|
4414
|
-
"id": "
|
|
4479
|
+
"id": "4y_to_5y_old",
|
|
4415
4480
|
"short": "4y-5y",
|
|
4416
4481
|
"long": "4 to 5 Years Old"
|
|
4417
4482
|
},
|
|
4418
4483
|
"_5y_to_6y": {
|
|
4419
|
-
"id": "
|
|
4484
|
+
"id": "5y_to_6y_old",
|
|
4420
4485
|
"short": "5y-6y",
|
|
4421
4486
|
"long": "5 to 6 Years Old"
|
|
4422
4487
|
},
|
|
4423
4488
|
"_6y_to_7y": {
|
|
4424
|
-
"id": "
|
|
4489
|
+
"id": "6y_to_7y_old",
|
|
4425
4490
|
"short": "6y-7y",
|
|
4426
4491
|
"long": "6 to 7 Years Old"
|
|
4427
4492
|
},
|
|
4428
4493
|
"_7y_to_8y": {
|
|
4429
|
-
"id": "
|
|
4494
|
+
"id": "7y_to_8y_old",
|
|
4430
4495
|
"short": "7y-8y",
|
|
4431
4496
|
"long": "7 to 8 Years Old"
|
|
4432
4497
|
},
|
|
4433
4498
|
"_8y_to_10y": {
|
|
4434
|
-
"id": "
|
|
4499
|
+
"id": "8y_to_10y_old",
|
|
4435
4500
|
"short": "8y-10y",
|
|
4436
4501
|
"long": "8 to 10 Years Old"
|
|
4437
4502
|
},
|
|
4438
4503
|
"_10y_to_12y": {
|
|
4439
|
-
"id": "
|
|
4504
|
+
"id": "10y_to_12y_old",
|
|
4440
4505
|
"short": "10y-12y",
|
|
4441
4506
|
"long": "10 to 12 Years Old"
|
|
4442
4507
|
},
|
|
4443
4508
|
"_12y_to_15y": {
|
|
4444
|
-
"id": "
|
|
4509
|
+
"id": "12y_to_15y_old",
|
|
4445
4510
|
"short": "12y-15y",
|
|
4446
4511
|
"long": "12 to 15 Years Old"
|
|
4447
4512
|
},
|
|
4448
4513
|
"from_15y": {
|
|
4449
|
-
"id": "
|
|
4514
|
+
"id": "over_15y_old",
|
|
4450
4515
|
"short": "15y+",
|
|
4451
4516
|
"long": "15+ Years Old"
|
|
4452
4517
|
}
|
|
@@ -4454,187 +4519,187 @@ class BrkClient(BrkClientBase):
|
|
|
4454
4519
|
|
|
4455
4520
|
MAX_AGE_NAMES = {
|
|
4456
4521
|
"_1w": {
|
|
4457
|
-
"id": "
|
|
4522
|
+
"id": "under_1w_old",
|
|
4458
4523
|
"short": "<1w",
|
|
4459
|
-
"long": "
|
|
4524
|
+
"long": "Under 1 Week Old"
|
|
4460
4525
|
},
|
|
4461
4526
|
"_1m": {
|
|
4462
|
-
"id": "
|
|
4527
|
+
"id": "under_1m_old",
|
|
4463
4528
|
"short": "<1m",
|
|
4464
|
-
"long": "
|
|
4529
|
+
"long": "Under 1 Month Old"
|
|
4465
4530
|
},
|
|
4466
4531
|
"_2m": {
|
|
4467
|
-
"id": "
|
|
4532
|
+
"id": "under_2m_old",
|
|
4468
4533
|
"short": "<2m",
|
|
4469
|
-
"long": "
|
|
4534
|
+
"long": "Under 2 Months Old"
|
|
4470
4535
|
},
|
|
4471
4536
|
"_3m": {
|
|
4472
|
-
"id": "
|
|
4537
|
+
"id": "under_3m_old",
|
|
4473
4538
|
"short": "<3m",
|
|
4474
|
-
"long": "
|
|
4539
|
+
"long": "Under 3 Months Old"
|
|
4475
4540
|
},
|
|
4476
4541
|
"_4m": {
|
|
4477
|
-
"id": "
|
|
4542
|
+
"id": "under_4m_old",
|
|
4478
4543
|
"short": "<4m",
|
|
4479
|
-
"long": "
|
|
4544
|
+
"long": "Under 4 Months Old"
|
|
4480
4545
|
},
|
|
4481
4546
|
"_5m": {
|
|
4482
|
-
"id": "
|
|
4547
|
+
"id": "under_5m_old",
|
|
4483
4548
|
"short": "<5m",
|
|
4484
|
-
"long": "
|
|
4549
|
+
"long": "Under 5 Months Old"
|
|
4485
4550
|
},
|
|
4486
4551
|
"_6m": {
|
|
4487
|
-
"id": "
|
|
4552
|
+
"id": "under_6m_old",
|
|
4488
4553
|
"short": "<6m",
|
|
4489
|
-
"long": "
|
|
4554
|
+
"long": "Under 6 Months Old"
|
|
4490
4555
|
},
|
|
4491
4556
|
"_1y": {
|
|
4492
|
-
"id": "
|
|
4557
|
+
"id": "under_1y_old",
|
|
4493
4558
|
"short": "<1y",
|
|
4494
|
-
"long": "
|
|
4559
|
+
"long": "Under 1 Year Old"
|
|
4495
4560
|
},
|
|
4496
4561
|
"_2y": {
|
|
4497
|
-
"id": "
|
|
4562
|
+
"id": "under_2y_old",
|
|
4498
4563
|
"short": "<2y",
|
|
4499
|
-
"long": "
|
|
4564
|
+
"long": "Under 2 Years Old"
|
|
4500
4565
|
},
|
|
4501
4566
|
"_3y": {
|
|
4502
|
-
"id": "
|
|
4567
|
+
"id": "under_3y_old",
|
|
4503
4568
|
"short": "<3y",
|
|
4504
|
-
"long": "
|
|
4569
|
+
"long": "Under 3 Years Old"
|
|
4505
4570
|
},
|
|
4506
4571
|
"_4y": {
|
|
4507
|
-
"id": "
|
|
4572
|
+
"id": "under_4y_old",
|
|
4508
4573
|
"short": "<4y",
|
|
4509
|
-
"long": "
|
|
4574
|
+
"long": "Under 4 Years Old"
|
|
4510
4575
|
},
|
|
4511
4576
|
"_5y": {
|
|
4512
|
-
"id": "
|
|
4577
|
+
"id": "under_5y_old",
|
|
4513
4578
|
"short": "<5y",
|
|
4514
|
-
"long": "
|
|
4579
|
+
"long": "Under 5 Years Old"
|
|
4515
4580
|
},
|
|
4516
4581
|
"_6y": {
|
|
4517
|
-
"id": "
|
|
4582
|
+
"id": "under_6y_old",
|
|
4518
4583
|
"short": "<6y",
|
|
4519
|
-
"long": "
|
|
4584
|
+
"long": "Under 6 Years Old"
|
|
4520
4585
|
},
|
|
4521
4586
|
"_7y": {
|
|
4522
|
-
"id": "
|
|
4587
|
+
"id": "under_7y_old",
|
|
4523
4588
|
"short": "<7y",
|
|
4524
|
-
"long": "
|
|
4589
|
+
"long": "Under 7 Years Old"
|
|
4525
4590
|
},
|
|
4526
4591
|
"_8y": {
|
|
4527
|
-
"id": "
|
|
4592
|
+
"id": "under_8y_old",
|
|
4528
4593
|
"short": "<8y",
|
|
4529
|
-
"long": "
|
|
4594
|
+
"long": "Under 8 Years Old"
|
|
4530
4595
|
},
|
|
4531
4596
|
"_10y": {
|
|
4532
|
-
"id": "
|
|
4597
|
+
"id": "under_10y_old",
|
|
4533
4598
|
"short": "<10y",
|
|
4534
|
-
"long": "
|
|
4599
|
+
"long": "Under 10 Years Old"
|
|
4535
4600
|
},
|
|
4536
4601
|
"_12y": {
|
|
4537
|
-
"id": "
|
|
4602
|
+
"id": "under_12y_old",
|
|
4538
4603
|
"short": "<12y",
|
|
4539
|
-
"long": "
|
|
4604
|
+
"long": "Under 12 Years Old"
|
|
4540
4605
|
},
|
|
4541
4606
|
"_15y": {
|
|
4542
|
-
"id": "
|
|
4607
|
+
"id": "under_15y_old",
|
|
4543
4608
|
"short": "<15y",
|
|
4544
|
-
"long": "
|
|
4609
|
+
"long": "Under 15 Years Old"
|
|
4545
4610
|
}
|
|
4546
4611
|
}
|
|
4547
4612
|
|
|
4548
4613
|
MIN_AGE_NAMES = {
|
|
4549
4614
|
"_1d": {
|
|
4550
|
-
"id": "
|
|
4615
|
+
"id": "over_1d_old",
|
|
4551
4616
|
"short": "1d+",
|
|
4552
|
-
"long": "
|
|
4617
|
+
"long": "Over 1 Day Old"
|
|
4553
4618
|
},
|
|
4554
4619
|
"_1w": {
|
|
4555
|
-
"id": "
|
|
4620
|
+
"id": "over_1w_old",
|
|
4556
4621
|
"short": "1w+",
|
|
4557
|
-
"long": "
|
|
4622
|
+
"long": "Over 1 Week Old"
|
|
4558
4623
|
},
|
|
4559
4624
|
"_1m": {
|
|
4560
|
-
"id": "
|
|
4625
|
+
"id": "over_1m_old",
|
|
4561
4626
|
"short": "1m+",
|
|
4562
|
-
"long": "
|
|
4627
|
+
"long": "Over 1 Month Old"
|
|
4563
4628
|
},
|
|
4564
4629
|
"_2m": {
|
|
4565
|
-
"id": "
|
|
4630
|
+
"id": "over_2m_old",
|
|
4566
4631
|
"short": "2m+",
|
|
4567
|
-
"long": "
|
|
4632
|
+
"long": "Over 2 Months Old"
|
|
4568
4633
|
},
|
|
4569
4634
|
"_3m": {
|
|
4570
|
-
"id": "
|
|
4635
|
+
"id": "over_3m_old",
|
|
4571
4636
|
"short": "3m+",
|
|
4572
|
-
"long": "
|
|
4637
|
+
"long": "Over 3 Months Old"
|
|
4573
4638
|
},
|
|
4574
4639
|
"_4m": {
|
|
4575
|
-
"id": "
|
|
4640
|
+
"id": "over_4m_old",
|
|
4576
4641
|
"short": "4m+",
|
|
4577
|
-
"long": "
|
|
4642
|
+
"long": "Over 4 Months Old"
|
|
4578
4643
|
},
|
|
4579
4644
|
"_5m": {
|
|
4580
|
-
"id": "
|
|
4645
|
+
"id": "over_5m_old",
|
|
4581
4646
|
"short": "5m+",
|
|
4582
|
-
"long": "
|
|
4647
|
+
"long": "Over 5 Months Old"
|
|
4583
4648
|
},
|
|
4584
4649
|
"_6m": {
|
|
4585
|
-
"id": "
|
|
4650
|
+
"id": "over_6m_old",
|
|
4586
4651
|
"short": "6m+",
|
|
4587
|
-
"long": "
|
|
4652
|
+
"long": "Over 6 Months Old"
|
|
4588
4653
|
},
|
|
4589
4654
|
"_1y": {
|
|
4590
|
-
"id": "
|
|
4655
|
+
"id": "over_1y_old",
|
|
4591
4656
|
"short": "1y+",
|
|
4592
|
-
"long": "
|
|
4657
|
+
"long": "Over 1 Year Old"
|
|
4593
4658
|
},
|
|
4594
4659
|
"_2y": {
|
|
4595
|
-
"id": "
|
|
4660
|
+
"id": "over_2y_old",
|
|
4596
4661
|
"short": "2y+",
|
|
4597
|
-
"long": "
|
|
4662
|
+
"long": "Over 2 Years Old"
|
|
4598
4663
|
},
|
|
4599
4664
|
"_3y": {
|
|
4600
|
-
"id": "
|
|
4665
|
+
"id": "over_3y_old",
|
|
4601
4666
|
"short": "3y+",
|
|
4602
|
-
"long": "
|
|
4667
|
+
"long": "Over 3 Years Old"
|
|
4603
4668
|
},
|
|
4604
4669
|
"_4y": {
|
|
4605
|
-
"id": "
|
|
4670
|
+
"id": "over_4y_old",
|
|
4606
4671
|
"short": "4y+",
|
|
4607
|
-
"long": "
|
|
4672
|
+
"long": "Over 4 Years Old"
|
|
4608
4673
|
},
|
|
4609
4674
|
"_5y": {
|
|
4610
|
-
"id": "
|
|
4675
|
+
"id": "over_5y_old",
|
|
4611
4676
|
"short": "5y+",
|
|
4612
|
-
"long": "
|
|
4677
|
+
"long": "Over 5 Years Old"
|
|
4613
4678
|
},
|
|
4614
4679
|
"_6y": {
|
|
4615
|
-
"id": "
|
|
4680
|
+
"id": "over_6y_old",
|
|
4616
4681
|
"short": "6y+",
|
|
4617
|
-
"long": "
|
|
4682
|
+
"long": "Over 6 Years Old"
|
|
4618
4683
|
},
|
|
4619
4684
|
"_7y": {
|
|
4620
|
-
"id": "
|
|
4685
|
+
"id": "over_7y_old",
|
|
4621
4686
|
"short": "7y+",
|
|
4622
|
-
"long": "
|
|
4687
|
+
"long": "Over 7 Years Old"
|
|
4623
4688
|
},
|
|
4624
4689
|
"_8y": {
|
|
4625
|
-
"id": "
|
|
4690
|
+
"id": "over_8y_old",
|
|
4626
4691
|
"short": "8y+",
|
|
4627
|
-
"long": "
|
|
4692
|
+
"long": "Over 8 Years Old"
|
|
4628
4693
|
},
|
|
4629
4694
|
"_10y": {
|
|
4630
|
-
"id": "
|
|
4695
|
+
"id": "over_10y_old",
|
|
4631
4696
|
"short": "10y+",
|
|
4632
|
-
"long": "
|
|
4697
|
+
"long": "Over 10 Years Old"
|
|
4633
4698
|
},
|
|
4634
4699
|
"_12y": {
|
|
4635
|
-
"id": "
|
|
4700
|
+
"id": "over_12y_old",
|
|
4636
4701
|
"short": "12y+",
|
|
4637
|
-
"long": "
|
|
4702
|
+
"long": "Over 12 Years Old"
|
|
4638
4703
|
}
|
|
4639
4704
|
}
|
|
4640
4705
|
|
|
@@ -4647,67 +4712,67 @@ class BrkClient(BrkClientBase):
|
|
|
4647
4712
|
"_1sat_to_10sats": {
|
|
4648
4713
|
"id": "above_1sat_under_10sats",
|
|
4649
4714
|
"short": "1-10 sats",
|
|
4650
|
-
"long": "1
|
|
4715
|
+
"long": "1-10 Sats"
|
|
4651
4716
|
},
|
|
4652
4717
|
"_10sats_to_100sats": {
|
|
4653
4718
|
"id": "above_10sats_under_100sats",
|
|
4654
4719
|
"short": "10-100 sats",
|
|
4655
|
-
"long": "10
|
|
4720
|
+
"long": "10-100 Sats"
|
|
4656
4721
|
},
|
|
4657
4722
|
"_100sats_to_1k_sats": {
|
|
4658
4723
|
"id": "above_100sats_under_1k_sats",
|
|
4659
4724
|
"short": "100-1k sats",
|
|
4660
|
-
"long": "100
|
|
4725
|
+
"long": "100-1K Sats"
|
|
4661
4726
|
},
|
|
4662
4727
|
"_1k_sats_to_10k_sats": {
|
|
4663
4728
|
"id": "above_1k_sats_under_10k_sats",
|
|
4664
4729
|
"short": "1k-10k sats",
|
|
4665
|
-
"long": "1K
|
|
4730
|
+
"long": "1K-10K Sats"
|
|
4666
4731
|
},
|
|
4667
4732
|
"_10k_sats_to_100k_sats": {
|
|
4668
4733
|
"id": "above_10k_sats_under_100k_sats",
|
|
4669
4734
|
"short": "10k-100k sats",
|
|
4670
|
-
"long": "10K
|
|
4735
|
+
"long": "10K-100K Sats"
|
|
4671
4736
|
},
|
|
4672
4737
|
"_100k_sats_to_1m_sats": {
|
|
4673
4738
|
"id": "above_100k_sats_under_1m_sats",
|
|
4674
4739
|
"short": "100k-1M sats",
|
|
4675
|
-
"long": "100K
|
|
4740
|
+
"long": "100K-1M Sats"
|
|
4676
4741
|
},
|
|
4677
4742
|
"_1m_sats_to_10m_sats": {
|
|
4678
4743
|
"id": "above_1m_sats_under_10m_sats",
|
|
4679
4744
|
"short": "1M-10M sats",
|
|
4680
|
-
"long": "1M
|
|
4745
|
+
"long": "1M-10M Sats"
|
|
4681
4746
|
},
|
|
4682
4747
|
"_10m_sats_to_1btc": {
|
|
4683
4748
|
"id": "above_10m_sats_under_1btc",
|
|
4684
4749
|
"short": "0.1-1 BTC",
|
|
4685
|
-
"long": "0.1
|
|
4750
|
+
"long": "0.1-1 BTC"
|
|
4686
4751
|
},
|
|
4687
4752
|
"_1btc_to_10btc": {
|
|
4688
4753
|
"id": "above_1btc_under_10btc",
|
|
4689
4754
|
"short": "1-10 BTC",
|
|
4690
|
-
"long": "1
|
|
4755
|
+
"long": "1-10 BTC"
|
|
4691
4756
|
},
|
|
4692
4757
|
"_10btc_to_100btc": {
|
|
4693
4758
|
"id": "above_10btc_under_100btc",
|
|
4694
4759
|
"short": "10-100 BTC",
|
|
4695
|
-
"long": "10
|
|
4760
|
+
"long": "10-100 BTC"
|
|
4696
4761
|
},
|
|
4697
4762
|
"_100btc_to_1k_btc": {
|
|
4698
4763
|
"id": "above_100btc_under_1k_btc",
|
|
4699
4764
|
"short": "100-1k BTC",
|
|
4700
|
-
"long": "100
|
|
4765
|
+
"long": "100-1K BTC"
|
|
4701
4766
|
},
|
|
4702
4767
|
"_1k_btc_to_10k_btc": {
|
|
4703
4768
|
"id": "above_1k_btc_under_10k_btc",
|
|
4704
4769
|
"short": "1k-10k BTC",
|
|
4705
|
-
"long": "1K
|
|
4770
|
+
"long": "1K-10K BTC"
|
|
4706
4771
|
},
|
|
4707
4772
|
"_10k_btc_to_100k_btc": {
|
|
4708
4773
|
"id": "above_10k_btc_under_100k_btc",
|
|
4709
4774
|
"short": "10k-100k BTC",
|
|
4710
|
-
"long": "10K
|
|
4775
|
+
"long": "10K-100K BTC"
|
|
4711
4776
|
},
|
|
4712
4777
|
"_100k_btc_or_more": {
|
|
4713
4778
|
"id": "above_100k_btc",
|
|
@@ -4718,69 +4783,69 @@ class BrkClient(BrkClientBase):
|
|
|
4718
4783
|
|
|
4719
4784
|
GE_AMOUNT_NAMES = {
|
|
4720
4785
|
"_1sat": {
|
|
4721
|
-
"id": "
|
|
4786
|
+
"id": "over_1sat",
|
|
4722
4787
|
"short": "1+ sats",
|
|
4723
|
-
"long": "
|
|
4788
|
+
"long": "Over 1 Sat"
|
|
4724
4789
|
},
|
|
4725
4790
|
"_10sats": {
|
|
4726
|
-
"id": "
|
|
4791
|
+
"id": "over_10sats",
|
|
4727
4792
|
"short": "10+ sats",
|
|
4728
|
-
"long": "
|
|
4793
|
+
"long": "Over 10 Sats"
|
|
4729
4794
|
},
|
|
4730
4795
|
"_100sats": {
|
|
4731
|
-
"id": "
|
|
4796
|
+
"id": "over_100sats",
|
|
4732
4797
|
"short": "100+ sats",
|
|
4733
|
-
"long": "
|
|
4798
|
+
"long": "Over 100 Sats"
|
|
4734
4799
|
},
|
|
4735
4800
|
"_1k_sats": {
|
|
4736
|
-
"id": "
|
|
4801
|
+
"id": "over_1k_sats",
|
|
4737
4802
|
"short": "1k+ sats",
|
|
4738
|
-
"long": "
|
|
4803
|
+
"long": "Over 1K Sats"
|
|
4739
4804
|
},
|
|
4740
4805
|
"_10k_sats": {
|
|
4741
|
-
"id": "
|
|
4806
|
+
"id": "over_10k_sats",
|
|
4742
4807
|
"short": "10k+ sats",
|
|
4743
|
-
"long": "
|
|
4808
|
+
"long": "Over 10K Sats"
|
|
4744
4809
|
},
|
|
4745
4810
|
"_100k_sats": {
|
|
4746
|
-
"id": "
|
|
4811
|
+
"id": "over_100k_sats",
|
|
4747
4812
|
"short": "100k+ sats",
|
|
4748
|
-
"long": "
|
|
4813
|
+
"long": "Over 100K Sats"
|
|
4749
4814
|
},
|
|
4750
4815
|
"_1m_sats": {
|
|
4751
|
-
"id": "
|
|
4816
|
+
"id": "over_1m_sats",
|
|
4752
4817
|
"short": "1M+ sats",
|
|
4753
|
-
"long": "
|
|
4818
|
+
"long": "Over 1M Sats"
|
|
4754
4819
|
},
|
|
4755
4820
|
"_10m_sats": {
|
|
4756
|
-
"id": "
|
|
4821
|
+
"id": "over_10m_sats",
|
|
4757
4822
|
"short": "0.1+ BTC",
|
|
4758
|
-
"long": "
|
|
4823
|
+
"long": "Over 0.1 BTC"
|
|
4759
4824
|
},
|
|
4760
4825
|
"_1btc": {
|
|
4761
|
-
"id": "
|
|
4826
|
+
"id": "over_1btc",
|
|
4762
4827
|
"short": "1+ BTC",
|
|
4763
|
-
"long": "
|
|
4828
|
+
"long": "Over 1 BTC"
|
|
4764
4829
|
},
|
|
4765
4830
|
"_10btc": {
|
|
4766
|
-
"id": "
|
|
4831
|
+
"id": "over_10btc",
|
|
4767
4832
|
"short": "10+ BTC",
|
|
4768
|
-
"long": "
|
|
4833
|
+
"long": "Over 10 BTC"
|
|
4769
4834
|
},
|
|
4770
4835
|
"_100btc": {
|
|
4771
|
-
"id": "
|
|
4836
|
+
"id": "over_100btc",
|
|
4772
4837
|
"short": "100+ BTC",
|
|
4773
|
-
"long": "
|
|
4838
|
+
"long": "Over 100 BTC"
|
|
4774
4839
|
},
|
|
4775
4840
|
"_1k_btc": {
|
|
4776
|
-
"id": "
|
|
4841
|
+
"id": "over_1k_btc",
|
|
4777
4842
|
"short": "1k+ BTC",
|
|
4778
|
-
"long": "
|
|
4843
|
+
"long": "Over 1K BTC"
|
|
4779
4844
|
},
|
|
4780
4845
|
"_10k_btc": {
|
|
4781
|
-
"id": "
|
|
4846
|
+
"id": "over_10k_btc",
|
|
4782
4847
|
"short": "10k+ BTC",
|
|
4783
|
-
"long": "
|
|
4848
|
+
"long": "Over 10K BTC"
|
|
4784
4849
|
}
|
|
4785
4850
|
}
|
|
4786
4851
|
|