Syenite exposes Polymarket data via three tools: discover trending markets, search by topic, and get order book depth for an outcome token. Probabilities are derived from outcome prices; volume and liquidity are in USDC.
prediction.trending — Top markets by volume. Parameter: limit (1–25, default 10). Returns event title, slug, volume, liquidity, and per-market outcomes with probabilities, best bid/ask, spread.
prediction.search — Search by keyword (e.g. "Bitcoin", "Fed rate", "election"). Parameters: query, optional limit. Same response shape as trending.
prediction.book — Order book for one outcome token. Parameter: tokenId (from a market’s outcome in trending or search). Returns bids, asks, spread, mid-price, depth.
Call prediction.trending or prediction.search to find markets. Use an outcome’s token ID in prediction.book to assess execution cost or depth before trading elsewhere.