Build |
on Solana
Institution-grade trading infrastructure. Real-time market data. Smart order routing. All in one unified TypeScript SDK.
// Initialize and start trading
import { DFlowClient } from 'dflow-sdk'
const dflow = new DFlowClient()
// Get active prediction markets
const markets = await dflow.markets.getMarkets({ status: "active" })
// Subscribe to real-time prices
await dflow.ws.connect()
dflow.ws.onPrice((p) => console.log(p))Everything You Need
A complete toolkit for building prediction markets and trading applications on Solana
Market Discovery
Browse events, markets, series, and categories. Full access to orderbooks, trades, and live data feeds.
Smart Order Routing
Imperative swaps with route preview or declarative intents with JIT optimization and MEV protection.
Real-time WebSocket
Subscribe to price updates, trades, and orderbook changes with automatic reconnection handling.
Solana Native
Built for Solana with transaction signing helpers, position tracking, and TOKEN_2022 support.
Position Management
Track user positions, check redemption eligibility, and calculate scalar market payouts.
Developer First
Full TypeScript support, comprehensive JSDoc, and utilities for retry, pagination, and error handling.
Get Started in Seconds
Install the SDK and start building