Ito Basket Compare
Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.
- Skill ID
- affaan-m/ecc/ito-basket-compare
- Publisher
- affaan-m
- Repository
- ecc
- Installs
- 0
- Files
- 1
- Synced
- Sep 23, 2026
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
affaan-m/ecc/ito-basket-compareInstalls these files- SKILL.md
What this skill tells the agent
Itô Basket Compare
Use this skill for requests such as “compare this basket with my research,” “basket vs watchlist,” “run a gap analysis,” or “find conflicts and stale assumptions.” It compares a basket, theme, or market set with user-provided or explicitly selected context. It is read-only and never recommends or executes a trade.
Non-negotiable boundaries
- Do not advise the user to buy, sell, hold, hedge, lever, allocate, or size.
- Do not prepare or submit an order, trade, purchase, reservation, or RFQ.
- Do not run
ecc ito find: despite its name, it submits an authenticated RFQ. - Do not claim that
ecc ito statusreturns basket data; it reads RFQ and procurement status. Do not useecc ito evalsfor basket comparison. - Do not use private documents, financial context, memory, or account data unless the user explicitly identifies the source for this comparison.
- Never print, echo, log, persist, or expose an API key, device token, session token, or secret. Never put credentials in arguments, files, or chat.
- If an operation could change external state, stop with
UNSUPPORTED_OPERATION. A later confirmation cannot turn this read-only skill into an execution skill.
Inputs and access
Accept either a pasted basket or an explicitly authorized read-only source. The minimum basket input is a stable basket_id or basket label plus one or more underliers. Each underlier should contain underlier_id, label, event or claim, and any weight/probability supplied by the source. The comparison target must be user-provided or explicitly selected; request missing material instead of searching private stores broadly.
Record provenance for every input:
source_type:user_provided,public, orito_authenticatedsource_uri: a non-secret URL/identifier, ornullfor pasted materialretrieved_at: UTC RFC 3339 time at retrievalas_of: source observation/publication time, ornullwhen unknownfreshness_status:fresh,stale, orunknown
Never label anonymous product data ito_authenticated; use public. ECC's real CLI/MCP surface does not expose a basket-read command: the CLI supports login, validation-only auth, find, status, and evals; MCP exposes ito_auth, ito_find, and ito_status. Therefore authentication success proves identity only, not basket-data availability. Prefer the documented public product-data routes when they satisfy the comparison; otherwise ask the user to paste/export the basket or use a documented keyed read with the minimum scope.
The canonical product-data surfaces are:
- Anonymous, rate-limited GET routes at
https://itomarkets.com, including/api/baskets/bootstrap,/api/baskets/{basket_id}/bootstrap, and/api/markets/hot. These are valid live product reads without a private key. - The keyed developer API at
https://itomarkets.com/api/v1. Send a configured public API key only asAuthorization: Bearer <key>to that exact HTTPS origin. Basket reads useGET /baskets,GET /baskets/{basket_id}, and their documented GET-only child routes and requirebaskets:read. Market lookup usesGET /markets/search,GET /markets/{market_id}, and documented GET-only market-data child routes and requiresmarkets:read. Never use a write scope, dashboard automation key, cookie, or compute device credential as a substitute. - The official Python SDK package
ito-markets, imported asito, for typed basket and market reads. Before using it, record the installed version and verify the requested method, response type, origin, and required scope. Do not install or upgrade it without confirmation.
Use an anonymous route when it supplies the basket, underliers, and current quote fields needed by the comparison. Use the SDK or keyed API only for a documented field absent from public data. Validate the response contract before comparison and record the endpoint, response Date, source observation timestamp, access mode, SDK version when applicable, and cache headers.
The verified anonymous catalog source is the GET-only endpoint https://itomarkets.com/api/baskets/bootstrap?stream=1. Basket detail uses https://itomarkets.com/api/baskets/{basket_id}/bootstrap?stream=1. Require HTTP 200, contractVersion: ito.public_basket_read.v1, and a parseable generated_at. Require a baskets array for catalog responses; require basket, underlyers, charts, metrics, and commentary objects for detail responses. Record the URL, response Date, generated_at, Cache-Control, Age, Last-Modified, and any x-ito-edge-cache value. Treat an edge stale marker as stale provenance even when generated_at is recent. Do not send credentials to this public endpoint, follow cross-origin redirects, or silently accept a changed contract version.
First-run authentication handoff
Resolve a concrete basket-read source and its authentication contract before requesting authentication. The public catalog/detail endpoints require no login and are sufficient for comparisons whose required fields they contain. If no authenticated basket-read source/tool is configured, use public or pasted input and do not request compute credentials.
ecc ito auth --json is an optional, validation-only compute identity probe. It does not start login and cannot unlock basket reads. Use it only when the user explicitly requests compute-account identity validation in addition to the basket comparison; never present it as basket-source authentication.
For a concrete authenticated basket source whose documented contract explicitly uses the canonical Itô device credential (the public /api/v1 does not):
- Run
ecc ito auth --jsononly if that source contract requires the same identity. This is validation-only and never starts login. - On missing, expired, or confirmed revoked credentials, pause and return
AUTH_REQUIREDorAUTH_REVOKED. Tell the user to runecc ito login; it performs device authorization, opens the verification page by default, and stores the device token in macOS Keychain.ecc ito login --no-browsersuppresses the browser handoff. ECC itself performs no browser automation. - Preserve a secret-free resume summary containing the originating task/agent, user request, selected input identifiers, and completed read-only steps.
- After the user reports completion, return to the originating agent and run
ecc ito auth --jsononce more. Resume only the original read-only request; never broaden scope because login succeeded.
ITO_API_KEY may be forwarded by compute auth only when already configured. Do not read or display its value. The canonical Itô client is a separately installed, currently unpublished dependency configured by an explicit absolute ECC_ITO_CLI_EXECUTABLE; ECC does not discover it through PATH. If absent, return AUTH_REQUIRED with installation guidance from ito-compute, without inventing a successful auth result.
Deterministic normalization and comparison
For the same normalized input and the same explicit comparison time, produce the same output.
- Copy inputs; never mutate source objects. Normalize text with Unicode NFKC, trim it, collapse internal whitespace, and use case-folded text only for matching. Preserve display text.
- Convert timestamps to UTC RFC 3339. Treat missing/unparseable
as_ofasnullwithfreshness_status: unknown; never substitute the current time. Reject non-finite numbers and probabilities outside[0,1]. Do not infer missing weights. - Deduplicate only exact normalized
underlier_idvalues. If duplicate records disagree, retain the first record after provenance ordering and add a conflict; do not silently merge facts. Sort underliers by normalizedunderlier_id, then label. Sort sources bysource_type,source_uri,as_of, andretrieved_at, withnulllast.
More from affaan-m
Use this skill in a project
Open any RiverX project, search the Skills panel for affaan-m/ecc/ito-basket-compare, and install it in one click.
