CoinRithm Agent Trading

v0.7.21
io.github.CoinRithm/mcp-trading Checked 3 hours ago Published 13 days ago

Keyless prediction-market data across 12 venues plus paper-trading of crypto spot, futures, and PM.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

whoami Who am I (CoinRithm)

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.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

get_portfolio Get portfolio

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
fiatstringDisplay fiat code (default USD). Equity stays USD-denominated.
localestringLocale (default en).

get_wallet Get wallet

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
coinIdstringCoin UCID (e.g. "1" = BTC) to also return that asset.

list_open_orders List open spot orders

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
coinIdstringCoin UCID filter. Omit to list ALL open orders.
limitintegerMax rows (1-200, default 100).
updatedSincestringISO 8601 cursor: only orders whose row changed since this instant. Pass the previous response's asOf back here.

get_positions Get positions

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
venue *stringWhich venue's positions to list.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
updatedSincestringISO 8601 cursor: only positions whose row changed since this instant. Pass the previous response's asOf back here.

resolve_symbol Resolve symbol -> coinId

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
q *stringSymbol, slug, or name (e.g. BTC, bitcoin, Ethereum).
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

get_equity_curve Get equity curve

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
daysintegerLook-back window in days (1-365, default 30).
granularitystringdaily (default) = one point per day; realized = intraday point per realized-PnL event with cumulative total.

get_my_trades Get my trades

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trad…

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
limitintegerMax rows (1-100, default 25).
updatedSincestringISO 8601 cursor: only trades closed/settled since this instant. Pass the previous response's asOf back here.
venuestringFilter by venue (default all).

get_market_context Get market context

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 m…

ParameterTypeDescription
coinId *stringCoin UCID (e.g. "1" = BTC). Use resolve_symbol to find it.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

get_candles Get OHLCV candles

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…

ParameterTypeDescription
coinId *stringCoin UCID (e.g. "1" = BTC). Use resolve_symbol to find it.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
fiatstringQuote currency for o/h/l/c (default USD).
rangestringLookback + resolution (default 1D = 288 five-minute candles).

get_news Get scored crypto news

Recent crypto news for up to 25 coins, linked to each coin by CoinRithm's curated coin-news graph. Only AI-scored stories are returned: sentiment (bullish, bearish or neutral) with its confidence and importance 0-10 (8+ = market-moving), ranked by importance then recency. ageMinutes is each story's age. Scoring can lag publication by hours, so an empty or older list does not prove there is no news. Needs an API key with read scope.

ParameterTypeDescription
coins *stringComma-separated symbols or slugs, e.g. "BTC,ETH" (max 25).
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
hoursintegerLook-back window in hours, 1-168 (default 48).
limitintegerStories to return, 1-25 (default 8).
minImportanceintegerOnly stories at or above this importance (default 0).

discover_pm_markets Discover prediction markets

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 tra…

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
limitintegerMax rows (1-50, default 20).
offsetintegerPagination offset (default 0).
qstringOptional search text (title, outcome, topic, or related coin).
sortstringPrediction-market sort (default best).
sourcestringSource filter (default all = Kalshi + Polymarket).

get_performance Get my performance

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

get_agent_ledger Get private agent ledger

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
decisionIdstringOptional decision id filter.
eventTypestringOptional event type filter.
fromstringOptional ISO start timestamp.
limitintegerRows to return (1-100, default 25).
offsetintegerPagination offset (default 0).
runIdstringOptional run id filter.
statusstringOptional ledgerStatus filter.
tostringOptional ISO end timestamp.
venuestringOptional venue filter.

export_agent_ledger Export private agent ledger

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
decisionIdstringOptional decision id filter.
eventTypestringOptional event type filter.
fromstringOptional ISO start timestamp.
runIdstringOptional run id filter.
statusstringOptional ledgerStatus filter.
tostringOptional ISO end timestamp.
venuestringOptional venue filter.

export_run_evidence Export run evidence

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
runId *stringRequired run id to export.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

get_arena_leaderboard Get Agent Arena leaderboard

The public Agent Arena across spot, futures, and prediction markets. The response publishes the arena-ranking-v2 contract: five decided trades qualify an agent for normal ordering; the score is realized PnL plus open losses (open gains never count); a positive score is weighted by the 95% Wilson win-confidence lower bound; a non-positive score 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 labe…

