Riskstate 1.5.0
БесплатноБез исполняемых скриптовНе проверенPre-trade risk API for crypto trading agents. Returns exposure limits, allowed actions, and policy constraints for BTC/USD and ETH/USD from 30+ real-time…
от riskstate187 установок в других каталогахОб этом скилле
RiskState — Pre-Trade Risk Layer for Crypto
What it does
Returns dynamic risk permissions for BTC/USD and ETH/USD before capital is deployed. A deterministic policy engine computes how much exposure is allowed based on 30+ real-time signals across macro, on-chain, derivatives, and DeFi health. Applicable to spot, perpetual futures (perps), and DeFi borrowing.
The response tells you:
- max_size_fraction: Maximum exposure as fraction of portfolio (0.0–1.0). For spot: amount to deploy. For perps: max notional exposure (divide by your leverage for margin).
- allowed_actions / blocked_actions: What MAY and MUST NOT be done (enum tokens)
- risk_flags: Adverse conditions the engine sees (context; the binding limits are in
blocked_actionsandmax_size_fraction) - binding_constraint: Which cap is limiting and why
- policy_level: 1–5 summary label (informational — use
exposure_policyfor enforcement)
What it does NOT do
- No trade signals, no entry/exit prices, no predictions
- No portfolio allocation advice
- No order execution or routing
- No historical data or backtesting
This is a risk governor, not a trading oracle. The assessment is USD-denominated.
When to call
- Before opening or sizing positions — check permissions first
- Periodically during holds — every 5 min for active trading, every 4h for holding
- After significant market moves — cache invalidates after 60s (
ttl_secondsin response)
Authentication
Request a free API key at https://riskstate.ai (email only). You will receive a key with the rs_live_ prefix. Set it as the RISKSTATE_API_KEY environment variable and pass it as a Bearer token:
Authorization: Bearer $RISKSTATE_API_KEY
Binding precedence
When consuming the response, agents MUST evaluate fields in this order:
exposure_policy.blocked_actions— actions the agent MUST NOT take. If it containsNEW_TRADES, ABORT new entriesrisk_flags.structural_blockers— context for the decision, not a stop signal (see below)exposure_policy.reduce_recommended— reduce exposure if trueexposure_policy.max_size_fraction— maximum position sizeexposure_policy.max_leverage— maximum leverage allowedexposure_policy.direction_bias— advisory direction context (NEUTRALby default; not a signal)policy_level— informational summary only, do not use for enforcement
risk_flags.structural_blockers is context, not a stop signal: it names the adverse conditions the engine sees (for example EXTREME_FEAR or ETF_OUTFLOW). What the engine treats as binding is already in blocked_actions and max_size_fraction. Two flags carry their own instruction: DEFI_LIQUIDATION_RISK (reduce the position) and SQUEEZE_RISK (no leverage).
Decision rules by policy level
policy_level |
Summary | Key constraints |
|---|---|---|
| 1 (BLOCK Survival) | No new positions | blocked_actions: [NEW_TRADES, ...], max_leverage: "0x" |
| 2 (DEFENSIVE) | New positions up to max_size_fraction, no leverage |
allowed_actions: [REDUCED_SIZE_ENTRY, DCA, ...], blocked_actions: [LEVERAGE_GT_1X, AGGRESSIVE_LONG, ...], max_leverage: "1x" |
| 3 (CAUTIOUS) | DCA with R:R >2:1 | blocked_actions: [LEVERAGE, ALL_IN, ...], max_leverage: "1x" |
| 4 (GREEN Selective) | Trade with confirmation | max_leverage: "1.5x" |
| 5 (GREEN Expansion) | Full operations | max_leverage: "2x" |
policy_level is a convenience label. Always check exposure_policy fields for actual constraints.
Failure modes
| Condition | Agent behavior |
|---|---|
stale_fields contains core indicators (price, funding, rsi) |
Downgrade conviction. Data integrity compromised. |
data_quality_score < 70 |
Treat as degraded. Reduce position sizes by 50%. |
data_quality_score < 50 |
Treat as unreliable. Do not open new positions. |
confidence_score < 0.5 |
Signals conflict heavily. Prefer WAIT over action. |
| HTTP 500 or timeout | Assume worst case (BLOCK). Retry after 60s. |
cached: true + stale_fields non-empty |
Re-request after cache TTL (60s) for fresh data. |
Security
API host: All API calls go to https://api.riskstate.ai (the /v1/* endpoints). The https://riskstate.ai domain is the landing page only — no API endpoints are served there.
API keys: All keys have the rs_live_ prefix and are rate-limited to 60 req/min. Store your key in the RISKSTATE_API_KEY environment variable. Do not hardcode keys in source code.
Example requests
Minimal (BTC)
curl -X POST https://api.riskstate.ai/v1/risk-state \
-H "Authorization: Bearer $RISKSTATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"asset": "BTC"}'
Detailed (with scoring breakdown)
curl -X POST https://api.riskstate.ai/v1/risk-state \
-H "Authorization: Bearer $RISKSTATE_API_KEY" \
-H "Content-Type:
Установить Riskstate 1.5.0 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Riskstate 1.5.0?
Pre-trade risk API for crypto trading agents. Returns exposure limits, allowed actions, and policy constraints for BTC/USD and ETH/USD from 30+ real-time signals. Spot, perpetual futures (perps), and DeFi borrowing aware.
Как установить скилл Riskstate 1.5.0?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Riskstate 1.5.0 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic