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.

Пов'язані матеріали

9.42 Million Retail Investors Compete for Changxin Technology, Who Got Allotted?

Evergreen Technology's IPO subscription results are now available. On July 20, the domestic memory chip giant announced the offline preliminary allotment results and online lottery results for its IPO. A total of approximately 9.43 million retail investors participated in the online subscription, generating 770,000 winning lots with a final winning rate of about 0.4714%, setting a record for new shares on the STAR Market. After triggering a clawback mechanism from institutional to retail investors, the online retail allocation was significantly increased to 3.851 billion shares. Simultaneously, 285 institutional investors participated in the offline subscription, ultimately receiving 2.173 billion shares at an allotment rate of approximately 0.1756%. Leading insurers and public funds were among the major recipients. Notably, Liang Wenfeng, founder of the major AI model company DeepSeek, through his quantitative investment firms Ningbo Huanfang Quantitative and Zhejiang Jiuzhang Asset, secured the largest share among private funds, with a total allotment worth approximately 175 million yuan. Estimates suggest potential profits could reach 730 million yuan if Evergreen Technology's market capitalization reaches 3 trillion yuan post-listing. The company is expected to list on July 27 and could become the highest-valued tech stock on the A-share market, with various brokerages providing valuations ranging from 1 trillion to over 4 trillion yuan. However, recent significant corrections in global tech stocks may impact its post-listing performance. (Character count: 1,196)

marsbit43 хв тому

9.42 Million Retail Investors Compete for Changxin Technology, Who Got Allotted?

marsbit43 хв тому

3 Million-Follower Goddess Fully AI-Synthesized, Fake Orphanage, Cross-Border ‘Fake Charity’ Collapses Overnight

An Australian influencer named Lily Jay, with nearly 3 million Instagram followers, is at the centre of a major AI-fueled charity scam. Her 'Lily Jay Foundation' claimed to build orphanages, mosques, and deliver aid in places like Uganda and Gaza, using emotionally powerful videos of herself with children. However, an investigation by ABC NEWS Verify revealed these scenes—including a key video announcing an orphanage's opening—were entirely AI-generated, complete with telltale flaws like garbled text on clothing. The foundation's 'humanitarian award' was also faked using AI images. The foundation admitted in small print on its website that it is not a registered charity, avoiding financial transparency laws. While based in Kosovo, its operations and the influencer's lavish personal lifestyle raised further red flags. Following media inquiries, the foundation selectively hid donation buttons and removed fraudulent content for Australian visitors, but kept them active internationally. Experts warn this case is a textbook example of how AI can be weaponized to exploit public trust and generosity, creating believable but entirely fabricated narratives of aid. The incident highlights the growing danger of deepfakes in eroding trust within the charitable sector, urging donors to critically verify causes before giving.

marsbit1 год тому

3 Million-Follower Goddess Fully AI-Synthesized, Fake Orphanage, Cross-Border ‘Fake Charity’ Collapses Overnight

marsbit1 год тому

L2 'Recalibration': When L1 Becomes Its Own Rollup, What Is Ethereum's Endgame?

The article discusses the evolving relationship between Ethereum's Layer 1 (L1) and Layer 2 (L2) solutions, moving beyond the initial "L2 for scaling" model. As Ethereum L1 itself scales (increasing Gas Limit, statelessness, zkEVM), the unique value proposition of L2s shifts from merely providing cheap execution to offering differentiated features like application-specific optimization, privacy, and flexible governance. The piece explores three key themes: 1. **L2's New Role:** L2s are transitioning from a pure scaling technology to a spectrum of execution environments with varying degrees of security inheritance from Ethereum L1. 2. **Interoperability as State Trust:** Solving L2 fragmentation is less about cross-chain bridges and more about enabling faster, trust-minimized state verification between environments. This involves initiatives like faster L1 finality, intent-based architectures (Open Intents Framework), and native account abstraction. 3. **Blurring Layers:** With the potential integration of zk-proofs into L1 validation (making L1 akin to its own "Rollup") and the concept of "Native Rollups," the rigid boundary between L1 and L2 may fade. The future could be a unified system with multiple execution domains (for DeFi, gaming, privacy, etc.) sharing a common security, settlement, and state framework. In conclusion, Ethereum's goal is not to abandon L2s or re-centralize everything on L1, but to re-integrate the fragmented user experience—liquidity, accounts, applications—while preserving the scaling benefits of a multi-environment ecosystem. The endgame is a cohesive "one chain" feeling for users, powered by diverse but securely interconnected execution layers.

marsbit1 год тому

L2 'Recalibration': When L1 Becomes Its Own Rollup, What Is Ethereum's Endgame?

marsbit1 год тому

Торгівля

Спот
活动图片