Skip to content
PredictFlow

Features

Every order type prediction markets should have had from day one.

PredictFlow delivers the trading primitives that venues like Kalshi and Polymarket don't ship natively — without ever taking custody of your funds or asking you to move liquidity off-chain.

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.

  • Every fill is idempotency-keyed to prevent duplicate signing on component remount.
  • Submission lock survives React re-renders, so a double-tap cannot double-send.
  • If simulation fails on the RPC, the signing prompt never opens.
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.

  • Live price feed via DFlow WebSocket, with REST fallback and a circuit breaker.
  • Each triggered fill runs through the same validate → decode → preflight → sign pipeline as a market order.
  • Persisted to localStorage so a refresh doesn't lose pending orders.

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.

  • Tab only appears when a filled position exists — no stray sell buttons on untouched markets.
  • Same signing pipeline and simulation gate as a manual trade.
  • Persistent banner reminds you conditional orders run in the browser; close the tab and they pause.

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.

  • Trigger direction is inferred from position side (YES vs NO), so the math is always right.
  • Combine with stop-loss for a symmetric bracket around any position.
  • Every conditional order records its entry price, trigger price, and execution details.

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.

  • Execution history is persisted per strategy — price, amount, and fill timestamp.
  • Pause, resume, or cancel mid-run without losing earlier fills.
  • The DCA loop and conditional-order loop co-exist without stepping on each other (shared positions lock).

Non-custodial wallet

Phantom, Solflare, Backpack — your keys, your signs

PredictFlow never sees your private key. Wallets are browser-injected (no wallet-adapter dependency), and every transaction is decoded and preflighted before the signing prompt appears.

  • Mobile deep-links for Phantom and Solflare via universal links when no extension is detected.
  • Reconnect-on-reload using a pubkey mirror in localStorage, never the key material.
  • Wallet pubkeys are SHA-256-hashed before they ever appear in an analytics event.

Portfolio

Wallet-scanned positions with mark-to-market P&L

Scans your wallet directly on Solana RPC, matches against filled positions in localStorage, and marks them to the latest DFlow price for live P&L.

  • Works against mainnet or a paid RPC provider — Helius, Triton, QuickNode.
  • Settlement progress is visualized per position; resolved markets show final payouts.
  • No indexing required — the entire portfolio is derived from on-chain state + local order history.

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.

  • Whitelist covers System, SPL Token, ATA, ComputeBudget, Memo, and the DFlow router program — nothing else can execute.
  • Preflight simulates against your configured RPC and fails closed on RPC unavailability.
  • Content-Security-Policy restricts connect-src to DFlow, Solana, and wallet icon origins only.
Fails closed on every boundary

Feature matrix at a glance

Compared against native prediction-market UIs.

Capability PredictFlow Typical PM UI
Market orders
Limit orders Partial
Stop-loss
Take-profit
DCA strategies
Non-custodial wallet Partial
Program-whitelisted tx signing
RPC preflight simulation
Self-hostable
Offline demo mode

Every feature, zero trust assumed.

All of it works against real DFlow liquidity on Solana mainnet. No backend to trust — the code runs in your browser.