Agentic Workflows for Crypto Research

insights.glassnodePubblicato 2026-04-01Pubblicato ultima volta 2026-04-01

Introduzione

AI coding agents are transforming crypto research by automating data analysis through natural language. This article demonstrates using an agent (like Claude Code) with the Glassnode CLI to test a hypothesis: whether extreme Bitcoin exchange inflows predict 7-day price drawdowns. The agent autonomously discovers metrics, fetches data, performs statistical analysis, and generates insights. Results show a moderate association—spike days saw ~1.9% greater drawdowns—though the sample is small. A follow-up prompt produces visualizations for validation. The workflow allows rapid iteration and is applicable to various research questions using Glassnode data, requiring only an API key and an AI agent.

AI coding agents are changing the way analysts and researchers interact with data. Instead of writing scripts line by line, you provide a hypothesis or research question to an AI agent and – it writes the code, fetches the data, runs the analysis, and returns results.

In this article we present a step-by-step real-world example: Asking an AI agent to download data via the Glassnode CLI, run a statistical analysis, and generate publication-ready charts, all from natural-language prompts.

What you will need

  1. Access to an AI agent

We use Claude Code in this walkthrough, but any agent able to execute Python and shell commands will work, including ChatGPT's Codex, Cursor, Github Copilot, Google Gemini CLI, OpenClaw, or similar tools.

  1. The Glassnode CLI (gn)

A command-line interface for the Glassnode API. Install it and configure your API key by following the Glassnode CLI docs. An API key is required.

The prompt

We will evaluate the following hypothesis: Extreme BTC exchange inflow events are predictive of 7-day forward drawdowns. To do that, we will instruct Claude Code using the following prompt:

Using the Glassnode CLI, download BTC daily exchange inflows and closing price for the last year. Analyze whether inflow spikes (days with inflows > 2 standard deviations above the mean) predict drawdowns in the following 7 days. Show me a summary with statistics and results.

That's it. One sentence describing the question, and another sentence defining the methodology. The agent takes it from there.

A simple prompt for the AI agent

What the agent does

Behind the scenes, the agent executes a sequence of steps:

  1. Discovers the right metrics by running gn metric list and gn metric describe to find the correct metric paths and valid parameters.
  2. Downloads the data via gn metric get, saving CSV files for both exchange inflows (transactions/transfers_volume_to_exchanges_sum) and closing price (market/price_usd_close).
  3. Writes and runs a Python analysis that computes the spike threshold, identifies spike days, calculates forward 7-day max drawdowns, and compares spike days to normal days.

The agent comes back with a readable summary:

While this is just an illustrative example, our experiment does reveal a moderate association between exchange inflow spikes and subsequent drawdowns. Spike days see roughly 1.9 percentage points more drawdown on average. That said, with only 10 spike days in the sample and the effect concentrated in two volatile periods, the signal is suggestive rather than statistically robust. A rigorous backtest would need to account for overlapping windows, control for volatility regimes, use point-in-time data, and validate out-of-sample.

Visualizing the results

Visualizing the data is a good way to validate whether the numbers hold up. In this process, a simple follow-up prompt is enough:

Create a visualization that shows the data as a timeseries.

From here, you can keep iterating: adjust the chart, refine the analysis, or take the research in a different direction, all through natural language conversation.

The AI-generated visualisation of Glassnode data

Get started with AI Crypto Research on Glassnode Data

The Glassnode CLI requires an API key, available to Glassnode Professional subscribers.

  1. Install the Glassnode CLI and configure your API key. See documentation
  2. Open your preferred AI coding agent (Claude Code, Codex, Cursor, Gemini CLI, OpenClaw, etc.)
  3. Start prompting. Try questions such as:
    • "Download ETH staking deposits for the last 6 months and plot the trend"
    • "Compare BTC and ETH exchange netflows over the last 90 days"
    • "Find which metric has the highest correlation with BTC 30-day returns"

The Glassnode CLI allows agents to discover and retrieve metric data without requiring manual API lookup or writing boilerplate code. Combined with an AI coding agent, the Glassnode CLI turns a research question into results in minutes.

Domande pertinenti

QWhat is the main advantage of using AI coding agents for crypto research as described in the article?

AThe main advantage is that AI coding agents automate the entire research workflow, allowing analysts to provide a natural-language hypothesis or research question, and the agent handles writing the code, fetching data, running analysis, and returning results, significantly speeding up the process.

QWhich specific AI agent is used in the walkthrough example for analyzing BTC exchange inflows?

AThe walkthrough uses Claude Code, but it notes that any AI agent capable of executing Python and shell commands, such as ChatGPT's Codex, Cursor, GitHub Copilot, Google Gemini CLI, or OpenClaw, would work.

QWhat hypothesis is tested in the example prompt given to the AI agent?

AThe hypothesis tested is: 'Extreme BTC exchange inflow events (days with inflows > 2 standard deviations above the mean) are predictive of 7-day forward drawdowns.'

