mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
global: snapshot
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user