Skip to content
PredictFlow
Live on Solana · non-custodial · open source

Prediction markets, finally with real order types.

PredictFlow is a conditional trading terminal for Solana prediction markets. Set limit orders, stop-loss, take-profit, and DCA strategies on Kalshi-style event markets — routed through DFlow, signed by your own wallet.

Your keys, your signs ~400ms Solana settlement Program-whitelisted tx signing
predictflow · terminal
Will BTC close above $120k?
62¢ +3.1%
Order type
MARKET LIMIT STOP TAKE DCA
Trigger≥ 65¢
Amount50.00 USDC
Poll5s
Signing pipeline
  • DFlow /quote
  • Decode payload
  • Program whitelist
  • RPC simulate
  • wallet.sign()

What it is

A trading terminal that actually treats prediction markets like markets.

Most prediction-market venues ship only market orders. PredictFlow layers on the order types professional traders rely on — entirely client-side, entirely non-custodial — and routes fills through DFlow so you interact with real on-chain liquidity.

Instant market orders

USDC → YES / NO in one signed transaction

Quote and route through DFlow, decode the payload against a strict program whitelist, simulate on a Solana RPC, and sign — all in under three seconds.

Fails closed on any safety check

Limit orders

Fire when the market crosses your threshold

Set a price target on either side of YES or NO. A client-side monitor polls the live feed every 5 seconds and triggers your buy when the threshold is crossed.

Stop-loss

Automated downside protection on open positions

Once you hold a YES or NO position on a market, the stop-loss tab unlocks. Set a floor price and PredictFlow closes out automatically if the market moves against you.

Take-profit

Lock in gains without watching the tape

Twin of stop-loss — set a ceiling and let the terminal exit when the market prints it. Ideal for binary outcomes that resolve sharply.

DCA — recurring buys

Dollar-cost-average into conviction plays

Split a budget across N purchases at a fixed frequency. Every tick runs through the same quote/decode/simulate/sign pipeline as a manual trade.

Transaction safety

Four defenses before any signing prompt

Payload size check → @solana/web3.js decode → program-whitelist assertion → RPC preflight. A compromised or malformed DFlow response never reaches your wallet.

Fails closed on every boundary
5
Order types — market, limit, stop-loss, take-profit, DCA
~400ms
Solana settlement, sub-cent fees
Safety gates before any wallet prompt
0
Protocol fees — you pay network + DFlow spread only

How it works

Your wallet, your rules. Every trade.

PredictFlow runs entirely in your browser. There is no backend server relaying trades, no custody of funds, no hidden order book. Every signed transaction goes through four independent safety gates before your wallet ever sees a prompt.

  • 1
    Quote

    DFlow responds with a pre-built Solana transaction for the swap.

  • 2
    Decode & whitelist

    Every instruction is parsed and checked against a strict program allowlist.

  • 3
    Simulate

    Local RPC preflight catches any on-chain failure before you see a signing prompt.

  • 4
    Sign & settle

    Your wallet signs. Transaction lands on Solana in ~400ms.

Built for operators

Open source. Self-hostable. No lock-in.

Clone the repo, set your DFlow upstream, run npm run build, and drop the output on Cloudflare Pages, Vercel, Netlify, or any static host. Ships with deploy configs for all four.

Static SPA

React + Vite. No backend to operate. All state lives in the browser — orders, positions, DCA strategies.

Locked-down CSP

Strict connect-src allowlist. Only DFlow, Solana RPC, and wallet icons can make network calls.

Edge-ready

Cloudflare Pages Functions proxy DFlow from the edge. Sub-100ms cold start globally.

Ready to trade prediction markets like a pro?

Connect a Solana wallet, pick a market, and place your first conditional order in under a minute.