• LIQUIDITY
  • TRENDS
  • VOLATILITY
  • STRATEGY

How to analyze market data and orderbooks with your AI

Connect dYdX to your AI client to feed it live market depth and historical price action. Once connected, your agent handles the data heavy lifting.

Ask AI about this page

Short answer

How can I use my AI to analyze dYdX market data?

Your AI uses the dYdX MCP to pull live L2 orderbooks, 24h statistics, and historical candlestick data. You get immediate access to liquidity gaps and price trends through these specific data points.

The outcomes

What your analysis produces

The data your AI pulls translates into these specific insights.

LIQUIDITY

Orderbook depth analysis

The AI reads the L2 orderbook to find where large buy or sell walls are sitting. You get a clear view of market thickness.

TRENDS

Candlestick pattern recognition

Your agent pulls historical price data to spot trends or specific candle formations. It identifies patterns without you staring at charts.

VOLATILITY

24h stats monitoring

The AI checks daily volume and price changes to gauge current market activity. It flags sudden shifts in volatility.

STRATEGY

Human-led execution

The AI provides the data and the math, but you decide when to enter or exit a position. It handles the reading; you handle the risk.

The workflow

What your AI does when the data arrives.

The AI moves from raw data retrieval to structured analysis in a few steps.

  1. Fetch live depth

    The AI grabs the current state of the orderbook to see immediate supply and demand.

    v4_get_orderbook
  2. Check daily activity

    It pulls 24h statistics to understand the broader context of the current price action.

    v4_get_stats
  3. Pull price history

    The agent retrieves historical candlestick data to look for technical setups.

    v4_get_candles
  4. Synthesize insights

    The AI combines the orderbook depth and price history to answer your specific trading questions.

    v3_get_orderbook

Try it

Copy these to start.

Use these prompts to begin your analysis.

Starting points

These are opening lines. Swap out the specific ticker or timeframe for the asset you are watching.

dYdX Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_epUdcvnbX2GX09BMiiE2uKxPkLiXB8RbCsjjEMYJ/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — dYdX capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "dydx-decentralized-perpetual-exchange-api-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_epUdcvnbX2GX09BMiiE2uKxPkLiXB8RbCsjjEMYJ/mcp"
    }
  }
}
Copy into chat04
  • Show me the current dYdX orderbook for BTC-USD and tell me where the largest liquidity walls are.

  • Pull the last 24 hours of candlestick data for ETH-USD and identify any bullish patterns.

  • Compare the current 24h volume stats for SOL-USD against the recent price movement.

  • Analyze the L2 orderbook for LINK-USD and tell me if the spread is widening or narrowing.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect dYdX once, then ask.

One click connects this MCP to your client. Your credentials stay encrypted, and you can start querying dYdX data immediately.

Connect dYdX to your AI

FAQ

How this task behaves

  • 01

    Can my AI place trades on dYdX?

    No. This MCP is for reading market data like orderbooks and candles. It cannot execute trades or move funds.

  • 02

    Does the AI update the orderbook for me?

    No. The AI only reads the existing orderbook data. It has no capability to modify or add orders to the exchange.

  • 03

    How fresh is the market data?

    The AI pulls real-time data using the provided tools, so you are looking at the current state of the exchange.

  • 04

    Can I get historical data for any timeframe?

    Yes, the AI can pull historical candlestick data to help you perform technical analysis on various timeframes.

  • 05

    Will the AI notify me of price changes?

    The AI only responds when you ask it a question. It does not run in the background to send proactive alerts.

  • More questions about dYdX? See everything the dYdX Connector can do

Connect dYdX to Claude, Cursor, ChatGPT & more