TypeScript SDK for Solana

Build |

on Solana

Institution-grade trading infrastructure. Real-time market data. Smart order routing. All in one unified TypeScript SDK.

Markets
BTC > $100K
$0.72 3.0%
ETH > $4K
$0.45 2.0%
SOL > $200
$0.61 5.0%
FED RATE CUT
$0.83 1.0%
quickstart.ts
Live
// 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))
Core Features

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.

Available

Smart Order Routing

Imperative swaps with route preview or declarative intents with JIT optimization and MEV protection.

Available

Real-time WebSocket

Subscribe to price updates, trades, and orderbook changes with automatic reconnection handling.

Available

Solana Native

Built for Solana with transaction signing helpers, position tracking, and TOKEN_2022 support.

Available

Position Management

Track user positions, check redemption eligibility, and calculate scalar market payouts.

Available

Developer First

Full TypeScript support, comprehensive JSDoc, and utilities for retry, pagination, and error handling.

Available

Get Started in Seconds

Install the SDK and start building

$pnpm add dflow-sdk