Prediction Markets API · Now Live on Solana

Intelligent Trade
Execution.

DFlow's Trading API powers tens of billions in transacted value on Solana. Swap tokens, trade prediction markets, and execute with JIT routing — built for traders, applications, and financial institutions.

$10B+
Volume Routed
99.9%
Token Coverage
100%
Kalshi Markets
<400ms
Avg Execution

Three Powerful Trading Products

From token swaps to prediction markets — DFlow provides the infrastructure for every type of trade execution on Solana.

Core Product

Swap API

Swap any pair of Solana tokens through one aggregated liquidity API. Imperative and declarative swap modes with intelligent routing across every major exchange and liquidity venue.

99.9% Token Coverage
  • Aggregated liquidity across all major Solana exchanges
  • Imperative swaps for full route control
  • Declarative swaps with deferred optimization
  • Sub-second execution with minimal fees
Solana Aggregator JIT
Start Swapping →
🔀
Advanced

JIT Routing Engine

DFlow's proprietary Just-In-Time routing finds the optimal execution path at the exact moment of trade. Routes across exchanges, liquidity pools, and proprietary liquidity providers simultaneously.

<400ms Execution Time
  • Real-time route optimization at signature time
  • MEV protection built into the execution layer
  • Multi-venue liquidity aggregation
  • Billions in monthly volume routed
MEV Shield Multi-Venue Real-Time
Read Docs →
📊
New

Prediction Markets

Trade tokenized Kalshi event contracts on Solana. The first and only API to offer real tokenization of CFTC-regulated prediction markets with 100% coverage and flexible settlement.

100% Kalshi Market Coverage
  • Real SPL tokens — true on-chain ownership
  • Sports, politics, economics, and more
  • CFTC-regulated via Kalshi partnership
  • Flexible settlement and redemption
Kalshi SPL Tokens CFTC
Explore Markets →

Start Trading in Seconds

Whether you're swapping tokens or trading prediction markets, DFlow makes execution simple, fast, and transparent.

01

Connect & Configure

Connect your Solana wallet or integrate DFlow's API into your application. Choose between imperative swaps for full control or declarative swaps for hands-off optimization. No KYC, no minimums.

Phantom · Solflare · Any SPL Wallet
02

Execute Trades

Submit your trade intent. DFlow's JIT routing engine finds the optimal path across all liquidity venues in real-time, executes with MEV protection, and settles on Solana in sub-second time.

JIT Routing · MEV Protection · Instant
03

Build & Scale

For developers: integrate swap and prediction market functionality into your application with a few API calls. DFlow handles routing, execution, and settlement. Scale from prototype to production seamlessly.

REST API · WebSocket · SDK

Built for Performance

DFlow combines institutional-grade execution infrastructure with the speed and composability of Solana.

🛡️

MEV Protection

Every trade is shielded from sandwich attacks, front-running, and value extraction. DFlow's architecture ensures trade value stays with the trader, not extracted by third parties.

100% Trades protected

Solana Speed

Built natively on Solana for sub-second finality and near-zero transaction costs. Move between markets, execute trades, and settle without friction.

<$0.01 Average transaction fee
🔗

Full Composability

DFlow tokens and positions are native SPL tokens, fully composable with the entire Solana ecosystem — exchanges, lending protocols, wallets, and any application.

SPL Native token standard
🏛️

Regulated Markets

Prediction markets are powered by Kalshi, the first CFTC-regulated exchange for event contracts. Trade with the confidence of regulatory oversight and transparent settlement.

CFTC Regulated partner
🤖

AI Agent Ready

DFlow provides Agent CLI, MCP server, and Claude Code skills for connecting AI agents to the protocol. Automate trading strategies with programmatic execution.

MCP Agent integrations
📡

Real-Time Data

WebSocket streaming for live market updates, order book changes, and trade execution events. Build responsive trading interfaces with millisecond-level data feeds.

WSS WebSocket streaming
$10B+
Volume Routed
99.9%
Token Coverage
3
Core Products
$2M
Kalshi Grants
1
Network · Solana

Trust the Protocol

DFlow's security architecture combines audited smart contracts, open-source code, and transparent on-chain infrastructure.

🔒 Smart Contract Audits

OtterSec
Smart contract security audit
Passed
Independent Review
On-chain contract verification
Passed
Continuous Monitoring
Ongoing security reviews
Active

🛡️ Non-Custodial Architecture

DFlow's smart contracts are fully non-custodial. Your tokens remain under your control at every step of the trade lifecycle. No admin keys, no upgrade proxies — the protocol executes exactly as coded.


📊 Open-Source & Transparent

DFlow's contract code is publicly verifiable on GitHub. Execution routes, fill prices, and settlement data are all recorded on-chain — fully auditable by anyone, at any time.


🐛 Bug Bounty Program

DFlow incentivizes responsible disclosure of smart contract vulnerabilities with an active bug bounty program. Security researchers are rewarded for keeping the protocol safe.


Frequently Asked Questions

Everything you need to know about DFlow, the Swap API, JIT routing, prediction markets, and intelligent trade execution.

