Prediction markets prototype: side menu entry, market list and details scenes - #6158
Open
j0ntz wants to merge 3 commits into
Open
Prediction markets prototype: side menu entry, market list and details scenes#6158j0ntz wants to merge 3 commits into
j0ntz wants to merge 3 commits into
Conversation
Contributor
Author
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
from
August 14, 2026 23:39
d14fb2a to
0830eaa
Compare
j0ntz
marked this pull request as ready for review
August 14, 2026 23:41
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
from
August 14, 2026 23:41
0830eaa to
dcc48a2
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
from
August 14, 2026 23:50
dcc48a2 to
18170fd
Compare
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
from
August 14, 2026 23:56
18170fd to
8247fee
Compare
Contributor
Author
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
from
August 15, 2026 00:02
8247fee to
63c5bf5
Compare
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
from
August 15, 2026 00:10
63c5bf5 to
1633dce
Compare
Typed cleaners and fetch client for the Slipstream Connect API (cross-venue prediction markets over Polymarket, Hyperliquid, and Kalshi), plus a bundled sample dataset used when no API key is configured. The optional key lives at ENV.PLUGIN_API_KEYS.slipstream.
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
2 times, most recently
from
August 15, 2026 00:23
eeab4cc to
c8baf0f
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c8baf0f. Configure here.
Prediction Markets in the side menu opens a new list scene: category tabs (sports, crypto, macro, politics) and market cards comparing each venue's best ask, with the best-priced venue highlighted. Tapping a market opens a details scene showing per-venue bid/ask, the merged order book's top levels, and per-venue market metadata with links out. Scenes show a labeled sample dataset when no API key is configured.
Technical design document covering the data module, scenes, sample fallback, and the decisions behind the read-only scope, plus the CHANGELOG entry.
j0ntz
force-pushed
the
jon/prediction-markets-prototype
branch
from
August 15, 2026 00:29
c8baf0f to
0cb837b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






Technical Design Document
prediction-markets-prototype.md
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
none
Requirements
If you have made any visual changes to the GUI. Make sure you have:
Description
Prototype for the Prediction Markets task (Asana task).
Adds a Prediction Markets side menu entry and two new scenes backed by the Slipstream Connect API (https://github.com/tylerthebuildor/slipstream-example):
src/plugins/prediction-markets/, optional API key atENV.PLUGIN_API_KEYS.slipstream(phaze precedent).Review hardening (from Cursor Bugbot / Security Reviewer findings, all addressed): shared best-ask helper so both scenes highlight the same venue, an https + venue-host allowlist (userinfo rejected) before any leg URL opens,
asBiggystringcleaners on all numeric fields, red asks in the order book, and the list keeps last-good data when a background refetch fails.Read-only scope: no trading, balances, or positions; the design doc records the rationale and the deferred trade-flow phase.
Note
Medium Risk
Introduces a new user-facing flow that fetches untrusted API JSON and opens external URLs; mitigations include cleaners,
asBiggystring, and venue URL allowlisting, but the prototype still uses a client-side API key from env like other plugin keys.Overview
Adds a Prediction Markets side menu entry and logged-in stack routes for a read-only prototype: browse cross-venue market clusters from the Slipstream Connect API.
The list scene uses category tabs (sports, crypto, macro, politics), TanStack Query, and cards that compare each venue’s best ask with the best venue highlighted. The details scene shows per-venue bid/ask, a merged order book, and leg metadata; venue links open in the browser only when
isSafeVenueUrlpasses an https host allowlist.New code lives under
src/plugins/prediction-markets/(cleaners,fetchPredictionMarkets, bundled sample data). OptionalENV.PLUGIN_API_KEYS.slipstreamenables liveGET /connect/markets/{category}; without a key, sample data is shown behind a warning banner. Trading, balances, and positions are intentionally out of scope.Reviewed by Cursor Bugbot for commit 0cb837b. Bugbot is set up for automated code reviews on this repo. Configure here.