Agentic Workflows for Crypto Research

insights.glassnodePublished on 2026-04-01Last updated on 2026-04-01

Abstract

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.

Related Questions

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.

Related Reads

Trend in US Stocks: A Post Triggers a 930-Point Rebound, Tonight Belongs to SpaceX

On Thursday (June 11, U.S. Eastern Time), Wall Street staged a textbook V-shaped reversal. The Dow Jones surged 929.97 points (+1.86%) to close above 50,000, while the Nasdaq and S&P 500 rose 2.54% and 1.75%, respectively. The rally occurred despite the hottest PPI report in years, with May data showing a 6.5% year-on-year surge, the highest since 2022. The market ignored the inflation data, focusing instead on reports that former President Trump called off a planned strike on Iran, hinting at a potential multi-party peace agreement draft. This sparked a sharp drop in oil prices, fueling hopes that inflation may have peaked. Sector rotations were stark: previously battered AI hardware and cyclical stocks led the gains, while defensive sectors that hit record highs the prior day were sold off. Chip stocks like Micron and Intel saw sharp rebounds. In contrast, software giant Oracle plunged nearly 10% despite beating earnings, with concerns over cloud revenue and cash flow. Adobe also fell after hours despite raising guidance, as its CFO announced departure. The rally's sustainability is questioned, driven largely by social media posts about unconfirmed geopolitical developments. Inflation risks remain, with pipeline pressures still high. Meanwhile, the market's risk appetite faces a major test with SpaceX's historic IPO. Priced at $135 per share, it aims to raise ~$75 billion with a $1.75 trillion valuation, becoming the largest U.S. IPO ever. It will join the Nasdaq 100 in 15 days, triggering massive index fund buying. However, critics cite extreme valuation (88x sales) and market liquidity concerns.

marsbit7m ago

Trend in US Stocks: A Post Triggers a 930-Point Rebound, Tonight Belongs to SpaceX

marsbit7m ago

The Trillion-Dollar Valuation Test: Are the Three Super IPOs a Tech Stock Frenzy or a Crypto Market Nightmare?

Trillion-Dollar Valuation Test: Are the Three Mega IPOs a Tech Stock Frenzy or a Crypto Market Nightmare? The capital market in 2026 is witnessing a highly anticipated wave of tech IPOs, centered on SpaceX, OpenAI, and Anthropic. Collectively valued at over $3.5 trillion, their potential listing represents one of the largest such waves in recent years. This raises concerns about market liquidity, valuation bubbles, and potential capital outflows from other assets like crypto. SpaceX's valuation narrative has shifted from rocket launches to becoming a global infrastructure play via its Starlink satellite network, which now drives most revenue. Despite ongoing losses, investors focus on its long-term growth potential. OpenAI and Anthropic represent the core productivity engines of generative AI. Their public listings would offer the first direct investment opportunity in large foundation model companies, potentially triggering a repricing within the AI sector. Market fears of a massive "capital drain" from these IPOs are likely overstated. Historical precedents like Alibaba and Saudi Aramco show that mega-listings primarily cause capital reallocation, not destruction, within the vast equities market. Systemic risk is rarely triggered by IPOs alone. For stock markets, short-term volatility and sector repricing are expected, especially for AI concept stocks. Long-term, these listings could reinforce the tech sector's importance. For crypto, direct competition for speculative capital exists, particularly affecting AI-themed tokens. However, crypto's trajectory remains more tied to its own cycles, macro liquidity, and Bitcoin ETF flows rather than a single IPO event. The real risk lies not in the listings themselves but in the sky-high growth expectations embedded in these valuations. If future revenue, profitability, or commercialization progress disappoints, significant valuation resets could follow, impacting high-growth tech stocks. Ultimately, the market's direction hinges on macroeconomic conditions and whether these companies can deliver on their ambitious promises.

链捕手23m ago

The Trillion-Dollar Valuation Test: Are the Three Super IPOs a Tech Stock Frenzy or a Crypto Market Nightmare?

链捕手23m ago

Trillion-Dollar Valuation Test: Are the Three Super IPOs a Tech Stock Frenzy or a Crypto Market Nightmare?

Title: Trillion-Dollar Valuations at Stake: Super IPOs of SpaceX, OpenAI, Anthropic – Tech Boom or Crypto Nightmare? TL;DR: A wave of mega-tech IPOs is approaching, featuring SpaceX (targeting a $1.75 trillion valuation), OpenAI (~$852B), and Anthropic (~$965B), with a combined potential valuation exceeding $3.5 trillion. This tests the market's pricing of innovation and sparks debate on liquidity impact. * **SpaceX**'s valuation is now driven more by its Starlink global communications infrastructure than its core rocket business. * **OpenAI & Anthropic** offer the first major public investment opportunities in foundational AI models, potentially repricing the entire AI sector. * Concerns about a market-wide "liquidity drain" are likely overblown; history shows large IPOs mainly cause fund reallocation, not disappearance, and rarely trigger systemic risk. * Crypto markets, especially some AI-themed tokens, may face short-term fund competition, but their long-term trajectory depends more on macro liquidity, regulation, and Bitcoin cycles. * The real risk lies not in the IPOs themselves, but in whether these companies can justify their sky-high valuations with future revenue growth and profitability. Unmet expectations could lead to significant repricing pressure. Ultimately, these IPOs represent a massive market pricing of next-gen tech infrastructure, not a prelude to a market crash. The broader market direction will be determined by macro conditions, corporate earnings, and risk appetite.

marsbit23m ago

Trillion-Dollar Valuation Test: Are the Three Super IPOs a Tech Stock Frenzy or a Crypto Market Nightmare?

marsbit23m ago

Anthropic Apologized, But the Business of 'Safety' Hasn't Stopped

On June 11, Anthropic apologized not for a model failure, but for a lack of transparency. Its new Claude Fable 5 model was found to be secretly rerouting requests from users engaged in advanced AI model development to a weaker version, Opus 4.8, without any notification. The company's response—promising future notifications for such "downgrades"—was met with user skepticism. The article argues the core issue isn't technical but commercial: Anthropic's "safety" measures are primarily a business strategy. A key feature, the "intelligent safety classifier," marketed as user protection, is described as a tool for "competitive defense" to protect Anthropic's market lead by limiting rivals' research capabilities. This covert mechanism was designed for low "false positives," precisely targeting AI researchers. Anthropic's model involves a calculated three-step process: publishing alarming security research to amplify public anxiety, offering its Fable 5 model with a "safety classifier" as a premium-priced solution, and cashing in through a planned high-value IPO. This contrasts with OpenAI's more direct "tool-and-traffic" approach. The apology, merely changing a secret downgrade to a visible one, is seen as a business "patch" rather than a principled shift. The incident risks damaging Anthropic's "safest AI" reputation among the developer community, which underpins its valuation and appeal to government and corporate clients. Ultimately, the article concludes that for Anthropic, safety is a business, and the apology is merely customer service for that business.

marsbit1h ago

Anthropic Apologized, But the Business of 'Safety' Hasn't Stopped

marsbit1h ago

Trading

Spot
Futures
活动图片