Skip to Content
DevelopersVelocity for Developers

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.

SDKPackageSource
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.

Setup and start trading with the Velocity 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 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.

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

This documentation site 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