Agentic Workflows for Crypto Research

insights.glassnodeОпубликовано 2026-04-01Обновлено 2026-04-01

Введение

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.

Связанные с этим вопросы

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.

Похожее

Morning Post | Bitmine Plans to Raise $300 Million Through Preferred Stock Issuance; Polymarket Accuses Kalshi of Commercial Espionage

ChainCatcher's Daily Crypto Brief: Key developments from the past 24 hours include significant funding moves, regulatory actions, and market predictions. Bitmine announced a $300 million preferred stock fundraising. Polymarket accused rival prediction platform Kalshi of corporate espionage, citing numerous suspicious coincidences in product launches, a claim Kalshi strongly denied. The U.S. Department of Justice, in a joint "Disruption Week" anti-fraud operation with companies like Coinbase and Meta, froze over $3.8 million in cryptocurrency linked to scams. In infrastructure news, Macau completed its integration with the multi-central bank digital currency bridge, mBridge, aiming to build efficient cross-border payment channels. Cosmos Labs acquired the block explorer Mintscan. Market-wise, Geoffrey Kendrick, Standard Chartered's Head of Digital Assets Research, stated Bitcoin is nearing a bottom around $63,000, maintaining a year-end target of $100,000. He noted stability in U.S. spot Bitcoin ETF holdings. Ahead of SpaceX's anticipated IPO, internal insiders at Rocket Lab (RKLB) sold over $18.41 million in stock. In tokenization, Goldman Sachs partnered with Apex and Archax to launch a tokenized real estate fund. The meme token tracker GMGN reported the top trending tokens: on Ethereum, HEX, SHIB, LINK, PEPE, mUSD; on Solana, TROLL, swarms, WORLDCUP, neet, Buttcoin; and on Base, PEPE, toby, ODDS, ELSA, SKI.

链捕手12 мин. назад

Morning Post | Bitmine Plans to Raise $300 Million Through Preferred Stock Issuance; Polymarket Accuses Kalshi of Commercial Espionage

链捕手12 мин. назад

55TB to 28TB? The Rumor and Panic Behind Rubin's Memory Being Halved

Title: 55TB to 28TB? The Rumor and Panic Behind the Potential Halving of Rubin's Memory. On June 4th, a report from SemiAnalysis suggested NVIDIA's next-gen Vera Rubin NVL72 AI rack may ship with roughly 28TB of SOCAMM DRAM per rack instead of the anticipated 55TB, primarily using 96GB modules. This sparked a market panic, causing Micron's stock to drop over 10% on fears of halved memory demand. However, the article argues this panic is misguided for several key reasons. First, SOCAMM modules are socketed and upgradeable, not soldered. Lower initial configuration doesn't mean permanent demand loss. Second, the primary driver is a severe 2026 LPDDR5X supply shortage, not diminished need. NVIDIA is likely prioritizing rack shipments with available components. Third, with fixed total LPDDR5X supply, using less per rack could allow NVIDIA to ship *more* racks, not necessarily reducing overall memory orders. Micron's sharp drop was also attributed to a broader semiconductor sell-off triggered by Broadcom's earnings, with the SemiAnalysis report providing a convenient narrative for profit-taking after Micron's massive rally. In summary: the report on lower default configurations is likely accurate, but interpreting it as a demand collapse is wrong. The real risk for Micron lies in its reportedly minimal HBM4 share for Rubin, not in potentially flexible SOCAMM demand. The sell-off appears more like a correction amplified by coinciding negative catalysts.

marsbit28 мин. назад

55TB to 28TB? The Rumor and Panic Behind Rubin's Memory Being Halved

marsbit28 мин. назад

Exclusive from Yingke | Tang Wenbin's 'Yuanli Lingji' Merges with Logistics Robotics Company, and Secures Investment from Zhipu, SenseTime, Jieyue, and Others

Exclusive report: Embodied AI company "Yuanli Lingji" recently completed a new round of financing from major AI model firms including Zhipu AI, Stepfun, and SenseTime, alongside continued investments from industrial backers like Huaqin and SAIC Hengxu. Founded in March 2025 by Tang Wenbin, former co-founder and CTO of Megvii, Yuanli Lingji is a general-purpose embodied AI model company. In a notable move, the company has merged with logistics robotics firm "Atomix" (formerly known as Yuanli Juhe) through a share acquisition. Atomix, which originated from Megvii's logistics robotics business led by Tang in 2016 and was spun off in July 2024, has grown to become the world's second-largest supplier of pallet shuttle robots, with annual revenue nearing 1 billion RMB and over 500 projects globally for clients like Uniqlo and CATL. This merger aims to break the industry's "data deadlock" by combining Atomix's extensive real-world operational data from more than 20 countries with Yuanli Lingji's model training capabilities. The company's embodied AI model "DM0" utilizes a cross-domain training approach, integrating internet semantics, autonomous driving rules, and robotics data to achieve hardware-agnostic, precise manipulation even with a compact 2.4B parameter size. The collective investment from key AI players and the strategic merger signal a shift in the competitive landscape, as major model companies pivot from language tokens to physical actions ("from Token to Action"). The industry is entering a consolidation phase where hardware, AI models, data, and application scenarios converge to scale embodied intelligence, a trend mirrored by recent moves from giants like ByteDance and Skild AI.