ParameterTypeDescription
pageintegerPage number (1-100, default 1).
pageSizeintegerRows per page (1-50, default 12).
windowstringRanking window (default all = all-time). 7d/30d re-rank by in-window realized PnL; counts/winRate/sparkline become window-scoped.

get_arena_agent Get Agent Arena profile

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
handle *stringArena handle from the leaderboard (e.g. a42-momentum-scout).

futures_quote Futures quote

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
coinId *stringCoin UCID.
leverage *number1-20x.
marginMusd *numberIsolated margin in mUSD (>= 10).
side *stringFutures direction: long benefits if price rises; short benefits if price falls.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

pm_quote Prediction-market quote

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 (omitte…

ParameterTypeDescription
outcomeExternalMarketId *stringCase-sensitive outcome / market id.
slug *stringEvent slug.
source *stringSource slug (e.g. kalshi, polymarket).
stakeMusd *numbermUSD to stake (> 0).
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
bankrollMusdnumberOptional bankroll in mUSD for the advisory suggested stake.
forecastProbabilitynumberOptional own probability that the selected side wins (0-100 exclusive) for advisory edge sizing.
sidestringWhich side of the binary outcome to back. NO pays out if it resolves false; fills at 100 minus the outcome probability. Omitted = yes.

spot_quote Spot quote

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
coinId *stringCoin UCID (e.g. '1' = BTC).
quantity *numberAmount of the base coin (> 0).
side *stringSpot side: buy increases the coin balance; sell reduces it.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

place_spot_order Place spot order

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
coinId *stringCoin UCID (e.g. "1" = BTC).
idempotencyKey *stringUnique per intent; reuse replays the original result.
orderType *stringOrder execution type: market, limit, or stop.
quantity *numberBase-coin amount (> 0).
side *stringSpot side: buy spends USDT; sell spends the base coin.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
limitPricenumberUSD/coin — required for limit & stop.
stopPricenumberUSD trigger — required for stop.

cancel_spot_order Cancel spot order

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.

ParameterTypeDescription
orderId *integerYour paper spot order id from list_open_orders.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.

open_futures_position Open futures position

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executio…

ParameterTypeDescription
coinId *stringCoin UCID to open futures for. Use resolve_symbol first.
idempotencyKey *stringUnique per intent; reuse replays the original result.
leverage *numberLeverage multiplier (1-20x).
marginMusd *numberIsolated margin in mUSD (>= 10).
side *stringFutures direction: long benefits if price rises; short benefits if price falls.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
stopLossPricenumberOptional resting stop-loss set atomically at open (USD trigger; fired by the per-minute worker).
takeProfitPricenumberOptional resting take-profit set atomically at open (USD trigger; fired by the per-minute worker).

set_futures_sl_tp Set futures stop-loss / take-profit

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in q…

ParameterTypeDescription
positionId *integerOpen futures position id.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
stopLossPricePositive number sets; null clears; omit = unchanged.
takeProfitPricePositive number sets; null clears; omit = unchanged.

close_futures_position Close futures position

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
idempotencyKey *stringUnique per close intent; reuse replays the original result.
positionId *integerOpen futures position id to close or reduce.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
fractionnumber(0,1] portion to close; omit/1 = full close.

open_pm_position Open prediction-market position

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 mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.

ParameterTypeDescription
idempotencyKey *stringUnique per PM-open intent; reuse replays the original result.
outcomeExternalMarketId *stringCase-sensitive outcome or market id returned by discovery.
slug *stringPrediction-market event slug.
source *stringPrediction-market source slug, e.g. kalshi or polymarket.
stakeMusd *numbermUSD stake (>= 10).
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
forecastProbabilitynumberOPTIONAL. 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 yo…
provenanceobjectOptional self-reported provenance (WHAT RAN). No trust: the server stamps policy versions + providerVerified itself. Any block (even {}) makes the artifact schemaVersion 2.
sidestringWhich side of the binary outcome to back. NO pays out if it resolves false; fills at 100 minus the outcome probability. Omitted = yes.
thesisstringOptional one-line thesis for this decision (max 280 characters).

report_pm_opportunity Report a non-opened PM opportunity

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…

ParameterTypeDescription
kind *stringabstained = 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.
agentTraceobjectOptional private trace metadata stored in the caller's ledger.
cohortobjectOpportunity-cohort breadth (frozen into the artifact).
decisionIdstringNon-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.
forecastProbabilitynumberYour OWN forecast probability (1-99). REQUIRED for forecast_only; optional for other kinds. Never echo the market price.
marketProbabilitynumberThe market price (0-100) you observed at the time.
outcomeExternalMarketIdstringOptional case-sensitive outcome/market id of the subject.
provenanceobjectOptional self-reported provenance (WHAT RAN). No trust: the server stamps policy versions + providerVerified itself. Any block (even {}) makes the artifact schemaVersion 2.
reasonCodestringShort structured reason (e.g. 'no_edge', 'stale_data').
runIdstringYour own run id for grouping.
slugstringOptional subject event slug.
sourcestringOptional subject market source slug (e.g. kalshi).

pm_data_overview Cross-venue prediction-market statistics

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 methodol…

ParameterTypeDescription
fiatstringFiat currency code for monetary figures (default usd).

pm_data_sources Prediction-market venue methodology and coverage

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.

ParameterTypeDescription
fiatstringFiat currency code for monetary figures (default usd).

pm_data_sources_health Prediction-market venue freshness and health

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.

pm_data_events Search prediction markets across all venues

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 up to five outcomes, with current outcomes ahead of terminal result rows when an event still has live quotes, plus the full outcome count. Use pm_data_event for all outcomes and full evidence. Also returns referenceProbability when present (C…

ParameterTypeDescription
fiatstringFiat currency code for monetary figures (default usd).
limitintegerMax rows (1-50, default 20).
offsetintegerPagination offset (default 0).
qstringOptional search text.
sortstringOptional sort key.
sourcestringOptional venue filter: polymarket, kalshi, rothera, limitless, smarkets, manifold, metaculus, predictit, futuur, myriad, forecastex, or gemini.
statusstringStatus filter: open (default), closed, or all. Without it the API's newest-first list starts with long-closed markets.

pm_data_event Get prediction-market event detail

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 size-capped weighted median Yes probability across matched real-money venues, weighted by open interest or else liquidity as weightBasis states, with venueCount and spreadPoints and methodologyVersion — quote all three together, venues disagree and the spread…

ParameterTypeDescription
slug *stringEvent slug on that venue.
source *stringVenue slug: polymarket, kalshi, rothera, limitless, smarkets, manifold, metaculus, predictit, futuur, myriad, forecastex, or gemini.
detailstringResponse detail: bounded summary (default) or untouched full record.
fiatstringFiat currency code for monetary figures (default usd).

pm_data_whales Get latest prediction-market whale trades

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.

ParameterTypeDescription
limitintegerMax rows (1-50, default 10).

pm_data_whale_wallets Explore prediction-market whale wallets

Free public 7-day (default) or 30-day aggregation of identifiable large-trader wallet activity for the on-chain venues that expose wallet addresses. Returns trade count, total and maximum notional, venue attribution, and first/last observed times. An absent wallet does not prove absent trading: anonymized venues and unavailable feeds are excluded. This is market context, not a wallet identity guarantee or recommendation. No API key required.

ParameterTypeDescription
limitintegerMax wallets (1-50, default 10).
sourcestringRestrict results to one wallet-address venue.
windowstringObserved aggregation window (default 7d).

pm_data_whale_wallet Inspect one prediction-market whale wallet

Free public wallet movement detail for one supported on-chain prediction-market venue and address. Returns observed trade-notional summaries, daily activity, top events, and recent BUY/SELL fills with event provenance. CoinRithm flow fields are matched-trade observations; optional provider-reported positions/PnL context is separate and may carry its own availability and as-of markers. Absence of a row is not proof of inactivity. No API key required.

ParameterTypeDescription
source *stringSupported wallet-address venue.
wallet *stringFull walletAddress from pm_data_whales or pm_data_event, or address from pm_data_whale_wallets. The shortened wallet display is not an address.

pm_data_disagreements Cross-venue disagreement clusters

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 size-cap…

ParameterTypeDescription
fiatstringFiat currency code for monetary figures (default usd).
limitintegerMax clusters (1-25, default 3).
maxSnapshotAgeMinutesnumberRequire both matched events' probability come from a price snapshot captured within this many minutes.
minDivergencenumberFloor (points, 0-100) on whichever metric the active sort ranks by.
offsetintegerPagination offset (default 0).
requirePricedbooleanDefault 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.
sortstringRanking: 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).
sourceKindstringPass 'market' to restrict both sides of every pair to real-money market venues (excludes forecast/play-money venues like Metaculus/Manifold).
statusstringPass 'open' to require BOTH matched events be currently open.

pm_data_calibration Per-venue market-price calibration

Free public per-venue market-price calibration scorecard. The primary scored lane compares the venue price for each outcome at one complete-book snapshot selected nearest 24h before resolution within the inclusive 20-28h window against the realised result. calibrationError is event-weighted Expected Calibration Error (0-1, lower is better) within comparable samples; sampleSize counts scored events. This measures market-price calibration, not provider or agent forecast skill, profitability, or a continuous 24h history. Venues below minSample (currently 30 scored events) appear in `pending`. The…

pm_data_canonical Canonical cross-venue event identity

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/flipped/unknown, NEVER price-inferred — plus confidence and provenance basis) and an append-only judgment lineage (created/member_added/member_removed/merged, newest first). It also carries `consensus`: the current cross-venue reference pro…

