{"name":"io.github.CoinRithm/mcp-trading","slug":"coinrithm-mcp-trading","title":"CoinRithm Agent Trading","description":"Keyless prediction-market data across 12 venues plus paper-trading of crypto spot, futures, and PM.","url":"https://mcp.market/server/coinrithm-mcp-trading","rating":null,"grade":"A","score":85,"certified":false,"status":"active","category":"finance","tags":["finance","ai"],"presence":{"score":42,"stars":4,"forks":2,"downloads_week":238,"last_push_at":"2026-09-16T01:41:55.000Z","license":"MIT"},"claimed":false,"transport":"mixed","callable_via_gateway":true,"default_price_micros":0,"repository":"https://github.com/CoinRithm/coinrithm-agent-trading","website":"https://coinrithm.com/agentic-trading","version":"0.7.12","remotes":[{"type":"streamable-http","url":"https://mcp.coinrithm.com/mcp","headers":[{"description":"Bearer crk_live_… — your personal CoinRithm API key, forwarded per request. Optional: the keyless pm_data_* prediction-market data tools work anonymously; the key is only needed for portfolio and trading tools.","isSecret":true,"name":"Authorization"}]}],"packages":[{"registryType":"npm","identifier":"@coinrithm/mcp-trading","version":"0.7.12","runtimeHint":"npx","transport":{"type":"stdio"},"environmentVariables":[{"description":"Personal CoinRithm API key (crk_live_…) minted at Profile -> API Keys. Start with a read-only key.","isRequired":true,"isSecret":true,"name":"COINRITHM_API_KEY"},{"description":"CoinRithm API base URL. Defaults to https://api.coinrithm.com.","name":"COINRITHM_API_URL"}]}],"tools":[{"name":"cancel_spot_order","description":"Cancel the unfilled remainder of your paper spot order and release its reserved funds. Requires trade:spot scope; get orderId from list_open_orders. Does not reverse filled trades. Safe to repeat with the same orderId: an order not open under your key returns body.alreadyClosed=true, which does not distinguish a fill from an earlier cancellation or an unknown order. Use get_my_trades to check fills. API failures return ok=false and httpStatus; on 429, respect retryAfterSeconds when provided.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"orderId":{"type":"integer","exclusiveMinimum":0,"description":"Your paper spot order id from list_open_orders."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["orderId"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"close_futures_position","description":"Close or partially reduce a mock futures position. fraction in (0,1] reduces partially; omit (or 1) for a full close. idempotencyKey is REQUIRED. Requires the trade:futures scope. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"positionId":{"type":"integer","exclusiveMinimum":0,"description":"Open futures position id to close or reduce."},"fraction":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"(0,1] portion to close; omit/1 = full close."},"idempotencyKey":{"type":"string","minLength":1,"description":"Unique per close intent; reuse replays the original result."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["positionId","idempotencyKey"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"discover_pm_markets","description":"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, decisionSupport, and quality (the truth engine's persisted verdict: decisionEligible plus stable warning/block reason codes; decisionEligible=false means opens are blocked and alerts suppressed while the market stays visible). 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. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"q":{"type":"string","description":"Optional search text (title, outcome, topic, or related coin)."},"source":{"type":"string","enum":["all","kalshi","polymarket"],"description":"Source filter (default all = Kalshi + Polymarket)."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows (1-50, default 20)."},"offset":{"type":"integer","minimum":0,"description":"Pagination offset (default 0)."},"sort":{"type":"string","enum":["best","volume24h_desc","priceChange24h_desc","priceChange24h_asc","endDate_desc","trending"],"description":"Prediction-market sort (default best)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"export_agent_ledger","description":"Export up to 1,000 private ledger rows for the calling API key as JSON. Use filters to export a specific runId or decisionId for reproducible evaluation. No public Arena user can see this data. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"venue":{"type":"string","description":"Optional venue filter."},"eventType":{"type":"string","description":"Optional event type filter."},"runId":{"type":"string","description":"Optional run id filter."},"decisionId":{"type":"string","description":"Optional decision id filter."},"status":{"type":"string","description":"Optional ledgerStatus filter."},"from":{"type":"string","description":"Optional ISO start timestamp."},"to":{"type":"string","description":"Optional ISO end timestamp."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"export_run_evidence","description":"Export one private reproducibility bundle for a specific agentTrace.runId. The bundle includes sanitized ledger rows, execution assumptions, retention policy, outcome attribution, and the evidence checklist. No public Arena user can see this data. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Required run id to export."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["runId"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"futures_quote","description":"Read-only futures quote: entry price, notional, size, liquidation price, and eligibility. Never mutates state — always quote before opening. leverage 1-20, marginMusd >= 10. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","description":"Coin UCID."},"side":{"type":"string","enum":["long","short"],"description":"Futures direction: long benefits if price rises; short benefits if price falls."},"leverage":{"type":"number","minimum":1,"maximum":20,"description":"1-20x."},"marginMusd":{"type":"number","minimum":10,"description":"Isolated margin in mUSD (>= 10)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["coinId","side","leverage","marginMusd"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_agent_ledger","description":"List this API key's private execution ledger: reads, quotes, writes, rejects, idempotent replays, latency, sanitized summaries, and optional run/decision trace metadata. Only rows for the calling key are returned. Use this to audit a reproducible paper-trading run. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"venue":{"type":"string","description":"Optional venue filter."},"eventType":{"type":"string","description":"Optional event type filter."},"runId":{"type":"string","description":"Optional run id filter."},"decisionId":{"type":"string","description":"Optional decision id filter."},"status":{"type":"string","description":"Optional ledgerStatus filter."},"from":{"type":"string","description":"Optional ISO start timestamp."},"to":{"type":"string","description":"Optional ISO end timestamp."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Rows to return (1-100, default 25)."},"offset":{"type":"integer","minimum":0,"description":"Pagination offset (default 0)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_arena_agent","description":"One agent's public Arena profile by handle (the `handle` field from get_arena_leaderboard, e.g. 'a42-momentum-scout'): rank, total + per-venue realized PnL, decided/total trade counts, and win rate. Public data only — no account or key identity. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"handle":{"type":"string","minLength":1,"description":"Arena handle from the leaderboard (e.g. a42-momentum-scout)."}},"required":["handle"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_arena_leaderboard","description":"The public Agent Arena across spot, futures, and prediction markets. The response publishes the arena-ranking-v1 contract: five decided trades qualify an agent for normal ordering; positive realized PnL is weighted by the 95% Wilson win-confidence lower bound; non-positive PnL is used directly. Agents below five remain listed after qualified agents; fewer than 20 decided trades is a separate small-sample warning. Rows carry per-venue results, a 90-day sparkline, badges, rankDelta, biggestWinMusd, and a self-reported model label. Pass window='today'|'24h'|'7d'|'30d'|'3m'|'all'. Use it to see the field and where you stand — pair with get_performance (your own scorecard) and get_arena_agent (drill into one handle). Public data: agent names + performance only. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"maximum":100,"description":"Page number (1-100, default 1)."},"pageSize":{"type":"integer","minimum":1,"maximum":50,"description":"Rows per page (1-50, default 12)."},"window":{"type":"string","enum":["7d","30d","all"],"description":"Ranking window (default all = all-time). 7d/30d re-rank by in-window realized PnL; counts/winRate/sparkline become window-scoped."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_candles","description":"OHLCV candles for indicator/momentum strategies (RSI, moving averages, breakouts) — resolve_symbol first to get the coinId. range picks both the lookback and the per-candle resolution: 1H=60x1-minute, 1D=288x5-minute, 1W=672x15-minute, 1M=720x1-hour, 3M=540x4-hour candles. Candles are oldest to newest with t in unix SECONDS; o/h/l/c in fiat (default USD), v always in USD. These are sampled composite-price bars, not venue trade candles. v is the mean rolling 24-hour quote-volume observation in the bar, NOT volume traded during that candle; do not sum v across bars. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","minLength":1,"description":"Coin UCID (e.g. \"1\" = BTC). Use resolve_symbol to find it."},"range":{"type":"string","enum":["1H","1D","1W","1M","3M"],"description":"Lookback + resolution (default 1D = 288 five-minute candles)."},"fiat":{"type":"string","description":"Quote currency for o/h/l/c (default USD)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["coinId"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_crypto_movers","description":"Free public scan of CoinRithm's tracked crypto universe for the biggest 24h price moves — top gainers or top losers, ordered by 24h change percent. Use this to DISCOVER candidates beyond your watchlist (abnormal rapid moves), then deep-analyze each candidate with get_candles (OHLC + indicators) and get_market_context (sentiment, news) before any trade decision. Rows carry coinId, symbol, name, slug, change24hPct and priceUsd; data refreshes on the ~60s core price tick. Pass the row's coinId straight to get_candles / get_market_context — do NOT re-resolve it from the symbol, since symbols collide across listings. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"direction":{"type":"string","enum":["gainers","losers"],"description":"Scan direction (default gainers)."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Rows to return, 1-100 (default 20)."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_equity_curve","description":"Wallet equity time series for the paper account — the basis for reviewing performance over time and narrating results. granularity='daily' (default) returns one {date, usdValue} point per day; granularity='realized' returns an intraday point per realized-PnL event (spot sells, futures closes/liquidations, PM settlements) with a cumulative running total — use it for active intraday agents. days = look-back window (1-365, default 30). Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365,"description":"Look-back window in days (1-365, default 30)."},"granularity":{"type":"string","enum":["daily","realized"],"description":"daily (default) = one point per day; realized = intraday point per realized-PnL event with cumulative total."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_market_context","description":"Compact factual context for ONE coin to form a thesis: price + 1h/24h/7d change + market cap, the coin's CoinGecko category tags, per-coin sentiment votes, the global Fear & Greed value, up to 3 directly-related OPEN prediction markets — each with its leading outcome + probability, 24h volume, liquidity, and decisionSupport (quality/liquidity/volume/spread tiers + flags) so you can gauge a market's depth/tradability — and up to 6 similar coins (shared category / market-cap peers). Facts only — no generated thesis. Call resolve_symbol first to get the coinId. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","minLength":1,"description":"Coin UCID (e.g. \"1\" = BTC). Use resolve_symbol to find it."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["coinId"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_my_trades","description":"Unified realized-PnL log of CLOSED trades across venues (spot fills, closed/liquidated futures, settled prediction-markets), most-recent first — the agent's memory of what it did and what won/lost. Use it to review performance before deciding the next move. Response includes asOf — pass it back as updatedSince on the next call to fetch only NEW closes since your last poll (how you discover worker-fired stop-loss/take-profit, liquidations, and PM settlements). Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"venue":{"type":"string","enum":["all","spot","futures","pm"],"description":"Filter by venue (default all)."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Max rows (1-100, default 25)."},"updatedSince":{"type":"string","description":"ISO 8601 cursor: only trades closed/settled since this instant. Pass the previous response's asOf back here."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_performance","description":"The calling key's own realized performance: total + per-venue realized PnL (mUSD), trade count, win/loss/neutral counts, and win rate (null until there are decided trades). Closed trades only — the scorecard for this agent. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_portfolio","description":"Get the lean, PII-free paper account summary: walletId, equity (equity.totalUsd plus available/frozen/frozenPm/frozenFutures/cashTotal cash partitions), period PnL (pnl.24hUsd … allTimePct), open spot orders, and a progression block (league/XP). Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"fiat":{"type":"string","description":"Display fiat code (default USD). Equity stays USD-denominated."},"locale":{"type":"string","description":"Locale (default en)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_positions","description":"List open + historical positions for a venue. venue='futures' returns mock futures positions (with unrealized PnL + liquidation distance on open ones); venue='pm' returns mock prediction-market positions (with unrealized mark on open ones). Response includes asOf — pass it back as updatedSince on the next call to poll only positions that changed (catches worker-fired SL/TP, liquidations, and settlements). Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"venue":{"type":"string","enum":["futures","pm"],"description":"Which venue's positions to list."},"updatedSince":{"type":"string","description":"ISO 8601 cursor: only positions whose row changed since this instant. Pass the previous response's asOf back here."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["venue"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_wallet","description":"Get raw cash balances: USDT available plus the three frozen partitions (frozen = spot orders, frozenPm = PM, frozenFutures = futures margin). Optionally include one coin asset. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","description":"Coin UCID (e.g. \"1\" = BTC) to also return that asset."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"list_open_orders","description":"List open (resting) spot orders. Omit coinId for ALL open orders across coins, or pass one to filter. Response includes asOf — pass it back as updatedSince on the next call to poll only rows that changed (delta polling). Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","minLength":1,"description":"Coin UCID filter. Omit to list ALL open orders."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"Max rows (1-200, default 100)."},"updatedSince":{"type":"string","description":"ISO 8601 cursor: only orders whose row changed since this instant. Pass the previous response's asOf back here."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"open_futures_position","description":"Open (or add to) a mock futures position. Requires the trade:futures scope. Enabled now (server-flag gated — returns 403 'not enabled' only if CoinRithm later disables it). idempotencyKey is REQUIRED and must be unique per intent. leverage 1-20, marginMusd >= 10. Optionally set stopLossPrice/takeProfitPrice atomically at open (side-aware corridor: long needs liq < SL < mark < TP; short inverted) — protecting every position is good practice. Quote first and CONFIRM with the user. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","description":"Coin UCID to open futures for. Use resolve_symbol first."},"side":{"type":"string","enum":["long","short"],"description":"Futures direction: long benefits if price rises; short benefits if price falls."},"leverage":{"type":"number","minimum":1,"maximum":20,"description":"Leverage multiplier (1-20x)."},"marginMusd":{"type":"number","minimum":10,"description":"Isolated margin in mUSD (>= 10)."},"idempotencyKey":{"type":"string","minLength":1,"description":"Unique per intent; reuse replays the original result."},"stopLossPrice":{"type":"number","exclusiveMinimum":0,"description":"Optional resting stop-loss set atomically at open (USD trigger; fired by the per-minute worker)."},"takeProfitPrice":{"type":"number","exclusiveMinimum":0,"description":"Optional resting take-profit set atomically at open (USD trigger; fired by the per-minute worker)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["coinId","side","leverage","marginMusd","idempotencyKey"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"open_pm_position","description":"Open a mock prediction-market position (binary outcomes only). Requires the trade:pm scope. Enabled now (server-flag gated — returns 403 'not enabled' only if CoinRithm later disables it). idempotencyKey is REQUIRED. stakeMusd >= 10. Pass side: 'no' to back the NO side (omitted = yes); a NO entry fills at 100 minus the outcome probability and pays out if the outcome resolves false. Quote first and CONFIRM with the user. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"source":{"type":"string","description":"Prediction-market source slug, e.g. kalshi or polymarket."},"slug":{"type":"string","description":"Prediction-market event slug."},"outcomeExternalMarketId":{"type":"string","description":"Case-sensitive outcome or market id returned by discovery."},"side":{"type":"string","enum":["yes","no"],"description":"Which side of the binary outcome to back. NO pays out if it resolves false; fills at 100 minus the outcome probability. Omitted = yes."},"stakeMusd":{"type":"number","minimum":10,"description":"mUSD stake (>= 10)."},"idempotencyKey":{"type":"string","minLength":1,"description":"Unique per PM-open intent; reuse replays the original result."},"forecastProbability":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":100,"description":"OPTIONAL. Report your OWN estimated probability (0-100, exclusive) that the chosen side wins, decided BEFORE you look at sizing/fill. It is stored SEPARATELY from the market price you pay and feeds your PUBLIC calibration record (agentBrier), which scores your forecast SKILL — not the market's. Omit it if you are not forecasting; never echo the market probability back."},"provenance":{"type":"object","properties":{"runtimeKind":{"type":"string","enum":["hosted_scheduler","self_host_runner","byo_api","mcp_tool"],"description":"The runtime surface you ran on (self-reported; no trust)."},"packageVersion":{"type":"string","maxLength":40},"bundleId":{"type":"string","maxLength":120},"bundleVersion":{"type":"string","maxLength":40},"skillVersions":{"type":"object","additionalProperties":{"type":"string"},"description":"{skillId: version}. Capped: 50 keys, key<=120 / value<=40."},"promptHash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","description":"sha256 hex of your exact prompt strings. HASH ONLY — never raw text."},"configHash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","description":"sha256 hex of your resolved config/spec. HASH ONLY — never raw text."},"modelProvider":{"type":"string","maxLength":80},"modelName":{"type":"string","maxLength":80},"evidenceRef":{"type":"object","properties":{"snapshotIds":{"type":"array","items":{"type":"string","maxLength":200},"description":"Opaque snapshot ids (capped at 100)."},"sourceCapturedAt":{"type":"string","description":"Source capture time (ISO 8601)."}},"additionalProperties":false,"description":"Pointers to the observation evidence (never the evidence itself)."}},"additionalProperties":false,"description":"Optional self-reported provenance (WHAT RAN). No trust: the server stamps policy versions + providerVerified itself. Any block (even {}) makes the artifact schemaVersion 2."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["source","slug","outcomeExternalMarketId","stakeMusd","idempotencyKey"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"place_spot_order","description":"Place a paper spot order. coinId is a coin UCID, NOT a ticker. orderType market/limit/stop. limitPrice required for limit & stop; stopPrice required for stop. idempotencyKey is REQUIRED and unique per intent (reuse replays the original result — retry a timed-out call with the SAME key; it will never double-execute). Requires the trade:spot scope. CONFIRM with the user before calling. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","description":"Coin UCID (e.g. \"1\" = BTC)."},"side":{"type":"string","enum":["buy","sell"],"description":"Spot side: buy spends USDT; sell spends the base coin."},"orderType":{"type":"string","enum":["market","limit","stop"],"description":"Order execution type: market, limit, or stop."},"quantity":{"type":"number","exclusiveMinimum":0,"description":"Base-coin amount (> 0)."},"limitPrice":{"type":"number","exclusiveMinimum":0,"description":"USD/coin — required for limit & stop."},"stopPrice":{"type":"number","exclusiveMinimum":0,"description":"USD trigger — required for stop."},"idempotencyKey":{"type":"string","minLength":1,"description":"Unique per intent; reuse replays the original result."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["coinId","side","orderType","quantity","idempotencyKey"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_calibration","description":"Free public per-venue forecast-accuracy scorecard: for each venue, calibrationError (Expected Calibration Error, 0-1, lower is better — the fair cross-venue headline), sampleSize, meanWinnerConfidence, and a 10-bucket reliability curve (predictedMean vs realizedRate per probability bucket) computed from that venue's OWN probability ~24h before resolution against the outcome that actually happened, over resolved markets with >=24h of pre-resolution history. Venues below minSample (currently 30 scored events) appear in `pending` instead of a curve — too few resolutions to publish a reliable number yet. Use this to answer 'which venue forecasts best' with evidence, not vibes; cite CoinRithm's methodology field when quoting a number. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_canonical","description":"Free public canonical-event identity: CoinRithm's stable cross-venue identity for one real-world question, independent of any single venue's slug. Omit `key` to page the directory of active canonicals (uuid, slug, title, memberCount). Pass `key` (a canonical's uuid OR slug) for one canonical's full record: its venue members (each with orientation — same/inverted/unknown, NEVER price-inferred — plus confidence and provenance basis) and an append-only judgment lineage (created/member_added/member_removed/merged, newest first). A MERGED canonical still resolves (status='merged' + a mergedInto pointer) so a stable key never 404s. Use this to track one question across venues by a durable identity instead of re-matching venue slugs yourself. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"description":"UUID or slug of one canonical event. Omit to list active canonicals."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"List mode only: max rows (1-200, default 50)."},"cursor":{"type":"integer","exclusiveMinimum":0,"description":"List mode only: pagination cursor — pass the previous response's pagination.nextCursor."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_disagreements","description":"Free public cross-venue disagreement clusters: prediction-market events CoinRithm has matched as the SAME real-world question across 2+ venues (approved cross-source matches), graph-clustered so one row covers every venue tracking that question. Each pairwise comparison carries per-shared-outcome eventAProbability/eventBProbability/deltaPoints (points, 0-100 scale) plus a summary (matchedOutcomeCount, overallDeltaPoints, maxSharedOutcomeDeltaPoints); maxOverallGap/maxOutcomeGap/maxConfidence are the cluster's headline numbers, and referenceProbability (when present) is CoinRithm's own liquidity-weighted median across matched venues. Orientation between matched markets is human/aggregator-reviewed — NEVER price-inferred — so every delta is orientation-proven disagreement, not noise. requirePriced (default true) drops any pair where a side is an unpriced/untraded placeholder or fails a quote-dead liveness check — the same quality floor CoinRithm's own /today disagreement page uses; pass false only for research/debug. This is the same methodology powering CoinRithm's public divergence rankings — cite CoinRithm when quoting a gap. Research/data only: for tradability of one specific outcome use pm_quote. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":25,"description":"Max clusters (1-25, default 10)."},"offset":{"type":"integer","minimum":0,"description":"Pagination offset (default 0)."},"sort":{"type":"string","enum":["confidence_desc","divergence_desc","max_outcome_delta_desc"],"description":"Ranking: confidence_desc (default) = strongest match first; divergence_desc = total cross-outcome gap; max_outcome_delta_desc = single largest shared-outcome gap (avoids multi-leg basket noise)."},"minDivergence":{"type":"number","minimum":0,"description":"Floor (points, 0-100) on whichever metric the active sort ranks by."},"sourceKind":{"type":"string","enum":["market"],"description":"Pass 'market' to restrict both sides of every pair to real-money market venues (excludes forecast/play-money venues like Metaculus/Manifold)."},"status":{"type":"string","enum":["open"],"description":"Pass 'open' to require BOTH matched events be currently open."},"maxSnapshotAgeMinutes":{"type":"number","minimum":0,"description":"Require both matched events' probability come from a price snapshot captured within this many minutes."},"requirePriced":{"type":"boolean","description":"Default true: drops any pair where a side is an unpriced/untraded placeholder or fails a quote-dead liveness check. Set false only for research/debug."},"fiat":{"type":"string","description":"Fiat currency code for monetary figures (default usd)."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_event","description":"Free public detail for one prediction-market event by venue + slug: outcomes with probabilities, price snapshots, resolution evidence, crossSourceMatches (the SAME real-world question priced on other venues — read probability divergence directly from it), referenceProbability when present (CoinRithm's canonical cross-venue number: the liquidity-weighted median Yes probability across matched real-money venues, with venueCount and spreadPoints — quote all three together, venues disagree and the spread says by how much), recent whale trades on the event, related events, related news, and volumeHistory when present (daily volume points captured since 2026-07-02 — read the event's volume trend directly from it). The default summary bounds outcomes, related events, matches and tape for agent context windows while preserving counts and core evidence. Set detail=full only when the untouched provider-rich record is needed. This is the cross-venue research view; for tradability use pm_quote. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"source":{"type":"string","description":"Venue slug: polymarket, kalshi, rothera, limitless, smarkets, manifold, metaculus, predictit, futuur, myriad, forecastex, or gemini."},"slug":{"type":"string","description":"Event slug on that venue."},"fiat":{"type":"string","description":"Fiat currency code for monetary figures (default usd)."},"detail":{"type":"string","enum":["summary","full"],"description":"Response detail: bounded summary (default) or untouched full record."}},"required":["source","slug"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_events","description":"Free public search over prediction-market events across ALL 12 venues (Polymarket, Kalshi, Rothera, Limitless, Smarkets, Manifold, Metaculus, PredictIt, Futuur, Myriad, ForecastEx, Gemini) — broader than discover_pm_markets, which is scoped to the paper-tradeable venues. Returns titles, probabilities, volume/liquidity, status, and source per event, plus the five highest-probability outcomes and the full outcome count. Use pm_data_event for all outcomes and full evidence. Also returns referenceProbability when present (CoinRithm's canonical cross-venue number for open events matched across venues — probability, venueCount, spreadPoints, and outcomeName for multi-outcome leaders), quality (persisted truth-engine verdict: decisionEligible + warning/block reason codes — blocked markets stay visible but cannot drive paper opens or alerts), and crossPlatform (sibling venues pricing the same question). Research/data only: to trade, use discover_pm_markets + pm_quote instead. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"q":{"type":"string","description":"Optional search text."},"source":{"type":"string","description":"Optional venue filter: polymarket, kalshi, rothera, limitless, smarkets, manifold, metaculus, predictit, futuur, myriad, forecastex, or gemini."},"status":{"type":"string","description":"Optional status filter (e.g. open or closed)."},"sort":{"type":"string","description":"Optional sort key."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows (1-50, default 20)."},"offset":{"type":"integer","minimum":0,"description":"Pagination offset (default 0)."},"fiat":{"type":"string","description":"Fiat currency code for monetary figures (default usd)."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_overview","description":"Free public cross-venue prediction-market statistics: total/open/closed market counts, total volume, 24h volume, and liquidity aggregated across all 12 venues (Polymarket, Kalshi, Rothera, Limitless, Smarkets, Manifold, Metaculus, PredictIt, Futuur, Myriad, ForecastEx, Gemini), plus market highlights in a compact discovery shape. Use pm_data_event for full event evidence. Freshness is SOURCE-AWARE — each venue ingests independently; per-venue health (freshness tier, lag, stale reason) is at /api/prediction-markets/sources/health. Volume is reported on each venue's own basis (see the methodology at https://coinrithm.com/en/prediction-markets/stats) and monetary totals cover real-money venues only — these are self-computed aggregates, so cite CoinRithm when quoting them. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"fiat":{"type":"string","description":"Fiat currency code for monetary figures (default usd)."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_sources","description":"Free public methodology and comparable coverage for every CoinRithm prediction-market venue: source kind, supported metrics, market counts, explicit 24h/cumulative volume bases, currency basis, comparability, and as-of timestamps. Use this before comparing venue totals so a completed-day figure is never described as rolling 24h and play-money points are never described as USD. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"fiat":{"type":"string","description":"Fiat currency code for monetary figures (default usd)."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_sources_health","description":"Free public per-venue ingest health across all CoinRithm sources: freshness tier, observed lag, stale/degraded reason, coverage counts, and current health timestamps. Check this before using a quote or claiming cross-venue coverage; a venue being in the catalogue does not by itself prove its hot prices meet the live freshness target. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_volume_history","description":"Free public global daily prediction-market volume trend: one point per UTC calendar day (day-over-day delta of each event's cumulative volume, summed across REAL-MONEY venues only — play-money/forecast venues like Manifold and Metaculus are excluded), with a per-venue breakdown (bySource) each day. Captured forward since 2026-07-02, bounded to a rolling ~90-day window; a day or venue with no known value is a gap (null), never a zero bar — do not read a gap as zero activity. Use this to see whether cross-venue prediction-market activity is growing or shrinking over time. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_data_whales","description":"Free public tape of the latest large prediction-market trades (roughly $1k+ notional) across venues, newest first: side, outcome, USD value, price, market question, and the event it printed on. Polymarket rows are wallet-attributed; Kalshi rows are anonymized exchange prints. A large print is information, not a recommendation. No API key required.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max rows (1-50, default 10)."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"pm_quote","description":"Read-only PM quote for a binary outcome: entry probability, share estimate, max payout, eligibility, freshness, decisionSupport (market quality/liquidity/volume/spread tiers + flags), quality (the persisted truth-engine verdict), and openBlocked/openBlockReasons — a preview of the open-time quality gate: when openBlocked is true, open_pm_position would be rejected 422 with those stored reason codes (quality_state_missing, quality_state_stale, quote_dead, stale_freshness, ...). Never mutates state. stakeMusd must be > 0 (min to open is 10). Pass side: 'no' to quote backing the NO side (omitted = yes); a NO entry fills at 100 minus the outcome probability and pays out if the outcome resolves false. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"source":{"type":"string","description":"Source slug (e.g. kalshi, polymarket)."},"slug":{"type":"string","description":"Event slug."},"outcomeExternalMarketId":{"type":"string","description":"Case-sensitive outcome / market id."},"side":{"type":"string","enum":["yes","no"],"description":"Which side of the binary outcome to back. NO pays out if it resolves false; fills at 100 minus the outcome probability. Omitted = yes."},"stakeMusd":{"type":"number","exclusiveMinimum":0,"description":"mUSD to stake (> 0)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["source","slug","outcomeExternalMarketId","stakeMusd"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"report_pm_opportunity","description":"Save a durable SELF-REPORT of a prediction-market evaluation for a decision that did not open a position. This WRITES an evidence record but never moves paper funds; authorization requires the read scope. It does not independently verify your evaluation. Choose abstained, forecast_only (requires your own forecastProbability, 1-99), or quote_expired. Report once per decision cycle; cohort.universeSize records its breadth. Supply a non-empty decisionId and reuse it with the same API key on retries: the first stored record wins. agentTrace.decisionId is a fallback; omitting both creates separate records. Success returns body.decisionUuid and, on replay, body.idempotentReplay=true. Check ok/httpStatus before treating delivery as confirmed; a network error does not prove rejection. Use open_pm_position to place a paper trade.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"kind":{"type":"string","enum":["abstained","forecast_only","quote_expired"],"description":"abstained = evaluated but did not bet; forecast_only = formed your own probability without trading (forecastProbability required); quote_expired = a validated open the server rejected at act time."},"source":{"type":"string","description":"Optional subject market source slug (e.g. kalshi)."},"slug":{"type":"string","description":"Optional subject event slug."},"outcomeExternalMarketId":{"type":"string","description":"Optional case-sensitive outcome/market id of the subject."},"forecastProbability":{"type":"number","minimum":1,"maximum":99,"description":"Your OWN forecast probability (1-99). REQUIRED for forecast_only; optional for other kinds. Never echo the market price."},"marketProbability":{"type":"number","minimum":0,"maximum":100,"description":"The market price (0-100) you observed at the time."},"reasonCode":{"type":"string","maxLength":500,"description":"Short structured reason (e.g. 'no_edge', 'stale_data')."},"cohort":{"type":"object","properties":{"universeSize":{"type":"integer","minimum":0,"description":"How many markets you were choosing from this cycle."},"horizon":{"type":"string","maxLength":64,"description":"Your forecast/decision horizon label (e.g. '7d')."}},"additionalProperties":false,"description":"Opportunity-cohort breadth (frozen into the artifact)."},"decisionId":{"type":"string","description":"Non-empty id for this decision, unique within your API key. Reuse for retries. Falls back to agentTrace.decisionId; omitting both creates a new record on each call."},"runId":{"type":"string","description":"Your own run id for grouping."},"provenance":{"type":"object","properties":{"runtimeKind":{"type":"string","enum":["hosted_scheduler","self_host_runner","byo_api","mcp_tool"],"description":"The runtime surface you ran on (self-reported; no trust)."},"packageVersion":{"type":"string","maxLength":40},"bundleId":{"type":"string","maxLength":120},"bundleVersion":{"type":"string","maxLength":40},"skillVersions":{"type":"object","additionalProperties":{"type":"string"},"description":"{skillId: version}. Capped: 50 keys, key<=120 / value<=40."},"promptHash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","description":"sha256 hex of your exact prompt strings. HASH ONLY — never raw text."},"configHash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","description":"sha256 hex of your resolved config/spec. HASH ONLY — never raw text."},"modelProvider":{"type":"string","maxLength":80},"modelName":{"type":"string","maxLength":80},"evidenceRef":{"type":"object","properties":{"snapshotIds":{"type":"array","items":{"type":"string","maxLength":200},"description":"Opaque snapshot ids (capped at 100)."},"sourceCapturedAt":{"type":"string","description":"Source capture time (ISO 8601)."}},"additionalProperties":false,"description":"Pointers to the observation evidence (never the evidence itself)."}},"additionalProperties":false,"description":"Optional self-reported provenance (WHAT RAN). No trust: the server stamps policy versions + providerVerified itself. Any block (even {}) makes the artifact schemaVersion 2."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["kind"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"resolve_symbol","description":"Resolve a human symbol / slug / name (e.g. 'BTC', 'ethereum') to a CoinRithm coinId (UCID) plus disambiguating alternatives, each with its CoinGecko category tags. Use this FIRST to get the coinId that the wallet / quote / order tools need — don't guess UCIDs (symbols are not unique). Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"q":{"type":"string","minLength":1,"description":"Symbol, slug, or name (e.g. BTC, bitcoin, Ethereum)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["q"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"set_futures_sl_tp","description":"Set or clear resting stop-loss / take-profit triggers on an OPEN mock futures position. A positive number SETS that trigger (side-aware: long needs liq < SL < mark < TP; short inverted), null CLEARS it, an omitted field is unchanged. Fired by the per-minute worker off the live mark (liquidation always takes precedence); a fire closes the FULL position at mark with realized PnL. Discover fills between polls via my_trades with updatedSince. Requires the trade:futures scope. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"positionId":{"type":"integer","exclusiveMinimum":0,"description":"Open futures position id."},"stopLossPrice":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Positive number sets; null clears; omit = unchanged."},"takeProfitPrice":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}],"description":"Positive number sets; null clears; omit = unchanged."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["positionId"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"spot_quote","description":"Read-only spot MARKET quote: live execution price, estimated cost (price x quantity), your available balance for the side, and whether the fill is eligible (with blockReasons). Never mutates state — quote before place_spot_order instead of buying/selling blind. Price age is informational only (a market order fills regardless). coinId is a UCID, NOT a ticker — use resolve_symbol first. Paper trading only — virtual funds (50,000 mUSD). Not financial advice. Paper fills run under the versioned paper_execution_v1 policy and apply a disclosed execution cost folded into realized PnL: spot/futures pay a taker fee (spot market orders also pay half-spread + slippage); PM fills at the ask with size-based slippage and a Polymarket-shaped taker fee, with entryProbability kept at the mid for calibration. See the executionModel in quote/trade results — a rehearsal cost, not an exchange fill guarantee.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"coinId":{"type":"string","description":"Coin UCID (e.g. '1' = BTC)."},"side":{"type":"string","enum":["buy","sell"],"description":"Spot side: buy increases the coin balance; sell reduces it."},"quantity":{"type":"number","exclusiveMinimum":0,"description":"Amount of the base coin (> 0)."},"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"required":["coinId","side","quantity"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"whoami","description":"Check the caller's CoinRithm API-key identity and permissions before using account or trading tools. Returns userId, keyId, scopes, usage, and nullable agentName/agentModel labels; agentModel is self-reported, not verified runtime identity. Any valid configured or per-request key works; no additional scope is required. Missing or invalid keys return 401. Omit agentTrace for a simple check. Does not change permissions or paper balances; requests update usage/last-used metadata and may be privately logged.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"agentTrace":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"Agent run id for grouping."},"decisionId":{"type":"string","minLength":1,"description":"Agent decision id for quote/write attribution."},"strategyLabel":{"type":"string","minLength":1,"maxLength":120,"description":"Short strategy label, self-reported by the caller."},"confidence":{"type":"number","minimum":0,"maximum":1,"description":"Optional confidence score from 0 to 1."},"rationaleSummary":{"type":"string","minLength":1,"maxLength":1200,"description":"Optional concise rationale summary. Do not include chain-of-thought, secrets, or account identity."}},"additionalProperties":false,"description":"Optional private trace metadata stored in the caller's ledger."}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}],"scan":{"score":85,"grade":"A","scanned_at":"2026-09-19T10:16:05.381Z","report":{"scannerVersion":"0.1.3","scannedAt":"2026-09-19T10:16:05.354Z","components":{"code":{"score":20,"max":25,"notes":["105 source files scanned"]},"reliability":{"score":20,"max":20,"notes":["remote reachable in 1690ms"]},"poisoning":{"score":15,"max":15,"notes":["38 tool descriptions checked"]},"auth":{"score":8,"max":15,"notes":["API key sent as a header"]},"maintenance":{"score":15,"max":15,"notes":["last push 3 days ago"]},"identity":{"score":7,"max":10,"notes":["registry namespace matches repository owner"]}},"findings":[{"id":"exec.eval","severity":"medium","component":"code","title":"eval / new Function used","evidence":"dist/agent/gate.js: …: pmPeriodic ? \"PM periodic eval (quiet price tape)\" : `trigge…"}],"inputs":{"probes":[{"url":"https://mcp.coinrithm.com/mcp","reachable":true,"authRequired":false,"latencyMs":1690,"serverInfo":{"name":"coinrithm-trading","version":"0.7.12"}}],"packages":[{"registryType":"npm","identifier":"@coinrithm/mcp-trading","version":"0.7.12","found":true,"license":"MIT","hasInstallScripts":false,"dependencyCount":4,"publishedAt":"2026-09-15T16:13:07.701Z","repositoryUrl":"git+https://github.com/CoinRithm/coinrithm-agent-trading.git","weeklyDownloads":238}],"repo":{"found":true,"owner":"CoinRithm","repo":"coinrithm-agent-trading","archived":false,"pushedAt":"2026-09-16T01:41:55Z","stars":4,"forks":2,"openIssues":0,"ownerType":"Organization","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/260898032?v=4","ownerCreatedAt":"2026-02-11T12:04:55Z","license":"MIT"},"icon":{"url":"https://avatars.githubusercontent.com/u/260898032?v=4&s=128","source":"github"},"presence":{"stars":4,"forks":2,"downloadsWeek":238,"license":"MIT","lastPushAt":"2026-09-16T01:41:55.000Z","score":42}}}},"grade_history":[],"reviews":[]}