QWhat are the key steps the AI agent performs behind the scenes after receiving the prompt?

AThe agent discovers the right metrics using Glassnode CLI commands, downloads the data (exchange inflows and closing price), writes and runs a Python analysis to compute spike thresholds and drawdowns, and returns a statistical comparison and summary.

QWhat is required to use the Glassnode CLI for AI-assisted research as mentioned in the article?

ATo use the Glassnode CLI, you need an API key, which is available to Glassnode Professional subscribers, and you must install and configure the CLI tool following the documentation.

Letture associate

Gary Yang: Agent Economy and AI Submicroeconomics

**Title:** Agent Economy and AI Sub-Microeconomics - Gary Yang **Summary:** Following the AI singularity, the pace of evolution has accelerated rapidly, creating new generational disparities in technological advancement globally. While many regions are still grappling with single-agent bottlenecks, Silicon Valley has moved ahead into the next dimension: the Agent Economy and A2A ecosystems. The article outlines six key areas of this emerging paradigm: 1. **AI Payment Competition & H2A Bottlenecks:** A fierce battle for AI Agent payment protocol standards is underway (e.g., MPP, x402). However, most current efforts remain Human-to-Agent (H2A), essentially grafting AI onto traditional human-centric commerce, which creates a non-AI-native bottleneck. The true potential lies in Agent-to-Agent (A2A) autonomous economies. 2. **Agent Economy & the Inevitable A2A Trend:** The Agent Economy is defined by autonomous AI Agents creating, exchanging, and capitalizing value as independent economic actors. The A2A ecosystem describes their interactions. This represents the next major investment frontier, akin to the early days of e-commerce or DeFi, but with faster iteration and an AI-native, efficiency-first perspective that often diverges from human needs. 3. **AI Protocol vs. Crypto Protocol:** AI Protocols are the foundational rules for Agent interaction in an open network (communication, discovery, collaboration), akin to the governance and economic laws of the AI world. Currently, they focus on communication and weak boundaries, unlike Crypto Protocols which emphasize asset rights and clear ownership. While they appear different due to political-economic factors and legacy system constraints, their eventual convergence into a unified Digital Protocol system is seen as inevitable, driven by first principles. 4. **AI Agent Sub-Microeconomics & Biological Analogy:** AI Agent economics differ fundamentally from human economics: higher frequency/lower value transactions, energy/value direct correlation, efficiency-driven (not emotional) decisions, task-oriented (not consumption-oriented) behavior, and near-zero organizational/communication costs. A powerful analogy frames the Agent economy as a biological system: the LLM is the nucleus, the Agent harness is the cytoplasm, the Agent itself is a cell, its communication protocol is the cell membrane, and external tools (Skills, Prompts) are the extracellular environment. 5. **The Inevitability of AIFi & FinChip:** AIFi (AI Finance) represents the financial system where AI-native value within the Agent economy is tokenized and exchanged. Unlike TradFi/DeFi where value resides *in* finance, in AIFi, value originates *in* AI, and finance becomes its form. This shift is enabled by Agents taking over value discovery. FinChip (Financial Chip) is introduced as a key infrastructure—a fusion of AI autonomy and crypto smart contracts—forming intelligent financial assets to power the future A2A economy. 6. **AI-Native as a Paradigm Shift:** Adopting AI is not akin to "Internet+". It requires AI-Native thinking—designing systems based on first principles, the shortest energy-value path, and maximum efficiency. This abstract, counter-intuitive logic poses a significant, ongoing challenge for all practitioners, as effective, generalized upgrade methodologies will be slow to emerge in this rapidly evolving landscape.

链捕手21 min fa

Gary Yang: Agent Economy and AI Submicroeconomics

链捕手21 min fa

From 'The Big Short' to San Francisco: The Revelry and Dizziness Within the AI Bubble

From "The Big Short" to San Francisco: The Frenzy and Dizziness in the AI Bubble The article captures the intense, frenetic atmosphere in San Francisco, the epicenter of the current AI boom. Drawing a parallel to the "smell of money" from *The Big Short*, the author observes a city gripped by a singular status game centered entirely on AI and technology. This manifests in a palpable, caffeine-fueled anxiety ("people are shaking"), rampant comparison using vanity metrics like funding rounds, and pervasive "Big Bubble Behavior." The piece explores the city's stark contrasts: its dystopian streets versus beautiful vistas, and the disconnect between the doomsday concerns of some AI researchers and the optimistic, growth-focused "GTM" teams. It critiques the obsession with "math genius" founders as the new ticket to outsized returns, akin to scouting sports prodigies. Referencing economic historian Carlota Perez's "frenzy phase" and Karl Polanyi's "double movement," the author frames the boom as a period where financial speculation detaches from fundamentals, with society potentially becoming subordinate to a new economic force driven by "geniuses in data centers." Ultimately, while acknowledging the unprecedented wealth creation and party-like energy, the article concludes with cautionary advice: when the music is playing, you should dance, but don't get drunk. The core reminder is to stay grounded, avoid distorted judgment, and maintain perspective amidst the euphoria.