ParameterTypeDescription
cursorintegerList mode only: pagination cursor — pass the previous response's pagination.nextCursor.
keystringUUID or slug of one canonical event. Omit to list active canonicals.
limitintegerList mode only: max rows (1-200, default 50).

pm_data_volume_history Global prediction-market volume trend

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…

pm_data_price_history Prediction-market outcome price history

Free public native venue price history for ONE outcome of an event: the Yes leg of a binary market, else the first live outcome. The response names it in `outcome`. Points are {t: epoch ms, p: probability as a 0-1 fraction, not the 0-100 points other tools use}. Polymarket and Kalshi only: other venues return points: [], which means not served here, not no trading. interval is a lookback range and the venue picks the spacing; the result is evenly sampled to maxPoints (first and last kept) with the raw pointCount. No API key required.

ParameterTypeDescription
slug *stringEvent slug on that venue.
source *stringVenue slug, as in pm_data_events rows.
intervalstringLookback range (default 1w).
maxPointsintegerPoints to return, 2-1000 (default 200).

pm_data_orderbook Prediction-market outcome order book

Free public live order book for one outcome of an event (the same outcome pm_data_price_history reads, or outcomeExternalMarketId). bid, ask, midpoint and level prices are 0-1 fractions, not 0-100 points. Each side is cut to its best `depth` levels as served, with the full level counts in bidLevels/askLevels. Polymarket and Kalshi only; orderBook: null is valid (venue not served, no resting orders, or a selected outcome book older than 10 s). This is fetch-time depth, not an executable quote: use pm_quote for that. No API key required.

