Fix HYPE Polymarket discovery: read its event container

Polymarket now publishes a HYPE monthly event
(what-price-will-hyperliquid-hit-in-{month}, no year suffix), so the
old strike-probe fallback was both unnecessary and mis-ranged -- its
strikes [24..52] predated HYPE roughly doubling to ~$72, so every
"above" market ($76-92) was invisible and all 8 above rows came back
NO POLY. Point HYPE at its event like every other asset and re-range
the probe fallback to the current band [52..92].

Regenerated June pairs.json: HYPE now 16/16 with a Poly leg (was 8/16),
total 110/126 (every non-ZEC row paired; ZEC stays Kalshi-only). Only
HYPE rows changed; the other 7 assets are byte-identical.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Casey Judice
2026-06-01 17:21:15 -04:00
parent efbd50c154
commit bcc02cac49
2 changed files with 35 additions and 33 deletions
+5 -3
View File
@@ -46,7 +46,8 @@ KBASE = "https://api.elections.kalshi.com/trade-api/v2"
GBASE = "https://gamma-api.polymarket.com"
# asset -> Polymarket name + event-slug templates ({m}=month name, {y}=year).
# Assets without an event container (HYPE) carry a `probe` strike list instead.
# A `probe` strike list is a fallback used when the event container is missing
# (or hasn't listed yet) -- HYPE keeps one in case its event lags the others.
ASSETS = {
"BTC": dict(name="bitcoin", events=["what-price-will-bitcoin-hit-in-{m}-{y}",
"what-price-will-bitcoin-hit-in-{m}"]),
@@ -60,8 +61,9 @@ ASSETS = {
"what-price-will-dogecoin-hit-in-{m}"]),
"BNB": dict(name="bnb", events=["what-price-will-bnb-hit-in-{m}",
"what-price-will-bnb-hit-in-{m}-{y}"]),
"HYPE": dict(name="hyperliquid", events=[],
probe=[52, 48, 44, 40, 38, 36, 32, 30, 28, 24]),
"HYPE": dict(name="hyperliquid", events=["what-price-will-hyperliquid-hit-in-{m}",
"what-price-will-hyperliquid-hit-in-{m}-{y}"],
probe=[52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92]),
"ZEC": dict(name="zcash", events=["what-price-will-zcash-hit-in-{m}-{y}",
"what-price-will-zcash-hit-in-{m}"],
probe=[]),