global: snapshot

This commit is contained in:
nym21
2026-03-16 11:47:40 +01:00
parent b74319bf10
commit bdb0c0878e
8 changed files with 325 additions and 386 deletions

View File

@@ -37,14 +37,14 @@ def test_fetch_csv_metric():
def test_fetch_typed_metric():
client = BrkClient("http://localhost:3110")
# Using new idiomatic API: tail(10).fetch() or [-10:].fetch()
a = client.metrics.constants.constant_0.by.day1().tail(10).fetch()
a = client.metrics.constants._0.by.day1().tail(10).fetch()
print(a)
b = client.metrics.outputs.count.utxo_count.by.height().tail(10).fetch()
b = client.metrics.outputs.count.unspent.by.height().tail(10).fetch()
print(b)
c = client.metrics.prices.split.close.usd.by.day1().tail(10).fetch()
print(c)
d = (
client.metrics.market.dca.period_lump_sum_stack._10y.usd.by.day1()
client.metrics.market.dca.period.lump_sum_stack._10y.usd.by.day1()
.tail(10)
.fetch()
)
@@ -55,11 +55,5 @@ def test_fetch_typed_metric():
.fetch()
)
print(e)
f = (
client.metrics.distribution.address_cohorts.amount_range._10k_sats_to_100k_sats.activity.sent.cumulative.usd.by.day1()
.tail(10)
.fetch()
)
f = client.metrics.prices.ohlc.usd.by.day1().tail(10).fetch()
print(f)
g = client.metrics.prices.ohlc.usd.by.day1().tail(10).fetch()
print(g)