marsbit23 min fa

From 'The Big Short' to San Francisco: The Revelry and Dizziness Within the AI Bubble

marsbit23 min fa

Is AI Creating a New Class of 'Information Poor'?

AI is generating a new kind of "information poverty." The core issue isn't that AI denies answers to the poor; it's that it provides abundant, cheap, and plausible-sounding answers to everyone. This availability shifts the true scarcity from obtaining answers to possessing the **judgment to evaluate them** and the access to turn them into real-world opportunities. New information poverty thus describes those who have AI tools and outputs, but lack the complementary skills, authorization, and contextual experience to critically assess and act on them. Research reveals a multi-layered divide: access to AI is stratified by income and platform design (e.g., premium vs. free, embedded tools). In workplaces, usage heavily favors higher-paid, more experienced, or formally trained employees, with AI often automating entry-level tasks that were traditional stepping stones. Crucially, the heaviest users are often mid-career professionals whose existing expertise allows them to effectively judge and leverage AI outputs, while novices risk over-relying on them without building judgment. While controlled experiments show AI can significantly boost low-skilled workers' performance, real-world adoption and benefit are constrained by unequal social and organizational structures. Historically, general-purpose technologies first reward those with existing complementary capital. AI, by affecting judgment-based work, may accelerate and deepen this initial inequality gap, even if it narrows over decades. The danger lies in the illusion of competence it creates, potentially stunting the very critical thinking needed in an era where judgment is paramount.

marsbit56 min fa

Is AI Creating a New Class of 'Information Poor'?

marsbit56 min fa

Jensen Huang 'Saves' South Korean Stock Market: Locks In SK Hynix Memory, Chip Shortage to Continue

On June 5th, South Korea's stock market experienced a sharp decline, with major chipmakers like Samsung and SK Hynix dropping nearly 10%. Amidst the turmoil, NVIDIA CEO Jensen Huang's visit to Seoul played a dramatic role in boosting market sentiment. Following a dinner meeting with SK Group Chairman Chey Tae-won and SK Hynix CEO Kwak Noh-Jung, Huang confirmed that NVIDIA's new Vera CPU will utilize SK Hynix DRAM. The companies announced a multi-year technical partnership to co-develop next-generation memory for NVIDIA's AI infrastructure, covering products from data centers to personal AI and robotics. This collaboration extends beyond memory supply. SK Hynix is integrating NVIDIA's AI and Omniverse platform into its own semiconductor design and manufacturing processes, including computational lithography and creating digital twins of its fabrication plants for autonomous operation. While strengthening ties with SK Hynix, NVIDIA is diversifying its supply chain for the upcoming HBM4 memory, with Samsung, SK Hynix, and Micron all certified as suppliers for its Vera Rubin platform. Despite this, Huang warned that the global chip shortage, driven by relentless demand from AI factory construction, is expected to persist for several years across the entire supply chain. His visit underscores NVIDIA's systematic effort to deepen integration with South Korea's broader tech industry.

marsbit1 h fa

Jensen Huang 'Saves' South Korean Stock Market: Locks In SK Hynix Memory, Chip Shortage to Continue

marsbit1 h fa

Nasdaq Plunges 4.2% in a Single Day: Does "Black Friday" Burst the U.S. Stock Market Bubble?

The Nasdaq plunged 4.18% on June 5, 2026, its worst single-day drop in over a year, as a much stronger-than-expected US jobs report triggered fears of economic overheating and delayed Federal Reserve interest rate cuts. The selloff, centered on high-valuation tech and AI stocks like Nvidia and Broadcom, spread across major indices. The article examines whether this signals a market top. The strong May non-farm payrolls data, nearly double expectations, pushed bond yields higher, directly hurting rate-sensitive tech stocks. This exposed vulnerabilities in the crowded AI trade, where valuations had soared on narratives of infinite growth, despite emerging signs of slowing order momentum and corporate AI monetization challenges. Prior to the drop, market indicators flashed warning signs: historically high valuations (e.g., Shiller CAPE ratio near 39.5), extreme bullish sentiment, and high levels of leverage. Technical charts showed key support levels being breached. Wall Street is divided on the outlook. Bears, citing risks of "stagflation" and AI bubble comparisons to the dot-com era, warn of a potential significant correction. Bulls view the drop as a healthy correction within a bull market, underpinned by a strong economy and expected corporate earnings growth of around 7% in 2026. The immediate future hinges on upcoming key events: the May CPI inflation data and the mid-June FOMC meeting. Their outcomes will critically shape market expectations for the Fed's rate path. The article concludes that conditions for a major market top are aligning, marking a fragile transition from narrative-driven gains to a phase demanding validation from macroeconomic data and corporate fundamentals. Caution is advised.

marsbit1 h fa

Nasdaq Plunges 4.2% in a Single Day: Does "Black Friday" Burst the U.S. Stock Market Bubble?

marsbit1 h fa

Trading

Spot
Futures
活动图片