global: snapshot

This commit is contained in:
nym21
2026-01-12 16:19:23 +01:00
parent 1484eae53c
commit b675b70067
20 changed files with 11573 additions and 6489 deletions

View File

@@ -22,7 +22,8 @@ fn main() -> brk_client::Result<()> {
.close
.by
.dateindex()
.range(Some(-3), None)?;
.from(-3)
.json()?;
println!("Last 3 price close values: {:?}", price_close);
// Fetch block data
@@ -34,7 +35,8 @@ fn main() -> brk_client::Result<()> {
.sum
.by
.dateindex()
.range(Some(-3), None)?;
.from(-3)
.json()?;
println!("Last 3 block count values: {:?}", block_count);
// Fetch supply data
@@ -56,7 +58,8 @@ fn main() -> brk_client::Result<()> {
.bitcoin
.by
.dateindex()
.range(Some(-3), None)?;
.from(-3)
.csv()?;
println!("Last 3 circulating supply values: {:?}", circulating);
// Using generic metric fetching