
This is DFlow's complete SDK for building trading apps on Solana, covering both spot swaps and prediction markets. You get two main APIs: the Swap API for executing trades (imperative, declarative, or unified Trade API) and the Metadata API for querying prediction market data with WebSocket streaming. The Trade API is cleanest, it handles quotes and transactions in one call and automatically routes between sync and async execution. Useful if you're building wallets, aggregators, or prediction market platforms and need 99.9% token coverage with intelligent routing. Most endpoints need an API key from hello@dflow.net, though basic operations work without one.
$ npx -y skills add sendaifun/skills --skill dflow --agent claude-codeInstalls into .claude/skills of the current project.
The definitive guide for integrating DFlow - a trading protocol that enables traders to exchange value across spot and prediction markets natively on Solana.
DFlow is a comprehensive trading infrastructure that provides:
| Feature | Description |
|---|---|
| Token Coverage | 99.9% with millisecond detection |
| Infrastructure | Globally distributed, high-throughput optimization |
| Execution | Advanced algorithms with JIT routing for best-price execution |
| Markets | Support for both spot and prediction market trading |
| MEV Protection | Enhanced sandwich protection with Jito bundles |
DFlow provides two main API categories:
Sponsors