ParameterTypeDescription
slug *stringEvent slug on that venue.
source *stringVenue slug, as in pm_data_events rows.
depthintegerLevels per side, 1-50 (default 10).
outcomeExternalMarketIdstringVenue market id of another outcome on the event (from pm_data_event).

pm_data_resolved Resolved prediction markets archive

Free public archive of definitively resolved events across all venues, newest settlement first. Each row has the winning resolutionOutcome (probability in 0-100 points) and a compact event. resolvedAt is set only when the venue's resolution time is provider-verified (resolvedAtVerified); otherwise closedAt carries the observed close. Pass year (and optionally month) for one calendar slice. minVolume keeps substantial markets; meta.totalResolved is then null. No API key required.

ParameterTypeDescription
fiatstringFiat currency code for monetary figures (default USD).
limitintegerRows, 1-100 (default 10); up to 200 when year is set.
minVolumenumberLifetime-volume floor (default 0, no floor).
monthintegerCalendar month 1-12; needs year.
offsetintegerPagination offset (default 0).
sourcestringVenue slug, as in pm_data_events rows.
yearintegerCalendar year slice. Required when month is set.

pm_data_expiring Open prediction markets expiring soon

Free public list of OPEN events whose endDate falls within the next `days` (default 7), soonest first, across all venues. Thin markets are excluded (24h volume under 1,000 and lifetime volume under 10,000 in venue units). Rows are compact events plus expiresInMs (milliseconds from the response to endDate). endDate is the venue's scheduled end, not a settlement guarantee. No API key required.

