Documentation Index
Fetch the complete documentation index at: https://pond.dflow.net/llms.txt
Use this file to discover all available pages before exploring further.
- General
- Spot Trading
- Prediction Markets
- Proof
Which wallets are supported?
Which wallets are supported?
What fees apply to a trade?
What fees apply to a trade?
Do users need to KYC to trade?
Do users need to KYC to trade?
What's the difference between sync and async trades?
What's the difference between sync and async trades?
Does DFlow custody user funds?
Does DFlow custody user funds?
Does DFlow support gas sponsorship?
Does DFlow support gas sponsorship?
sponsor parameter on /order to have a sponsor wallet cover the transaction fee.Should I set platformFeeBps if I'm not collecting a fee?
Should I set platformFeeBps if I'm not collecting a fee?
platformFeeBps into slippage tolerance, so declaring a fee you don’t collect wastes slippage budget and gives users worse pricing. See Platform Fees.Can I call /order directly from the browser?
Can I call /order directly from the browser?
/order through your backend; most builders use an edge function (Cloudflare Workers, Vercel Edge Functions) to keep added latency low.Does DFlow take positive slippage?
Does DFlow take positive slippage?
How do I trade with native SOL?
How do I trade with native SOL?
So11111111111111111111111111111111111111112) as inputMint or outputMint and set wrapAndUnwrapSol=true. DFlow auto-wraps and unwraps SOL.In POST /swap, what should destinationTokenAccount.address be for native SOL output?
In POST /swap, what should destinationTokenAccount.address be for native SOL output?
What's the difference between price impact and slippage?
What's the difference between price impact and slippage?
How do I set a priority fee on a trade?
How do I set a priority fee on a trade?
prioritizationFeeLamports on /order as a lamport amount or one of auto, medium, high, veryHigh, disabled. See Priority Fees for the two fee modes.How does DFlow handle multiple token accounts for the same mint?
How does DFlow handle multiple token accounts for the same mint?
destinationTokenAccount on /order; output lands in that account even if it isn’t the ATA.What's the maximum price impact allowed on a trade?
What's the maximum price impact allowed on a trade?
price_impact_too_high error. Override with priceImpactTolerancePct.Why is my trade failing with "exceeded CUs meter at BPF instruction"?
Why is my trade failing with "exceeded CUs meter at BPF instruction"?
dynamicComputeUnitLimit=true on /order to have the API size the limit automatically.Does DFlow support Pump.fun tokens?
Does DFlow support Pump.fun tokens?
What is JIT routing?
What is JIT routing?
Why do intermediate token accounts and residual dust sometimes remain after a swap?
Why do intermediate token accounts and residual dust sometimes remain after a swap?
- Full consumption: If subsequent legs consume the intermediate amount, the accounts are closed.
- Partial consumption: If a residual remains (venue rounding, leg constraints), the accounts stay open with small dust.
Does DFlow offer an intent-based swap?
Does DFlow offer an intent-based swap?
/order (imperative): the app signs a fully constructed transaction and submits through its own RPC. The intent flow (GET /intent + POST /submit-intent) gives stronger sandwich resistance on standard SPL pairs: the user signs an open order without a fixed route, and DFlow submits the open order and fill atomically as a Jito bundle. Token-2022 mints (including Kalshi outcome tokens) aren’t supported on /intent.Will DFlow support limit orders?
Will DFlow support limit orders?
Do I need an API key for prediction markets?
Do I need an API key for prediction markets?
What's the minimum USDC amount per order?
What's the minimum USDC amount per order?
Can users buy a fractional contract?
Can users buy a fractional contract?
Does the input mint affect trade latency?
Does the input mint affect trade latency?
What are outcome tokens?
What are outcome tokens?
Are markets settled in USDC or CASH?
Are markets settled in USDC or CASH?
How does the market lifecycle work?
How does the market lifecycle work?
Can users place prediction market orders at any time?
Can users place prediction market orders at any time?
What happens after a market resolves?
What happens after a market resolves?
What is a scalar outcome?
What is a scalar outcome?
What happens when an event is canceled before resolution?
What happens when an event is canceled before resolution?
How do I show order quotes to unverified users?
How do I show order quotes to unverified users?
userPublicKey from the /order request. The API returns the quote without requiring Proof verification.Why does my first trade in a market trigger an account-creation cost?
Why does my first trade in a market trigger an account-creation cost?
/order initializes it on demand (creating the YES/NO outcome tokens) before the swap, which adds a small onchain account-creation fee. See Buy Outcome Tokens for the full flow.How much does it cost to initialize a not-yet-tokenized market?
How much does it cost to initialize a not-yet-tokenized market?
Who is responsible for market pre-initialization?
Who is responsible for market pre-initialization?
What's the difference between sponsor and predictionMarketInitPayer?
What's the difference between sponsor and predictionMarketInitPayer?
sponsor: covers both the user’s gas fees and market initialization. Use this to fully abstract onchain costs from the user.predictionMarketInitPayer: covers only market initialization. The user still pays their own gas fees.
Are platform fees supported for prediction markets?
Are platform fees supported for prediction markets?
platformFeeScale. See Add Platform Fees for the recipe.How are prediction market fees structured?
How are prediction market fees structured?
How are outcome tokens minted and where does liquidity come from?
How are outcome tokens minted and where does liquidity come from?
Can I look up a specific market by ticker?
Can I look up a specific market by ticker?
How can I estimate the fill price before placing an order?
How can I estimate the fill price before placing an order?
Why are some active markets missing from my API results?
Why are some active markets missing from my API results?
isInitialized=true on Events, Markets, or Series, the response only includes markets already tokenized through a DFlow trade. Markets live on Kalshi but never traded through DFlow are filtered out (common with short-duration markets like KXBTC15M, which start a new market every interval). Remove isInitialized to see all active markets. See Market Initialization Behavior.How do I fetch market images?
How do I fetch market images?
Does DFlow support all Kalshi markets?
Does DFlow support all Kalshi markets?
When should I use forecast history vs candlesticks?
When should I use forecast history vs candlesticks?
Why am I getting a 400 error when fetching candlesticks?
Why am I getting a 400 error when fetching candlesticks?
startTs, endTs, and periodInterval would produce more, the request fails. Narrow the range or increase the interval.Do DFlow WebSockets show offchain Kalshi trades too?
Do DFlow WebSockets show offchain Kalshi trades too?
Do my DFlow trades appear on Kalshi's trade WebSocket?
Do my DFlow trades appear on Kalshi's trade WebSocket?
Is there a WebSocket channel for open interest?
Is there a WebSocket channel for open interest?
When does USDC get pulled when using /submit-intent?
When does USDC get pulled when using /submit-intent?
/submit-intent builds the order and returns a transaction; USDC moves at execution, not at submit-intent time.What are Milestones?
What are Milestones?
related_event_tickers is a superset of primary_event_tickers. Primary event tickers are generally limited to moneyline, spread, and total markets for a sporting event. The relationship can be many-to-many: a single event ticker can appear in multiple Milestones.Who provides KYC for Proof?
Who provides KYC for Proof?
Is there a fee to use Proof?
Is there a fee to use Proof?
Does Proof KYC work with embedded wallet providers like Privy?
Does Proof KYC work with embedded wallet providers like Privy?
https://dflow.net/proof to complete KYC, with a redirect URL to send them back to your app after verification.If I use Proof to KYC Kalshi users, do I still need to geoblock?
If I use Proof to KYC Kalshi users, do I still need to geoblock?
Is Proof verification required to buy Kalshi outcome tokens on dev endpoints?
Is Proof verification required to buy Kalshi outcome tokens on dev endpoints?
How do I show outcome token quotes to unverified users?
How do I show outcome token quotes to unverified users?
userPublicKey from the /order request. The API returns the quote without requiring Proof verification.Why isn't my Proof redirect firing after verification?
Why isn't my Proof redirect firing after verification?
https:, moz-extension://, or chrome-extension: URLs. Custom schemes (e.g. myapp://callback) silently fail. Native mobile apps should use universal links (iOS) or app links (Android). See redirect_uri parameter docs.