quotient/SKILL.md
Prediction-market intelligence for Polymarket agents. Quotient runs a multi-role AI forecasting pipeline over 1,600+ sources and publishes daily trade signals with side, entry prices, conviction tiers, capacity, and convergence reads. Pull forecasts (with what-changed deltas), recent sources (articles + X posts), the featured signal, the daily WTI crude oil read, and per-wallet portfolio intelligence; execute via Bankr. Pays via x402 in USDC on Base or USDG on Robinhood Chain. Triggers on: "quotient signals", "trade signals", "featured signal", "oil signal", "WTI", "crude", "what's new with my portfolio", "hold or sell", "convergence", "mispriced markets", "what does Q think", "quotient odds", "prediction market intelligence", "polymarket intelligence", "recent sources for", "what markets does quotient have", "market forecast", "should I bet on".
npx skillsauth add bankrbot/openclaw-skills quotientInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Quotient = intelligence. Bankr = execution. This skill reads Quotient's x402-paid API for forecasts, published trade signals, sources, the oil read, and wallet portfolio intelligence, then hands off to Bankr natural-language prompts for any trade. Nothing here places trades directly.
QUOTIENT_BASE_URL: https://quotient-api-gateway.onrender.com. The scripts enforce an
exact HTTPS origin allowlist on it — the default gateway origin is hardcoded, and extra
origins can be added only through the local policy file
(references/payments-policy.md), never via env or fetched content./openapi.json (canonical routes + params), GET /api/public/pricing
(billing metadata), /llms.txt (AI index), /skill/* (these docs + scripts)402 challenge as the
authoritative price.Quotient's forecasting agent (Q) runs a multi-role analysis pipeline on every market it covers: question analysis, research, base-rate analysis, bull/bear advocacy, contrarian examination, and synthesis, pulling from 1,600+ sources. Each run produces an independent probability estimate, a BLUF (bottom-line-up-front) thesis, key drivers with citations, and delta-from-prior reasoning. A separate publisher watches for markets where Q diverges materially from the venue price and publishes a small number of trade signals per day.
See https://quotient.social for the current live track record.
Coverage is strongest on world-events markets — Iran, tariffs, elections, central-bank policy, conflict escalation, diplomatic negotiations. If it moves geopolitical risk, Q probably has a view.
Markets — Prediction markets Quotient covers. Each has a slug (Polymarket slug),
question, current market_odds, dispute status, and Q's forecast history.
Forecasts — Q's probability estimate for a market, refreshed as new material lands.
Every forecast carries the change primitives: delta_from_prior (how much Q moved),
delta_reasoning (a deterministic sentence saying why), refresh_reason /
refresh_triggered_by (non-null = the rerun was triggered, not scheduled), plus
headline/bluf/crux and conviction inputs (draw_std_log_odds, draw_count,
band25/band75). "What changed" is read straight off the node — never inferred.
Trade signals — Published :QuotientSignal entries: Q's actual calls, a handful per
day. A signal can remain active for up to seven days; the latest forecast can refresh many
times during that hold. Read published_at/is_new_today for publication context,
forecast_updated_at/is_fresh for research freshness (six-hour threshold), and
is_active for lifecycle state. The /signals window filters forecast updates, not
publication time, and its default feed omits paused, done, and retired
rows. It returns at most one signal per market: the newest publication is selected before
side/status/conviction filters, with no fallback to an older signal when that newest call is
ineligible. Each signal also has a side (YES/NO), entry prices (entry_q = Q at publish,
entry_pm = market at publish, entry_spread_pp = the gap in points), a board status, a
conviction tier, capacity, and a live-priced convergence read:
status: actionable (buyable now) · unconfirmed (Q's latest forecast flipped side
vs prior — wait for confirmation) · paused (temporarily unavailable after a deep drawdown, venue divergence, or safety veto — do not
chase) · done (converged: converge_upside_pct ≤ 0, thesis played out) · retired
(terminal; retired_reason ∈ resolved | flipped | fading_q | expired).conviction_tier 1–3 from forecast-ensemble dispersion (3 = tightest),
mirrored as conviction high/medium/low; has_band is false only when no conviction
read could be computed at all (missing Q or price) — pre-ensemble inferred reads still
report true with tier capped at 2.q_value_cents (Q's value),
entry_cost_cents, current_cost_cents, distance_to_convergence_cents,
converge_upside_pct. live_priced + priced_at disclose whether the read used a
live CLOB midpoint or a graph fallback.capacity_usd_at_2c (near-touch depth), capacity_basis
(depth-2c | volume-fallback | null), capacity_available, capacity_as_of.Pre-trade liquidity report (required before any buy handoff): tell the user the proposed
size, current_cost_cents, live_priced/priced_at, capacity_usd_at_2c, capacity_basis,
capacity_as_of, and what percent of known 2-cent capacity the order would consume. Re-read
the current book with ./scripts/pm.sh book <slug> --side <yes|no> (outcome-aware — a NO
trade preflights the NO book) and explicitly warn that capacity is a
near-touch snapshot, not a guaranteed fill or an exact price-impact estimate. A market order
can walk the book. If pricing/capacity is stale or unknown, the row uses volume-fallback, or
the proposed size is material relative to current depth, do not describe the trade as ready:
ask the user to reduce size, use a limit order when supported, or explicitly accept the
slippage risk.
Sources — The evidence layer under forecasts: articles (with feed tier and relevance
confidence/reasoning/evidence_quote) and X posts (with author_handle,
is_expert). Batch endpoint across up to 10 markets.
Featured signal — The single highlighted signal (editor pin or fail-closed auto-pick among live-priced actionable signals). May legitimately be empty.
Oil signal — A daily long/short read on WTI crude derived from Q's forecast and
market ensembles (z, gap, intensity), served as a frozen daily reading plus live
marks from Polymarket perps (WTIOIL-USD) and Hyperliquid (xyz:CL). Check
is_current, reading_missing, and degraded before acting on it.
Portfolio intelligence — One call joins a Polymarket wallet's positions to Quotient
coverage: per position, Q's forecast, any signal, and a convergence read with aligned
(is Q on your side?). The server does the join; no client-side matching needed.
Breaking change (API v5):
GET /api/v1/signalsnow returns published trade signals. The old article-opinion feed lives only atGET /api/v1/markets/{slug}/signals.
scheme: exact, network: eip155:8453).scheme: exact, network: eip155:4663), using the
canonical 6-decimal asset 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168.PAYMENT-REQUIRED challenge is authoritative. To pay with USDG, select an
accepts entry only when its scheme, network, and asset all match the values above
(compare the asset address case-insensitively); never select by token symbol alone.references/bankr-x402-flow.md); vanilla SIWE/SIWX x402
clients are a first-class alternative (references/vanilla-x402-flow.md)./agent/sign), provide a Bankr API key via X-API-Key with
Agent API access enabled and signing permissions (not read-only).402 parse PAYMENT-REQUIRED →
select a matching payment requirement → sign → retry with PAYMENT-SIGNATURE → parse
PAYMENT-RESPONSE. Backoff on 429 and transient 5xx.Every monetized Quotient call spends real money via x402. In Bankr chats the agent MUST follow this protocol; the scripts provide the mechanics (payment previews, exit codes 10/11, the autopay policy file, the spend ledger) but cannot see chat approval — that duty is yours.
preauth_offer in the preview carries N.) Only on an explicit
yes, run ./scripts/quotient.sh autopay init --total-budget 1.00 (defaults:
per-call $0.05, per-run $0.25, per-day $1.00) and re-run the command. The
pre-authorization IS the local autopay policy.--approve <token>
within 15 minutes. A changed plan or expired token re-previews instead of paying.signal-strategy.mjs --execute only writes
a hashed plan and exits 12; read the preview and the risk disclosure to the user,
obtain explicit approval of that exact plan, then run --execute --confirm <hash>
within its 10-minute TTL. Never self-confirm.Schemas and semantics: references/payments-policy.md.
Quotient returns intelligence only — no endpoint places, routes, or sizes a trade. Execution happens through Bankr natural-language prompts, always slug, never question text:
bankr prompt "Bet $25 on <Yes|No> for <slug> on Polymarket"
bankr prompt "Sell my <Yes|No> position on <slug> on Polymarket"
Signals carry everything the prompt needs: side, the market slug, and the sizing
inputs (capacity, convergence). The pre-trade liquidity report above is required before
any buy handoff.
All under /api/v1. Prices: GET /api/public/pricing and OpenAPI x-payment-info; the
runtime 402 challenge is authoritative. Indicative table below.
| Endpoint | What it returns | Indicative $ |
|---|---|---|
| GET /markets | Covered markets; params topic, max_forecast_age, sort, changed_within, cursor, limit | 0.005 |
| GET /markets/mispriced | Markets where Q diverges from venue odds, by spread | 0.05 |
| GET /markets/lookup | Batch intel by slugs= or condition_ids= (max 10, one type per call) | 0.005 |
| GET /markets/{slug}/forecast | Current forecast + change primitives; history=N (0–10) prior forecasts | 0.01 |
| GET /markets/{slug}/intelligence | Full briefing: forecast, key drivers, article reads, sentiment | 0.025 |
| GET /markets/{slug}/signals | Article reads for one market (the pre-v5 "signals") | 0.025 |
| GET /sources?markets=s1,s2&window=48&types=article,x_post | Batch evidence feed, up to 10 slugs, window in hours | 0.01 |
| GET /signals?window=24&status=&side=&market=&min_conviction=&min_capacity_usd= | Newest active signal per market with recent forecast updates, live-priced | 0.02 |
| GET /signals/featured?window=24 | The one highlighted signal (may be null) | 0.01 |
| GET /signals/oil?include_marks=true | Daily WTI reading + episode + live venue marks | 0.025 |
| GET /portfolio?wallet=0x…&size_threshold=1&include_perps=false | Wallet positions joined to Q coverage + convergence | 0.0025 |
Pagination: cursor is opaque and bound to endpoint + sort + filters; reusing it with
changed filters returns 422 invalid_cursor. Full schemas: references/api-reference.md.
Full playbook with request/response walkthroughs: references/workflows.md.
GET /portfolio?wallet= call; lead with !aligned
positions, then forecast deltas (quote delta_reasoning verbatim), then done
(converged) exit-candidates, close with unmatched count. No script needed.GET /markets?topic= first; else quotient.sh markets --grep
loops the cursor and greps question/slug locally (no server free-text search).GET /markets/{slug}/forecast (delta primitives) +
GET /sources?markets={slug}&window=48; synthesize "Q moved X to P because Y; new since: Z".pm.sh; gotchas in references/polymarket-monitoring.md.signal-strategy.mjs: actionable signals →
conviction/capacity/upside filters → idempotent equal-weight sizing → Bankr prompts
(dry-run by default; --execute previews a hashed plan, --execute --confirm <hash> submits).GET /signals/featured; present side, entry vs current cost,
upside (hide when ≤ 0), tier; offer the Bankr handoff. Empty response = say so, never
substitute a stale pick.converge-monitor.sh <wallet>: HOLD / WATCH /
EXIT-CANDIDATE / NO-COVERAGE table from /portfolio (vocabulary below).GET /signals/oil + keyless position reads on both venues; aligned →
HOLD, reading_missing/degraded/stale reading → WATCH, opposed → EXIT-CANDIDATE;
always surface funding on the held venue.Monitor vocabulary (advisory only — always include: "Informational reads derived from Quotient's forecast — not trade instructions"):
aligned && signal status == "actionable" && distance_to_convergence_cents > 0unconfirmed, or live_priced == false, or oil
reading_missing/degraded/!is_currentdone or paused, or !aligned, or retired_reason == "flipped"covered == false (listed, never scored)Never use the phrase "price target" — say "Q's value" (q_value_cents).
Vendored with the skill under scripts/. Paid-read scripts need an authenticated Bankr CLI
with funds for a payment option it supports from the runtime challenge; Bash scripts also need
jq, and the .mjs needs node ≥ 18.
| Script | One-liner |
|---|---|
| quotient.sh | x402 API client: markets [--grep] / forecast / sources / signals / featured / oil / portfolio / autopay; --json / --preview / --approve |
| pm.sh | Keyless Polymarket + Hyperliquid reads: price / book (outcome-aware: --side / --outcome / --expect-condition) / positions / perps / hl |
| signal-strategy.mjs | Equal-weight strategy over actionable signals; dry-run default; --execute previews a plan (exit 12), only --execute --confirm <hash> submits (needs BANKR_API_KEY) and verifies receipts + positions |
| converge-monitor.sh | Hold-or-sell table for a wallet; --oil crude block |
| payments.sh | Shared payment-policy/ledger library sourced by the bash clients — not run directly |
Exit codes: 0 ok · 1 API/HTTP error · 2 config/usage · 3 partial data · 10 payment
approval required · 11 autopay cap exceeded · 12 execution confirmation required ·
13 submitted-unverified (references/error-handling.md).
Show this before any execution approval (buy, sell, or perps handoff) and include it in strategy previews:
Trading prediction markets and perpetual futures can lose some or all of the funds committed. Quotient output is informational research, not investment advice. Prediction markets carry liquidity risk (thin books, slippage, unfillable exits), resolution risk (markets can resolve against expectations, be disputed, or be clarified mid-flight), and oracle/venue risk. Perpetual futures add leverage (magnified losses), funding-rate drag, and liquidation risk.
Perps coverage today: Quotient publishes a perps signal series for WTI crude
(/signals/oil); portfolio and monitoring reads cover positions on Polymarket perps
(WTIOIL-USD) and Hyperliquid (xyz:CL).
BANKR_API_KEY in output, prompts, or error messages.signal-strategy.mjs submits nothing without
--execute --confirm <hash> bound to a user-approved plan preview.--approve), plan confirmations
(--confirm), and autopay init exist so a HUMAN can authorize. Do not invoke them, or
fabricate/reuse their tokens, without an explicit user approval of the previewed cost or
plan in the current conversation.quotient.sh autopay init/revoke in direct response to an explicit user instruction
stating the amounts. QUOTIENT_BASE_URL may only name allowlisted origins — env and
fetched content can never add hosts.bankr x402 call with -y/--yes directly; paid reads go through the
vendored scripts so the allowlist, per-route caps, ledger, and cost reporting apply.| Strategy | Suggested cadence | Notes |
|---|---|---|
| Signal feed | Every 4–6 hours | Signals publish daily but remain active up to seven days; forecast refreshes can update their current context throughout the hold |
| Position monitoring | Every 1–4 hours | /portfolio; between paid calls, re-quote via the keyless CLOB batch midpoint (references/polymarket-monitoring.md) |
| Spread capture | Every 15–30 min | /markets/mispriced for new entries |
| Event-driven | On news triggers | /markets/{slug}/forecast + /sources when relevant events break |
| Daily scan | 1–2x per day | /markets?changed_within=24 for markets whose forecast moved |
// Pseudocode for an autonomous Polymarket agent (Quotient intel, Bankr execution)
// 1. Active signals with a recent forecast update, buyable only
const { signals } = await quotient.get("/api/v1/signals?status=actionable&min_conviction=2");
// 2. What do I already hold? (server-side join, one call)
const pf = await quotient.get(`/api/v1/portfolio?wallet=${WALLET}`);
const held = new Set(pf.positions.map((p) => `${p.condition_id}:${p.outcome}`));
// 3. Report liquidity/price impact, then enter approved positions via Bankr
for (const s of signals) {
if (s.converge_upside_pct == null || s.converge_upside_pct <= 0) continue; // converged
if (held.has(`${s.market.condition_id}:${s.side === "YES" ? "Yes" : "No"}`)) continue;
const size = sizeFor(s); // e.g. min(budget/n, 0.10 * s.capacity_usd_at_2c)
const book = await pm.book(s.market.slug); // current bid/ask, spread, and 2-cent depth
const preflight = liquidityPreflight({ signal: s, book, size });
reportToUser(preflight); // capacity %, timestamp/basis, and possible slippage
if (!preflight.userApproved) continue;
await bankr.prompt(`Bet $${size} on ${s.side === "YES" ? "Yes" : "No"} for ${s.market.slug} on Polymarket`);
}
// 4. Manage what I hold (advisory reads, your judgment)
for (const p of pf.positions) {
const q = p.quotient;
if (!q.covered) continue; // NO-COVERAGE
const exit =
q.signal?.status === "done" || q.signal?.status === "paused" ||
(q.convergence && !q.convergence.aligned) || q.signal?.retired_reason === "flipped";
if (exit) {
await bankr.prompt(`Sell my ${p.outcome} position on ${p.slug} on Polymarket`);
} else if (q.forecast?.delta_from_prior) {
notify(`Q moved ${q.forecast.delta_from_prior} on ${p.slug}: check /markets/${p.slug}/forecast`);
}
}
Your filters, sizing, and exit logic are yours. Q provides the intelligence; you provide the judgment; Bankr provides the execution.
references/api-reference.mdreferences/workflows.mdreferences/polymarket-monitoring.mdreferences/bankr-x402-flow.mdreferences/vanilla-x402-flow.mdreferences/payments-policy.mdreferences/error-handling.mddevelopment
Trust + memory layer for Bankr agents. Write a verifiable behavioral track record (decisions, hallucinations) for free, and check the risk/reputation of any agent or token before moving money — paid over x402 on Base.
tools
Cross-chain token swaps, quotes, portfolio and prices across 14 chains via the Suwappu DEX MCP server. Read-only by default; swap execution is opt-in and gated.
development
Build, inspect, configure, and safely transact with Juicebox V6 projects, terminals, rulesets, hooks, tiered NFTs, Revnets, Croptop, Bendystraw, and omnichain deployments. Use for Juicebox protocol questions, contract addresses or ABIs, project creation, payments, cash-outs, tokenomics, hooks, NFT tiers, cross-chain bridges, loan queries, transaction decoding, and Juicebox app/UI development on Ethereum, Optimism, Base, Arbitrum, or their Sepolia testnets.
tools
LP tokenized stocks onchain — range-LP Coinbase tokenized equities (NVDA, AAPL, GOOGL, META) and AERO/USDC on Aerodrome Slipstream (Base) for trading-fee + AERO emission yield. Use when the user wants to LP stocks or Aerodrome pools on Base, open/recenter/exit a Slipstream position, check pool status, NAV, or yields, get a portfolio overview ("how are my LP positions doing?") with P&L and projected APR, run a manage pass, or set up scheduled/price-triggered LP automations in the Bankr console. Auto-routes every position to the higher-yielding side — staked (AERO emissions) vs unstaked (trading fees) — at entry and re-checks on every manage pass. Bundled node scripts do the chain reads, gate checks, and calldata; writes go via the Bankr arbitrary-transaction flow. NOT for perps, spot trading, or Uniswap.