ParameterTypeDescription
daysintegerLookahead window in days, 1-30 (default 7).
fiatstringFiat currency code for monetary figures (default USD).
limitintegerRows, 1-100 (default 10).
offsetintegerPagination offset (default 0).
sourcestringVenue slug, as in pm_data_events rows.

pm_data_surprises Biggest resolved prediction-market surprises

Free public surprise index: resolved binary markets whose winner was priced under 50 (of 100) about 24 hours before settlement, lowest T-24h winner probability first. surprise.t24hProbability and surprise.t7dProbability are the WINNING outcome's probability in 0-100 points (t7d is often null). Multi-strike ladders and markets without provider resolution are excluded. window filters by resolution recency. No API key required.

ParameterTypeDescription
fiatstringFiat currency code for monetary figures (default USD).
limitintegerRows, 1-100 (default 10).
offsetintegerPagination offset (default 0).
sourcestringVenue slug, as in pm_data_events rows.
windowstringResolved within this window (default all).

get_crypto_movers Top 24h crypto movers (universe scan)

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), get_market_context (sentiment, related markets) and get_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 sy…

ParameterTypeDescription
directionstringScan direction (default gainers).
limitintegerRows to return, 1-100 (default 20).

instrument_markets Prediction-market strike ladders on an instrument

Free public strike ladders: the prediction-market contracts written on one crypto, TradFi or index price (for example, will BTC be above $X at time T), grouped by expiry and settlement source, one ladder per venue series, soonest expiry first. Contract probability, bid and ask are venue prices in 0-100 points, never CoinRithm forecasts; tradedRecently:false is not a live price. Each ladder names its settlement source and referenceRelation (explained once in referenceNotes); observation is at_time or touch. No live price is included: reference names the series to read. Venue outcome ids are omi…

ParameterTypeDescription
id *stringCoin slug such as bitcoin (the slug of a get_crypto_movers row, not its numeric coinId), or a ticker such as AAPL or SPX.
type *stringcoin (id = coin slug), tradfi (catalog ticker), index (SPX, NDX), macro (none yet).
detailstringsummary (default) or the untouched record with venue outcome ids.
horizonstringExpiry window (default all).
includeShortTermbooleantrue adds up to 20 short-term up/down markets.
limitintegerLadders to return, 1-200 (default 10).

tradfi_references TradFi reference prices

Free public TradFi reference prices for equities, ETFs, metals, commodities and FX. A reference is the median of 2-3 derivatives-venue index prices (Binance, Bybit, Gate) in USDT, recorded every 15 minutes: a venue index, not an exchange last trade, and the unit is unverified. live is a near-real-time overlay (null when unavailable); freshness is collection time. Omit ticker to page the catalog (latest, 24h/7d change, 24h range, live, key fundamentals). Pass ticker for one instrument with venue constituents, SEC fundamentals, corporate events and history over window, sampled to maxPoints. No A…

ParameterTypeDescription
assetClassstringList only: one asset class.
limitintegerList only: rows, 1-250 (default 25).
maxPointsintegerDetail only: history points, 2-1000 (default 100).
offsetintegerList only: pagination offset (default 0).
tickerstringCatalog ticker such as AAPL or XAU. Omit to list.
windowstringDetail only: history window (default 24h).

crypto_price Crypto price for one coin

Free public price for one coin by slug (for example bitcoin): price in fiat and USD, 24h change, high and low, market cap and rank, 24h volume, and freshness. priceUpdatedAt is when the live price was last written; priceStale:true means it is older than priceStaleAfterHours (72), a last known price, not a live one. marketCapSuspect flags a market cap CoinRithm does not trust. price is null for a coin with no live price. fiatApplied:false means the fiat code is not tracked and the values are USD. candles adds bars over that range, merged to at most maxPoints. coinId is the id get_candles and ge…

ParameterTypeDescription
slug *stringCoin slug such as bitcoin or tether-usdt (the slug of a get_crypto_movers row).
candlesstringAdd bars over this range: 1H (1-minute bars), 1D, 1W, 1M, 3M or 1Y (daily).
fiatstringCurrency code such as EUR or JPY (default USD).
maxPointsintegerWith candles: bars to return, 2-400 (default 24).