Skip to Content
DevelopersDrift for Developers

Drift for Developers

Drift Protocol is an open-sourced , decentralised exchange built on the Solana blockchain, enabling transparent and non-custodial trading on cryptocurrencies.

Understand the key concepts of the Drift Protocol ↗

SDKs

Drift SDKs are used to build trading apps and bots: placing/canceling orders, managing accounts and positions, subscribing to onchain updates, and integrating protocol logic directly in your backend or client app.

SDKGitHubAutogenerated Docs
TypeScript (@drift-labs/sdk)drift-labs/protocol-v2/sdk TypeScript SDK docs 
Python (driftpy)drift-labs/driftpy driftpy docs 
Rust (drift-rs)drift-labs/drift-rs docs.rs drift-rs 
Setup and start trading with the Drift SDK ↗

Data API

The Data API is used for read-heavy workloads such as analytics, dashboards, historical queries, and offchain data access without running your own indexer. It complements the SDKs by providing convenient HTTP endpoints over indexed Drift data.

Interact with and understand the Drift Data API ↗

Guides

These guides are organized by builder workflow so you can jump directly to the implementation path you need.

SectionDesciption
Market MakersLiquidity provision strategies, JIT flow, and production bot patterns
Vault ManagersBuilding and operating managed vault strategies on Drift
Trading AutomationAutomated execution workflows, keeper bots, and ops troubleshooting
Ecosystem BuildersReading data, integrating orderbook streams, and sending protocol actions

The drift documentation page is open-sourced. Feel free to submit questions/comments in Issues  or suggest changes as a PR .

For any help or setup questions, feel free to ask in #research-and-dev-chat  on Discord!

Last updated on