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.
| SDK | GitHub | Autogenerated 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 |
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.
| Section | Desciption |
|---|---|
| Market Makers | Liquidity provision strategies, JIT flow, and production bot patterns |
| Vault Managers | Building and operating managed vault strategies on Drift |
| Trading Automation | Automated execution workflows, keeper bots, and ops troubleshooting |
| Ecosystem Builders | Reading data, integrating orderbook streams, and sending protocol actions |
For any help or setup questions, feel free to ask in #research-and-dev-chat on Discord!