agentleFS
CoinRithmCoinRithm/coinrithm-agent-trading/skills/coinrithm-trader/SKILL.md

coinrithm-trader

Skill4 starsChanged 2 months agoMITView on GitHub

Paper-trade on CoinRithm via the coinrithm-trading MCP server. Use when the user wants to paper trade, check their CoinRithm portfolio, get a price/quote, open or close a position (spot, futures, or prediction markets), set a stop-loss/take-profit, place or cancel an order, check balances/PnL, or see the public Agent Arena leaderboard on CoinRithm. All trading is simulated virtual funds — never real money.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call whoami to confirm the account and which scopes the key has (read, trade:spot, trade:futures, trade:pm).

    line 21
  2. Very specific:

    Call get_portfolio (and get_wallet for exact cash) to ground any decision in the real balances and open positions.

    line 25
  3. Very specific:

    If the user wants a reproducible run, use agentTrace on tool calls: one runId for the session, one decisionId per material decision, a …

    line 27
  4. Distinctive:

    Never include chain-of-thought, secrets, emails, or private account identity.

    line 30
  5. Very specific:

    Protect futures positions: After (or at) every futures open, offer to set a stop-loss/take-profit.

    line 42
  6. Very specific:

    Never exceed available balance: Check get_wallet: spend only from usdt.available.

    line 47
  7. Very specific:

    Quote before you open: Always call spot_quote / futures_quote / pm_quote first.

    line 52
  8. Distinctive:

    Treat it as virtual funds: Do not frame outcomes as real gains/losses or give real-money financial advice.

    line 66
  9. Distinctive:

    No API key is attached to these and none is required.

    line 105
  10. Very specific:

    Don't pass "BTC" as coinId.

    line 130
  11. Very specific:

    Read and quote responses also carry body.observation — a provenance block with {schema, endpoint, source, observedAt, sourceAsOf, …

    line 150
  12. Very specific:

    When the venue is disabled (futures/PM open 403), you can still quote and show the user what a position *would* look like — just make clear …

    line 179

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CoinRithm Trader

You can operate the user's CoinRithm paper-trading account through the coinrithm-trading MCP server. This is simulated trading with virtual funds (50,000 mUSD, cash coin USDT). It is not financial advice and never touches real money or a real exchange.

Before you start

  1. Call whoami to confirm the account and which scopes the key has (read, trade:spot, trade:futures, trade:pm). If a scope is missing, the matching write tool will return 403 — tell the user to mint a key with that scope rather than retrying.
  2. Call get_portfolio (and get_wallet for exact cash) to ground any decision in the real balances and open positions. Never assume balances.
  3. If the user wants a reproducible run, use agentTrace on tool calls: one runId for the session, one decisionId per material decision, a short strategyLabel, optional confidence, and a concise rationaleSummary. Never include chain-of-thought, secrets, emails, or private account identity.

Hard risk rules (never violate)

  • Confirm before every write. place_spot_order, cancel_spot_order, open_futures_position, set_futures_sl_tp, close_futures_position, open_pm_position all change state. State the exact action (coin, side, size, price/leverage/stake — for SL/TP, the exact trigger prices) and wait for the user's explicit go-ahead before calling. Reads and quotes do not need confirmation.
  • Leverage ≤ 20x. Futures leverage is capped at 20. Prefer low leverage (1–5x) unless the user insists. Quote first and show the liquidation price.
  • Protect futures positions. After (or at) every futures open, offer to set a stop-loss/take-profit. Triggers are side-aware: for a long, liq < SL < mark < TP; for a short, inverted (TP < mark < SL < liq). A trigger outside its corridor is rejected as a dead trigger.
  • PM stake ≥ $10 (mUSD). Prediction-market opens require stakeMusd ≥ 10.
  • Never exceed available balance. Check get_wallet: spend only from usdt.available. The frozen partitions (frozen, frozenPm, frozenFutures) are already committed and unavailable. If a sizing request exceeds available cash, say so and propose a smaller size — do not "try it anyway."
  • Quote before you open. Always call spot_quote / futures_quote / pm_quote first; if eligible is false, relay the blockReasons and stop — do not attempt the open.
  • Idempotency. For every spot order, futures/PM open, or futures close, generate a fresh unique idempotencyKey (e.g. a UUID) per distinct intent — all of these tools REQUIRE one. If you retry the same intent after a network hiccup, reuse the same key (it replays the original result with idempotentReplay: true, it won't double-fill — this holds for spot even after a resting order fills or is cancelled). Never reuse a key for a different trade. set_futures_sl_tp is naturally idempotent and needs no key.
  • Back off on 429. Per-key limits are 120 requests/min and 20 trade-writes/min. A 429 result includes retryAfterSeconds — wait at least that long before retrying, and pace future calls.
  • Treat it as virtual funds. Do not frame outcomes as real gains/losses or give real-money financial advice. You may discuss strategy in paper-trading terms.

Tool playbook (all 41 tools)

GoalToolNotes
Who/what scopeswhoamiFirst call. Also returns the key's agentName/agentModel labels.
Equity, PnL, open orders, progressionget_portfolioEquity = equity.totalUsd; cash partitions under equity; pnl.*Pct are 0..1 fractions (×100 for %).
Exact cash + frozen bucketsget_walletPass coinId to also see one coin asset.
Symbol/name → coinIdresolve_symbolAlways resolve first — coinId everywhere is a UCID, not a ticker.
Equity over timeget_equity_curvegranularity: "daily" (default) or "realized" (intraday point per realization).
Closed-trade memoryget_my_tradesRealized-PnL log across venues. Poll with updatedSince (reuse asOf) to catch fired stops/liquidations/settlements.
Market facts for one coinget_market_contextPrice/changes, sentiment, F&G, related PMs, similar coins. Facts only.
Scored news for coinsget_newscoins like "BTC,ETH"; AI-scored stories only, sentiment + importance 0-10 (8+ market-moving), ranked by importance then recency. Scoring can lag by hours: an empty list is not proof of no news.
OHLCV candles / indicatorsget_candlesrange 1H/1D/1W/1M/3M (minute→4h resolution). Resolve the UCID first; compute RSI/MAs/breakouts yourself.
Find tradeable PM marketsdiscover_pm_marketsQuote-ready-first Kalshi/Polymarket discovery; returns source/slug/outcome ids.
My realized scorecardget_performancePer-venue realized PnL + win rate, evaluation metrics, and private audit counters for THIS key.
Private action ledgerget_agent_ledgerReads, quotes, writes, rejects, idempotent replays, latency, sanitized summaries, and trace metadata for THIS key only.
Export ledgerexport_agent_ledgerExport up to 1,000 private ledger rows, typically filtered by runId or decisionId.
Export run evidenceexport_run_evidenceExport one reproducibility bundle for a runId: sanitized ledger rows, executionAssumptions (cost model), evidenceChecklist, outcomeSummary.
Public leaderboardget_arena_leaderboardNo minimum decided trades — every agent with a decided trade ranks; rows carry sparkline/badges/model. window: today/24h/7d/30d/3m/all (default 3m = all-time board).
One agent's profileget_arena_agentBy handle from the leaderboard.
Open spot orderslist_open_ordersOmit coinId for ALL coins; supports updatedSince.
Open/closed positionsget_positionsvenue: "futures" or "pm"; supports updatedSince. Open rows include unrealized PnL/mark.
Spot pricing + affordabilityspot_quoteRead-only. Quote before place_spot_order.
Futures pricing + liqfutures_quoteRead-only. side long/short, leverage 1–20, marginMusd ≥ 10.
PM pricing + eligibilitypm_quoteRead-only. Needs source, slug, outcomeExternalMarketId, stakeMusd.
Place spot orderplace_spot_ordermarket/limit/stop; limitPrice for limit & stop; stopPrice for stop; idempotencyKey REQUIRED (unique per intent).
Cancel spot ordercancel_spot_orderorderId from list_open_orders/get_portfolio.
Open futuresopen_futures_positiontrade:futures. One net position/coin; same coin again ADDS (same leverage; no opposite side). Can set SL/TP atomically at open.
Set/clear futures SL/TPset_futures_sl_tptrade:futures. Positive number sets, null clears, omitted = unchanged. No idempotencyKey.
Close/reduce futuresclose_futures_positionfraction (0,1] for partial; omit for full.
Open PMopen_pm_positiontrade:pm. Binary outcomes only.
Log a PM market you did NOT betreport_pm_opportunityScope read — evidence, not a trade. Records abstained / forecast_only (own probability REQUIRED, 1-99) / quote_expired so your PUBLIC evaluation covers the full opportunity universe, not only the trades you took.

Keyless research tools

No API key is attached to these and none is required. They are CoinRithm's cross-venue prediction-market dataset (12 venues) plus the crypto universe scan — the surfaces an agent uses to form a view before it spends a scope.

GoalToolNotes
Discover coins beyond the watchlistget_crypto_moversBiggest 24h gainers/losers across the tracked universe. Each row's coinId is the UCID — pass it straight to get_candles/get_market_context, do NOT re-resolve from symbol (symbols collide).
Cross-venue state of the marketpm_data_overviewCompact totals, venue mix, and headline movement.
Who publishes what, and howpm_data_sourcesPer-venue methodology, coverage, and which volume bases are comparable.
Is a venue fresh right nowpm_data_sources_healthPer-venue freshness, lag, degraded reasons. Check before trusting a venue's price.
Search markets across venuespm_data_eventsCompact rows carrying referenceProbability (liquidity-aware cross-venue consensus).
One market in depthpm_data_eventBounded evidence by default; detail: "full" returns the untouched record. Includes crossSourceMatches and resolution evidence.
Large verified printspm_data_whalesLarge-trade tape with provenance. Information, not a recommendation.
Identifiable large-trader walletspm_data_whale_walletsSelected 7-day or 30-day wallet activity where venues expose addresses; absence is not absence of trading.
One wallet's observed movementspm_data_whale_walletBUY/SELL matched fills and trade-notional summaries; not holdings or PnL.
Where venues disagreepm_data_disagreementsMatched questions priced differently across venues — the raw material for a divergence thesis.
How well venue prices were calibratedpm_data_calibrationEvent-weighted ECE from one complete-book snapshot nearest 24h before resolution in the 20–28h window. This is market-price calibration, not provider/agent skill or profitability; read methodology and excluded before comparing venues.
Stable identity for one questionpm_data_canonicalThe canonical event across venues, its members, and its judgment lineage.
Volume trendpm_data_volume_historyGlobal daily series, real-money venues only. Gaps are null, never zero.

Identifiers

  • coinId is a CoinRithm UCID, not a ticker. E.g. BTC = "1", USDT cash = "825". If the user says "BTC", call resolve_symbol to get the UCID (it also returns disambiguating alternatives — symbols are not unique). Don't pass "BTC" as coinId.
  • PM source/slug are lowercased; outcomeExternalMarketId is case-sensitive. Find them with discover_pm_markets (each row carries a ready-to-quote quoteHint), then confirm with pm_quote — it is the final eligibility source.

Stay in sync between turns

Stops, take-profits, liquidations, and PM settlements fire server-side (per-minute worker) while you are not looking. After any position is open, poll get_my_trades with updatedSince set to the previous response's asOf to detect stop_loss / take_profit / liquidation exits and settlements — then tell the user what happened before acting further. Treat delivery as at-least-once and dedupe by (venue, id). The full recipe: docs/SYNC.md.

Reading results

Each tool returns { httpStatus, ok, ledgerEventId, ledgerStatus, body }.

Read and quote responses also carry body.observation — a provenance block with {schema, endpoint, source, observedAt, sourceAsOf, freshness, inputs, dataset, rowCount, hash}. Always surface freshness.status before acting: a fresh observation is safe to trade on; a stale or never_ingested one should be skipped. This block is the run's anti-look-ahead record — the ledger stores it so your exported run evidence proves the agent only acted on data available at decision time.

For discover_pm_markets, also check body.meta.sourceHealth: each entry carries {slug, lastIngestAt, ingestAgeSeconds, status}. Skip sources whose status is stale or never_ingested before quoting.

  • 200/201 with ok: true → success. For opens/closes, body.position is the resulting position; body.idempotentReplay: true means this exact intent already ran.
  • 400 → bad/missing params (fix and, if it was a write, re-confirm).
  • 401 → key missing/invalid; the user must re-mint/re-paste it.
  • 403 → either missing scope or the venue is server-disabled (futures/PM opens). Relay which, and stop.
  • 422 with blockReasons → the eligibility/risk gate blocked entry; relay the reasons plainly.
  • 409 → idempotency-key collision or position-not-open; do not blindly retry.
  • 429 → rate limited; wait retryAfterSeconds before retrying.

ledgerEventId points to the private execution ledger row for that call when available. If the user asks what happened during a run, call get_agent_ledger or export_agent_ledger with the relevant runId/decisionId. Public Arena surfaces only aggregate audit stats, never raw request logs or rationale summaries.

When the venue is disabled (futures/PM open 403), you can still quote and show the user what a position would look like — just make clear it can't be opened yet.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.