Drop-in React widgets for prediction-market trading. Let users trade inside your app while PMXT handles routing, escrow, signing, and builder-fee attribution.
- Search and matched-market discovery across PMXT venues
- Live charts and order books
- Non-custodial buy/sell tickets
- Sandbox mode for demos before real funds
| Matched markets | Live chart |
|---|---|
| Matched Markets widget | Price Chart widget |
| Order ticket |
|---|
| Order Ticket widget |
npm install pmxt-widgets
Or copy a widget into your app:
npx shadcn@latest add https://widgets.pmxt.dev/r/order-ticket.json
import { MarketSearch, PmxtProvider } from 'pmxt-widgets'; export default function App() { return ( <PmxtProvider config={{ apiUrl: '/api/pmxt', tradeUrl: '/api/trade' }}> <MarketSearch venues={['polymarket', 'opinion']} /> </PmxtProvider> ); }
Clicking an outcome opens a tradable card. Your user signs; PMXT routes the trade; your builder account gets attributed.
- Sign in at https://pmxt.dev.
- Enable builder mode in the dashboard.
- Create an API key at https://www.pmxt.dev/dashboard/api-keys.
- Put the key on your server.
- Point
apiUrlandtradeUrlat proxy routes that add:
Authorization: Bearer YOUR_PMXT_KEYThe demo includes reference proxies in apps/demo/app/api/pmxt and apps/demo/app/api/trade.
<PmxtProvider config={{ apiUrl: '/api/pmxt' }} sandbox> <App /> </PmxtProvider>
Sandbox uses live market data with simulated trading, balances, positions, and fills.
pnpm install
cp apps/demo/.env.example apps/demo/.env.local
pnpm dev
pnpm test