Agentic Workflows for Crypto Research

insights.glassnodePublicado em 2026-04-01Última atualização em 2026-04-01

Resumo

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.

Perguntas 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.

Leituras Relacionadas

Should You Buy SpaceX Stock at $1.7 Trillion? Here's What the Market Is Worried About

SpaceX is preparing for a massive IPO aiming to raise around $75 billion at a valuation of approximately $1.75 trillion. While its achievements in reusable rockets and the profitable Starlink satellite internet service are clear, the market is concerned about the aggressive valuation. Key issues include: the current $1.75 trillion valuation, which is about 94 times 2025 revenue, seems to price in not just existing businesses but also unproven future ventures like AI infrastructure and orbital data centers. Financially, while Starlink is profitable, the AI division, bolstered by the acquisition of xAI, is incurring massive losses and consuming the majority of capital expenditures. This acquisition also introduced complex related-party financing arrangements and debt onto SpaceX's balance sheet. Furthermore, corporate governance poses a challenge. SpaceX's dual-class share structure ensures founder Elon Musk retains absolute control, limiting ordinary shareholders' influence over high-risk, long-term strategic decisions. The future success of ambitious projects like the Starship rocket—critical for lowering costs and enabling new services—remains a significant variable for the valuation. In summary, the market's apprehension (FUD) centers not on doubting SpaceX's past technological triumphs but on questioning how much premium public investors should pay for a future that combines proven profits with highly speculative and capital-intensive new ventures, all under a governance structure that offers limited shareholder oversight.

marsbitHá 39m

Should You Buy SpaceX Stock at $1.7 Trillion? Here's What the Market Is Worried About

marsbitHá 39m

Breaking the DeFi Cascading Liquidation Curse: Vitalik Proposes a New Solution

Vitalik Buterin has proposed a new DeFi design to eliminate the automatic liquidation mechanism that causes market instability during sharp downturns. The current system, used by protocols like Aave, triggers forced sales when collateral value falls below a threshold, often exacerbating price drops and creating systemic selling pressure. Buterin's alternative model is based on splitting an asset like ETH into two synthetic option-like tokens, P and N, pegged to a price index. Their combined value always equals one ETH. Instead of sudden liquidation, a position's value gradually drifts from its target peg if the market moves. Users must proactively rebalance their holdings to maintain their desired exposure, transferring the management burden from the protocol to the user or automated tools. A key advantage is the reduced reliance on real-time oracles. Pricing decisions are deferred until contract expiry, allowing for more robust, fault-tolerant oracle designs. This removes a clear liquidation threshold that speculators can target for manipulation or MEV extraction. However, significant challenges remain. Frequent rebalancing could incur high slippage and transaction costs, necessitating new liquidity provider models. The design is better suited for hedging instruments than for stablecoins requiring a rigid 1:1 peg. While not an immediate replacement for existing systems, the proposal challenges the foundational assumption that instantaneous forced liquidation is an unavoidable necessity in DeFi, opening the door for fundamentally different risk management architectures.

marsbitHá 43m

Breaking the DeFi Cascading Liquidation Curse: Vitalik Proposes a New Solution

marsbitHá 43m

The End of Single-Factor Cryptography

The article "The End of Single-Factor Crypto" posits a fundamental shift in the cryptocurrency ecosystem. It argues the era where crypto asset valuations were predominantly driven by, and correlated with, Bitcoin's price is ending. The space is bifurcating into two distinct economies: endogenous and exogenous. The endogenous economy represents traditional crypto, where token and project values are directly tied to crypto market prices. The emerging exogenous economy comprises projects and businesses that may utilize blockchain technology or tokens but derive their fundamental value from external, non-crypto factors like consumer demand, subscription revenue, or real-world utility. Examples include AI inference platforms like Venice, fintech lenders using blockchain for efficiency, and stablecoin/payment infrastructure companies acquired by giants like Mastercard and Stripe. This shift means investment analysis must change. For exogenous assets, evaluating traditional business fundamentals—such as revenue streams, unit economics, and competitive moats—becomes more critical than tracking Bitcoin charts. While endogenous assets like Bitcoin remain relevant, the growth of the exogenous category is driven by measurable demand independent of crypto price cycles, paving the way for a new, more diversified market phase. Consequently, crypto is evolving from a single-factor, reflexive asset class into a multifaceted ecosystem with varied drivers and investment theses.

marsbitHá 44m

The End of Single-Factor Cryptography

marsbitHá 44m

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.

链捕手Há 58m

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

链捕手Há 58m

Trading

Spot
Futuros
活动图片