Skip to content

dYdX Integration Documentation

This documentation is crafted specifically for developers who want to build trading applications, bots, analytics tools, or integrate dYdX into their own platforms.

You'll find everything you need—from REST & WebSocket API references to integration guides. Whether you're creating a high-frequency trading bot or building a DeFi dashboard, this doc will help you get up and running quickly and securely.

Pick a scenario

Depending on your use case, you can quickly jump to the sections that will help you start integrating right away.

Build a Trading Bot

Use the libraries to automate trading: fetch market data, place and manage orders.

Quick Start PythonQuick Start TypeScriptQuick Start RustConnecting to dYdXWallet SetupTrading Guide

Stream Real-Time Updates

Receive live market and account data using WebSocket connections.

WebSocket Data FeedsWebSocket API ReferenceWatch OrderbookFull Node Streaming

Integrate into Your App

Display market, order, and position data directly in your application.

Integration GuideIndexer HTTP APIMarket Data GuideAccount Data GuideGet Perpetual Markets

Access Account Data

Use the Indexer API to query account info, balances, and positions. For actions requiring authentication, use private Node API methods.

Indexer Accounts APIPrivate Node APIAccount ManagementAccounts and SubaccountsPermissioned Keys