Prediction Market

Prediction market trade ticket with buy/sell modes, outcome prices, rolling amount entry, quick add chips and trade states.

Preview

To win

Avg. Price 16.7¢

$688.62

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/prediction-market

API Reference

outcomes?
{}
[ { id: "up", label: "Up", price: 0.09 }, { id: "down", label: "Down", price: 0.91 }, ]
value?
PredictionMarketOrderValue
defaultValue?
any
onValueChange?
((value: PredictionMarketOrderValue) => void)
onTrade?
((order: PredictionMarketOrderValue, quote: PredictionMarketQuote) => void)
onSignIn?
(() => void)
authenticated?
boolean
true
orderTypeLabel?
string
Market
balance?
number
500
positions?
any
{ up: 24, down: 16 }
quickAmounts?
{}
[10, 50, 100, 500]
minTrade?
number
1
className?
string
classNames?
PredictionMarketClassNames

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated