Chart
Fair-price candlesticks in cents with the live Yes book mid overlaid as a blue line — built for probability trading, not spot candles.
Fair candles & book mid line
The chart displays two complementary series in cents (0¢–100¢):
- Fair price candles: Drawn from the fair price model series and live
current_fairtip. Because the node emits one fair value per bucket, each candle body spans from the previous fair close to the current close with no wicks (green when close ≥ open, red when close < open). - Book mid line (blue): Computed as
(best Yes bid + (1000 − best No bid)) / 2decicents, divided by 10 for display. The node aggregates ~1 sample/second into 5-minute OHLC candles in PostgreSQL (mid_candles), folding the live mid into the open tip.
GET /markets/:id/chart returns points as { ts, open, high, low, close, price } (with price = close, source = BOOK_MID), plus current, the fair close series, and current_fair.
Candle intervals vs. market timeframes
Chart controls select candle resolution: 5m (native), 15m, 1h, and 1d (larger candles are folded from the 5m series). The chart always spans the market’s full lifetime (open → now or resolution) rather than a sliding lookback window. Market tenors are separate — see Timeframes (the shortest market is daily).
Yes / No views & reopened strikes
Every chart series is keyed by the full market ID (which includes start time), so a reopened Hit strike starts a clean chart of its own. Prior resolved instances for the same kind, barrier, and expiry remain browsable directly from the chart. Switching to the No side on the order book automatically inverts the chart using 100 − price.
Interactive overlays & drag-to-replace
| Overlay | Visual style | Meaning |
|---|---|---|
| Entry | Solid blue line + PnL badge | Average position entry price; badge text turns green/red with unrealized PnL. |
| Open orders | Dashed BUY / SEL lines |
Resting limit orders on the current market. |
| TP / SL | Dotted green TP · Dash-dot red SL |
Armed take-profit and stop-loss exit triggers. |
| Stops & Fills | Purple STOP line · Buy/Sell dots |
Armed conditional stop triggers and historical fill markers. |