marsbit36 мин. назад

Exclusive from Yingke | Tang Wenbin's 'Yuanli Lingji' Merges with Logistics Robotics Company, and Secures Investment from Zhipu, SenseTime, Jieyue, and Others

marsbit36 мин. назад

U.S. Stock Market Trends: Dow Hits New High, Nasdaq Falls, Whom Did Broadcom's Slap Wake Up?

U.S. Stocks Split: Dow Hits Record High as Nasdaq Slips; Broadcom's Plunge Sparks Rotation On June 4, the U.S. stock market saw a sharp divergence. The Dow Jones surged 875 points (+1.73%) to a record high of 51,561.93, while the Nasdaq Composite edged down 0.09%. The S&P 500 rose 0.41%. The primary catalyst was a sharp sell-off in AI-related chip stocks, led by Broadcom (AVGO). Despite reporting a 143% year-over-year jump in AI semiconductor revenue to $10.8 billion, the company's shares plunged about 14%. This was triggered by its maintained long-term AI revenue target, which failed to meet heightened expectations for a stock that had gained 55% this quarter and traded at a high P/E ratio. The slide dragged down the broader semiconductor sector and the technology板块. Conversely, money rotated into sectors like Healthcare (+3.14%), Financials (+2.67%), and Real Estate (+1.87%). UnitedHealth and Goldman Sachs were major contributors to the Dow's gains. The rotation was attributed to a search for value outside overheated tech names and a slight dip in Treasury yields. In other major news, SpaceX confirmed its IPO for June 12, targeting a record $75 billion raise at a ~$1.75 trillion valuation. Additionally, initial jobless claims rose to a four-month high, adding nuance to the labor market narrative ahead of the key May non-farm payrolls report. The day's action signaled that while the AI growth story remains intact, excessive valuations are prompting a market reassessment. Funds are moving, at least temporarily, from high-flying tech to more defensive and value-oriented sectors. The sustainability of this rotation hinges on upcoming economic data, particularly the jobs report, and the market's absorption of the massive SpaceX IPO.

marsbit39 мин. назад

U.S. Stock Market Trends: Dow Hits New High, Nasdaq Falls, Whom Did Broadcom's Slap Wake Up?

marsbit39 мин. назад

From 'Old Dogs' to 'New Darlings': How AI is Revaluing Old Infrastructure, from Dell to Nokia

"Old Dogs" Become AI's New Darlings: Revaluing Legacy Infrastructure The AI investment narrative is shifting. Beyond the spotlight on core chipmakers like Nvidia, a new wave of interest is rising for legacy tech companies—Dell, HPE, Nokia, Cisco, Corning, Western Digital—once labeled as slow-growth, outdated stories. This resurgence stems from AI's evolution from model development to real-world deployment, creating massive demand for physical infrastructure. As AI moves into data center construction and enterprise adoption, the focus turns to who can actually build and deliver complex systems. These established players hold decades of experience in supply chains, integration, networking, and enterprise delivery—assets now critical for scaling AI. The revaluation can be grouped into three key infrastructure areas: 1. **Servers & Integration (e.g., Dell, HPE):** They are becoming essential system integrators, transforming GPUs into full-scale AI servers with networking, power, and cooling, then delivering them to clients. Strong recent earnings and AI-specific revenue/order growth for Dell and HPE underscore this shift. 2. **Networking & Connectivity (e.g., Corning, Nokia, Cisco):** As AI clusters grow, high-speed data transfer becomes paramount. Corning benefits from fiber demand for data center links, Nokia is exploring AI-integrated wireless networks (AI-RAN), and Cisco sees surging orders for data center switches—all critical for efficient AI operations. 3. **Storage (e.g., Western Digital, Seagate):** The AI data explosion requires vast capacity. Beyond high-speed memory (HBM), there's growing need for high-capacity HDDs to store training data, logs, video, and cold/archival data cost-effectively. This revaluation, however, is not a blanket endorsement. True reassessment requires concrete proof: AI-driven orders and revenue growth, upward revisions to company guidance, and sustainable improvements in profit quality, not just top-line sales. In essence, AI is not turning all old tech firms into high-growth stocks; it is selectively re-pricing the "old assets" of companies that are mission-critical for building the new AI infrastructure, transforming their legacy capabilities into renewed growth engines.

marsbit48 мин. назад

From 'Old Dogs' to 'New Darlings': How AI is Revaluing Old Infrastructure, from Dell to Nokia

marsbit48 мин. назад

Торговля

Спот
Фьючерсы
活动图片