Discover prediction markets
discover_pm_marketsFind active prediction markets from Kalshi and Polymarket. Returns source, slug, outcome IDs, volume, liquidity, and freshness for discovery.
Instructions
Find active-open, quote-ready-first prediction markets on the mock-PM sources (Kalshi + Polymarket by default). Returns source, slug, quoteable outcome externalMarketIds, freshness, volume/liquidity/spread, and decisionSupport. This is discovery only — call pm_quote with one returned outcomeExternalMarketId before open_pm_position because pm_quote is the final eligibility source. Paper trading only — virtual funds (50,000 mUSD). Not financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional search text (title, outcome, topic, or related coin). | |
| source | No | Source filter (default all = Kalshi + Polymarket). | |
| limit | No | Max rows (1-50, default 20). | |
| offset | No | Pagination offset (default 0). | |
| sort | No | Prediction-market sort (default best). | |
| agentTrace | No | Optional private trace metadata stored in the caller's ledger. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| httpStatus | Yes | HTTP status returned by CoinRithm, or 0 for network errors. | |
| ok | Yes | True when CoinRithm returned a successful 2xx response. | |
| ledgerEventId | No | Private AgentActionEvent id returned by /api/agent/*, when present. | |
| ledgerStatus | No | Ledger write status header returned by CoinRithm, when present. | |
| body | No | Parsed CoinRithm response body, or raw text when the response is not JSON. |