Trade API
Build trading functionality for spot and prediction markets with DFlow’s unified Trade API. Trade tokens with automatic routing across major Solana DEXs, supporting both synchronous (atomic) and asynchronous (multi-transaction) execution modes.Trade Tokens
Get started with the unified Trade API for trading tokens across spot and
prediction markets. Supports both sync and async execution modes.
Declarative Swaps
Swap tokens with less slippage, lower latency, and better pricing. The route
is optimized at execution time for maximum efficiency.
Imperative Swaps
Swap tokens with full control over transaction execution. Review and approve
the exact route before signing.
Prediction Markets
Integrate prediction market functionality into your application. Discover markets, track positions, and redeem outcomes using our comprehensive metadata API and trading tools.Discover Prediction Market Outcome Tokens
Learn how to find and explore on-chain prediction markets using the
Prediction Market Metadata API.
User Positions
Fetch and identify a wallet’s prediction market positions by querying
on-chain token accounts and mapping them to market data.
Redeem Outcome Tokens
Check if outcome tokens are redeemable and request redemption orders through
the Trade API when markets are determined.