DFlow is a trading infrastructure protocol built natively on Solana. It provides a unified Trading API that powers token swaps, prediction markets, and intelligent trade execution for traders, applications, and financial institutions. The protocol has powered tens of billions in transacted value.
dflow-trade.com is an informational portal for the DFlow Protocol. It provides an overview of DFlow's products, features, and documentation for traders and developers looking to access intelligent trade execution on Solana.
DFlow was built by the DFlow Protocol team, a group of engineers and researchers focused on solving trade execution problems on Solana. The team has deep expertise in market microstructure, distributed systems, and on-chain infrastructure.
DFlow charges no platform fees for token swaps. You only pay standard Solana network fees (typically less than $0.01 per transaction). API access for developers may require an API key — contact the DFlow team for credentials.
The Swap API lets you swap any pair of Solana tokens through one aggregated liquidity endpoint. It routes trades across all major exchanges and liquidity venues on Solana to find the best available price with 99.9% token coverage.
Imperative Swaps give you full control over route selection at signature time — you see and approve the exact execution path. Declarative Swaps are intent-based: you express what you want to trade, and DFlow's engine handles route optimization after submission, often achieving better prices through deferred execution.
DFlow supports 99.9% of all SPL tokens on Solana. This includes all major tokens as well as newly launched tokens that have available liquidity on any of the integrated exchanges and liquidity pools across the Solana ecosystem.
DFlow aggregates liquidity across all Solana venues, including Jupiter, Raydium, and others. Its JIT routing engine optimizes execution at the exact moment of trade, and its MEV protection layer shields traders from value extraction. DFlow also offers prediction markets and AI agent integrations that other platforms don't provide.
JIT (Just-In-Time) Routing is DFlow's proprietary execution engine. Instead of pre-computing routes, it finds the optimal path across all liquidity sources at the exact moment of execution. This ensures you get the best available price with minimal slippage, even in volatile market conditions.
MEV (Maximal Extractable Value) refers to profits extracted from traders through techniques like front-running and sandwich attacks. DFlow's MEV protection is built into the execution layer, ensuring that the value of your trade stays with you rather than being captured by third-party bots.
DFlow Prediction Markets allow you to trade tokenized event contracts from Kalshi directly on Solana. You can buy Yes or No outcome tokens for events across sports, politics, economics, and more. Positions are real SPL tokens with true on-chain ownership.
Kalshi is the first federally regulated exchange in the United States for trading on event outcomes, approved by the CFTC (Commodity Futures Trading Commission) in 2020. DFlow tokenizes Kalshi's event contracts as SPL tokens on Solana, making them composable with the broader ecosystem.
When a prediction market event resolves, winning outcome tokens can be redeemed for USDC directly through DFlow's API. Settlement is on-chain and transparent — you simply call the redeem endpoint with your winning tokens.
CLPs are a Solana-native framework built by DFlow that bridges off-chain liquidity with on-chain users. They allow traders to write trade intents on-chain and have orders filled asynchronously by liquidity providers, enabling on-demand minting of tokenized positions at tight spreads.
DFlow provides a comprehensive REST API, WebSocket streaming, and TypeScript SDK. Integration requires just a few API calls. Visit pond.dflow.net for full documentation, code samples, and integration guides covering swaps, prediction markets, and wallet connections.
Yes. DFlow provides Agent CLI, an MCP server, and Claude Code skills for connecting AI agents to the protocol. This enables automated trading strategies, programmatic market making, and AI-powered execution — all with the same performance guarantees as manual trading.
DFlow works with any Solana-compatible wallet, including Phantom, Solflare, Backpack, and others. For programmatic access, you can use any Solana keypair with the API directly.
The Swap Orchestrator is DFlow's on-chain smart contract (Program ID: DF1ow3DqMj3HvTj8i8J9yM2hE9hCrLLXpdbaKZu4ZPnz) that manages declarative swap execution on Solana. It coordinates trade intents, route filling, and settlement in a non-custodial manner.
Yes. DFlow's smart contracts have been audited by OtterSec and undergo continuous security monitoring. The protocol also maintains a bug bounty program for responsible disclosure of any vulnerabilities.
Yes. DFlow is fully non-custodial. Your tokens and positions are controlled exclusively by your private keys throughout the entire trade lifecycle. No team member or admin can access your funds.
DFlow maintains several open-source repositories on GitHub, including the Solana Agent Kit, ClearPools, and developer tools. Smart contract code is publicly verifiable. Visit github.com/DFlowProtocol for the full codebase.
DFlow serves three primary audiences: individual traders who want best execution on token swaps, application developers who integrate swap and prediction market functionality, and financial institutions that need institutional-grade execution infrastructure on Solana.
Absolutely. DFlow's API is designed for programmatic trading. You can use the REST API for order execution, WebSocket for real-time data, and the Solana Agent Kit for AI-powered automation. Rate limits and API keys apply — contact the team for production credentials.
DFlow is currently built natively on the Solana blockchain, leveraging its sub-second finality and low transaction costs for optimal trade execution. All DFlow products — swaps, prediction markets, and routing — operate on Solana mainnet.
Kalshi has committed $2M in grants to fund new applications built on top of DFlow's Prediction Markets API. This program is designed to accelerate the ecosystem of prediction market tools, interfaces, and integrations on Solana.
Full documentation is available at pond.dflow.net. It covers the Swap API, Prediction Markets API, Trading API references, WebSocket streaming, wallet integration guides, and troubleshooting. The documentation includes code examples in TypeScript.
API keys can be obtained by contacting the DFlow team at api@dflow.net. Keys are provided via the x-api-key header and are recommended for production applications to ensure rate limit management and access to all endpoints.
DFlow is an infrastructure protocol focused on trade execution. For the latest information on any token launches or governance mechanisms, visit dflow.net and follow @DFlowProtocol on X for official announcements.
DFlow combines JIT routing, MEV protection, declarative swaps, prediction market tokenization, and AI agent tooling into a single protocol. It's not just an aggregator — it's a full trading infrastructure layer that handles everything from price discovery to settlement.

Intelligent Execution.
Solana Speed.

The Trading API powering tens of billions in transacted value — for traders, applications, and financial institutions. No minimums. No platform fees. No friction.