{"slug":"perp-gap-api-perpgap-workers-dev-pm-implied-871488","title":"Use when an agent must decide if a Hyperliquid prediction market on a crypto or ","host":"perp-gap-api.perpgap.workers.dev","method":"GET","resource":"https://perp-gap-api.perpgap.workers.dev/pm/implied","category":"market","description":"Use when an agent must decide if a Hyperliquid prediction market on a crypto or stock price (e.g. 'BTC above 82k on Oct 19', 'SP500 above 7730') is cheap or expensive. Returns each live outcome's bid, ask and depth, the probability implied by the live perp price and 7d realized vol, edge in pp vs bi","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":909,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"asset":"BTC"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"asset":{"description":"Underlying perp: BTC, ETH, HYPE, ZEC or trade.xyz perps like SP500, XYZ100, META, TSLA, CL, GOLD (xyz: prefix optional). Case-insensitive. Default BTC when neither asset nor outcome is given.","examples":["BTC","SP500"],"pattern":"^[A-Za-z0-9:]{1,16}$","type":"string"},"min_depth_usd":{"default":"0","description":"Optional. Hide markets with less than this USDC resting within 5 pp of the touch on either side. Default 0 (empty books are always hidden).","examples":["50"],"pattern":"^\\d+(\\.\\d+)?$","type":"string"},"outcome":{"description":"Optional Hyperliquid outcome id to price a single market (see free GET /pm/markets).","examples":["11676"],"pattern":"^\\d{1,9}$","type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"description":"Error responses are JSON {error: string}: 400 bad or empty asset, bad outcome or min_depth_usd (free); 404 no live Hyperliquid binary price market for that asset/outcome, or all its books are empty (free, never charged); 402 payment required; 502 upstream error.","properties":{"asset":{"type":"string"},"count":{"type":"integer"},"disclaimer":{"type":"string"},"filtered_out_empty_or_thin":{"type":"integer"},"generated_at_iso":{"format":"date-time","type":"string"},"label":{"const":"data, not advice","type":"string"},"markets":{"items":{"properties":{"ask":{"description":"Best Yes ask (probability, 0-1)","type":"number"},"ask_size":{"type":"number"},"asset":{"type":"string"},"best_edge_pp":{"type":["number","null"]},"bid":{"description":"Best Yes bid (probability, 0-1)","type":"number"},"bid_size":{"type":"number"},"book_age_s":{"type":"integer"},"book_ts":{"format":"date-time","type":"string"},"depth_usd":{"description":"USDC notional resting within window_pp of the touch, top 5 levels","properties":{"ask":{"type":"number"},"bid":{"type":"number"},"levels":{"type":"integer"},"window_pp":{"type":"number"}},"type":"object"},"edge_vs_ask_pp":{"description":"(model_prob - ask) x 100: > 0 means you could buy Yes below model value","type":["number","null"]},"edge_vs_bid_pp":{"description":"(bid - model_prob) x 100: > 0 means you could sell Yes above model value","type":["number","null"]},"expiry":{"format":"date-time","type":"string"},"hours_to_expiry":{"type":"number"},"kind":{"enum":["crypto","stocks"],"type":"string"},"liquid":{"description":"spread <= 10 pp (scan: max_spread_pp) and >= $50 depth on both sides (scan: min_depth_usd)","type":"boolean"},"mid":{"type":"number"},"model_prob":{"description":"Model P(price > strike at expiry), 0-1","type":["number","null"]},"outcome":{"description":"Hyperliquid outcome id (Yes token = coin #<id>0)","type":"integer"},"perp":{"description":"Underlying Hyperliquid perp, e.g. BTC or xyz:META","type":"string"},"question":{"type":"string"},"realized_vol_7d":{"type":["number","null"]},"settlement":{"properties":{"side":{"type":"string"},"source":{"type":["string","null"]},"window_seconds":{"type":["number","null"]}},"type":"object"},"signal":{"enum":["yes_underpriced","yes_overpriced","fair","illiquid","no_model"],"type":"string"},"spot_mid":{"type":["number","null"]},"spread_pp":{"type":"number"},"strike":{"type":"number"}},"required":["outcome","asset","strike","expiry","bid","ask","depth_usd","liquid"],"type":"object"},"type":"array"},"method":{"type":"string"},"min_depth_usd":{"type":"number"},"signal_rule":{"type":"string"},"source":{"type":"string"},"spot":{"properties":{"live":{"type":"boolean"},"mid":{"type":["number","null"]},"perp":{"type":"string"},"realized_vol_7d":{"type":["number","null"]},"vol_as_of":{"type":["string","null"]}},"type":"object"}},"required":["asset","markets","label","disclaimer"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":909,"error":null}],"description_full":"Use when an agent must decide if a Hyperliquid prediction market on a crypto or stock price (e.g. 'BTC above 82k on Oct 19', 'SP500 above 7730') is cheap or expensive. Returns each live outcome's bid, ask and depth, the probability implied by the live perp price and 7d realized vol, edge in pp vs bid and ask, and a liquidity flag. Empty books are filtered. Errors: 400 bad input, 404 no live market (both free, never charged), 402, 502. Data, not advice.","last_updated":"2026-10-17T19:46:18.473Z","schemes":["exact"]}