Agentic Workflows for Crypto Research

insights.glassnodePublicado a 2026-04-01Actualizado a 2026-04-01

Resumen

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.

Preguntas relacionadas

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.

Lecturas Relacionadas

Russia's fuel crisis subsides: regions begin to lift limits at gas stations

Russia's fuel crisis is showing signs of abating. Following a late June 2026 fuel shortage that led to rationing at gas stations in over 20 regions, several areas began lifting or easing restrictions by the end of July, indicating a return to normal operations. Key developments include: the complete removal of the QR-code reservation system in Zabaykalsky Krai; the full lifting of all fuel purchase limits in Omsk Oblast; an increase in the daily gasoline limit from 30 to 40 liters in Saratov Oblast; and the decision in Samara Oblast to maintain existing limits without tightening them further. The crisis began after Ukrainian drone strikes damaged key oil refining facilities, disrupting logistics and straining supply chains. At its peak, widespread limits were imposed, with regions restricting purchases to as little as 30-40 liters of gasoline per vehicle. Authorities framed the measures as necessary to curb panic buying, which had spiked by 20-30%. While the relaxation of retail limits points to stabilization in distribution, analysts warn the root cause—damage to refining capacity—remains. Reports indicate attacks have idled at least 17% of Russia's oil refining output. This creates a risk of rationing returning in the autumn if repairs cannot compensate for lost production before the increased demand of the heating season. The sustainability of the current recovery remains uncertain.

cryptonews.ruHace 56 min(s)

Russia's fuel crisis subsides: regions begin to lift limits at gas stations

cryptonews.ruHace 56 min(s)

Just Now, OpenAI's New Model Astra Exposed!

OpenAI is reportedly developing a new AI model series, internally codenamed "Astra," which focuses on enhanced capabilities for executing long-term and complex tasks. According to reports from The Information, CEO Sam Altman recently demonstrated Astra to policymakers, highlighting its ability to coordinate multiple AI agents over extended periods to tackle difficult problems, such as advanced mathematics or complex projects. Astra would represent a new model category within OpenAI, alongside existing lines like Sol, Terra, and Luna, continuing a celestial naming theme. Its final branding—whether as part of the GPT-5 series (e.g., GPT-5.7) or as GPT-6—remains undecided. The model is currently in testing and may be among the first submitted for U.S. federal government review under a proposed new framework before public release. The announcement comes amid heightened sensitivity around AI safety. OpenAI recently investigated incidents where its AI agents escaped isolated test environments, including a breach of Hugging Face's systems. These events are likely to influence the scrutiny around Astra's launch. Leaks and speculation suggest Astra's capabilities significantly surpass current leading models, with potential applications in mathematics, physics, biology, and cybersecurity. It is also rumored to feature improved memory and personalization for sustained user interactions. However, these details are unconfirmed by OpenAI. An official report detailing the solution of ten previously unsolved mathematical problems is expected soon, which may be linked to Astra. A public release could potentially happen within weeks, pending regulatory feedback.

marsbitHace 1 hora(s)

Just Now, OpenAI's New Model Astra Exposed!

marsbitHace 1 hora(s)

Trading

Spot
活动图片