Velocity for Developers
Velocity Protocol is an open-sourced , decentralised exchange built on the Solana blockchain, enabling transparent and non-custodial trading on cryptocurrencies. Velocity is a fork of Drift Protocol v2 with a new program deployment, a reduced feature set, and its own SDK — see the migration guide in the monorepo for the full list of differences if you’re coming from Drift.
Understand the key concepts of Velocity Protocol ↗SDK
The Velocity SDK is 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 | Package | Source |
|---|---|---|
TypeScript (@velocity-exchange/sdk) | npm | velocity-v1/packages/sdk |
Velocity does not currently ship a Python SDK. A Rust client (velocity-rs) exists in the velocity-v1 monorepo but is source-only and not published to crates.io.
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 SDK by providing convenient HTTP endpoints over indexed Velocity data.
Interact with and understand the Velocity 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 Velocity |
| 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!