- Rust engine: real bootstrap/wiring preflight (guardrail-agent), execution layer (retry/router/pre-trade/post-trade/reconciliation), guardrail-doctor diagnostics with allowlist-drift guard. - guardrail-cli: extracted pure helpers into util.rs (split in progress). - 6 Track-2 skills + ensemble; python-lab analytics (regime/drawdown/montecarlo/dossier/ensemble/journal/seed); clients (ts/py/go/mcp/langchain/web-lite/proof-verifier); alert relay; scenarios; helm/k8s/compose; docs. - dashboard/vercel.json + docs/VERCEL_DEPLOY.md for Vercel deployment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
70 lines
5.8 KiB
JSON
70 lines
5.8 KiB
JSON
{
|
|
"scenario": "risk_off",
|
|
"as_of": "2026-06-14T00:00:00Z",
|
|
"inputs": {
|
|
"fear_greed": { "value": 21, "value_classification": "extreme_fear" },
|
|
"global": { "total_market_cap_usd": 1965000000000, "btc_dominance_pct": 55.4 },
|
|
"market_breadth": { "breadth_pct": 29.0, "median_24h_return": -4.1 },
|
|
"indicators": [
|
|
{ "symbol": "BTCB", "rsi": 22.0, "percent_b": 0.06, "atr_pct": 3.1, "note": "oversold (RSI 22, %B 0.06) and on funding alone tempting, but regime overrides — oversold can stay oversold in risk_off" },
|
|
{ "symbol": "WBNB", "rsi": 16.0, "percent_b": 0.02, "atr_pct": 4.6, "note": "RSI 16 near breakdown, price below the lower band -> shrinking tilt; falling knife" },
|
|
{ "symbol": "CAKE", "rsi": 11.0, "percent_b": -0.04, "atr_pct": 5.5, "note": "RSI 11 <= breakdown 12 (rsi_score 0) -> tilt 0, a breakdown not a fadeable dip" },
|
|
{ "symbol": "DOGE", "rsi": 9.0, "percent_b": -0.08, "atr_pct": 6.8, "note": "RSI 9 <= breakdown 12 -> tilt 0, capitulation" },
|
|
{ "symbol": "INJ", "rsi": 13.0, "percent_b": 0.01, "atr_pct": 6.2, "note": "RSI 13 just above breakdown -> rsi_score (50-13)/20 capped, but %B ~0 and risk_off override" }
|
|
],
|
|
"quotes": [
|
|
{ "symbol": "BTCB", "price_usd": 61800.0, "percent_change_1h": -0.9, "percent_change_24h": -3.2, "market_cap_usd": 1225000000000, "volume_24h_usd": 32000000000, "liquidity_usd": 60000000, "safety_score": 99, "security_flags": [] },
|
|
{ "symbol": "WBNB", "price_usd": 538.0, "percent_change_1h": -1.6, "percent_change_24h": -6.0, "market_cap_usd": 77000000000, "volume_24h_usd": 2700000000, "liquidity_usd": 39000000, "safety_score": 96, "security_flags": [] },
|
|
{ "symbol": "CAKE", "price_usd": 2.18, "percent_change_1h": -2.4, "percent_change_24h": -9.4, "market_cap_usd": 630000000, "volume_24h_usd": 200000000, "liquidity_usd": 9000000, "safety_score": 92, "security_flags": [] },
|
|
{ "symbol": "DOGE", "price_usd": 0.110, "percent_change_1h": -3.0, "percent_change_24h": -11.2, "market_cap_usd": 16000000000, "volume_24h_usd": 720000000, "liquidity_usd": 4900000, "safety_score": 84, "security_flags": [] },
|
|
{ "symbol": "INJ", "price_usd": 21.2, "percent_change_1h": -2.6, "percent_change_24h": -9.9, "market_cap_usd": 2100000000, "volume_24h_usd": 250000000, "liquidity_usd": 7000000, "safety_score": 88, "security_flags": [] }
|
|
]
|
|
},
|
|
"computed": {
|
|
"market_regime": "risk_off",
|
|
"regime_reason": "fear_greed 21 <= 30 (also breadth 29 <= 40 and median -4.1 < -2) -> risk_off; reversion is overridden by capital preservation",
|
|
"exposure_multiplier": 0.15,
|
|
"reversion_scores": [
|
|
{ "symbol": "BTCB", "base_score": 0.47, "rsi": 22.0, "percent_b": 0.06, "reversion_tilt": 1.0, "reversion_score": 0.60, "security_penalty": 0.01 },
|
|
{ "symbol": "INJ", "base_score": 0.34, "rsi": 13.0, "percent_b": 0.01, "reversion_tilt": 0.91, "reversion_score": 0.42, "security_penalty": 0.06 },
|
|
{ "symbol": "WBNB", "base_score": 0.41, "rsi": 16.0, "percent_b": 0.02, "reversion_tilt": 0.84, "reversion_score": 0.50, "security_penalty": 0.02 },
|
|
{ "symbol": "CAKE", "base_score": 0.33, "rsi": 11.0, "percent_b": -0.04, "reversion_tilt": 0.0, "reversion_score": 0.22, "security_penalty": 0.04 },
|
|
{ "symbol": "DOGE", "base_score": 0.30, "rsi": 9.0, "percent_b": -0.08, "reversion_tilt": 0.0, "reversion_score": 0.19, "security_penalty": 0.08 }
|
|
],
|
|
"reversion_reason": "Everything is oversold, which looks like a reversion buffet — but in risk_off oversold stays oversold (falling knife). The deepest names (CAKE RSI 11, DOGE RSI 9) are below the breakdown threshold 12 so their tilt is 0; the rest are crushed base scores. No name clears min_score_to_enter 0.65, and the risk_off exposure_multiplier 0.15 caps the budget anyway. Capital preservation outranks reversion: the allocator holds full reserve."
|
|
},
|
|
"decision": {
|
|
"target_portfolio": [
|
|
{ "symbol": "USDT", "weight_pct": 100.0 }
|
|
],
|
|
"rules": {
|
|
"entry": [
|
|
"No new entries in risk_off: exposure_multiplier 0.15 and no name clears reversion_score 0.65.",
|
|
"Deeply-crushed RSI (<= breakdown 12) is treated as a breakdown, not a dip — tilt 0.",
|
|
"Capital preservation outranks reversion: rotate to the USDT reserve and wait for a range to form."
|
|
],
|
|
"exit": [
|
|
"Exit held risk names: reversion_score below min_score_to_hold 0.50 and regime is risk_off.",
|
|
"Rotate proceeds into USDT via TWAP; honour stop_loss 12% and 2.5x ATR.",
|
|
"Stay flat until the regime upgrades out of risk_off."
|
|
]
|
|
},
|
|
"actions": [
|
|
{ "type": "exit", "symbol": "INJ", "side": "sell", "reason": "regime risk_off; reversion_score 0.42 < min_score_to_hold 0.50; oversold but a falling knife, rotate to reserve", "execution": "twap" },
|
|
{ "type": "exit", "symbol": "CAKE", "side": "sell", "reason": "regime risk_off; RSI 11 <= breakdown 12 (tilt 0); the dip became a breakdown", "execution": "twap" },
|
|
{ "type": "no_entry", "reason": "No asset clears min_score_to_enter 0.65 in risk_off; deepest names are below the breakdown threshold; allocator holds full reserve (exposure_multiplier 0.15)" },
|
|
{ "type": "heartbeat", "symbol": "USDT", "side": "buy", "notional_pct": 0.05, "reason": "daily-trade requirement satisfied via minimal heartbeat trade (<= 0.10% NAV) while flat" }
|
|
],
|
|
"risk_policy": {
|
|
"max_position_pct": 18.0,
|
|
"min_stable_reserve_pct": 10.0,
|
|
"max_total_drawdown_pct": 22.0,
|
|
"kill_switch_drawdown_pct": 24.0,
|
|
"throttled": false,
|
|
"kill_engaged": false,
|
|
"note": "In risk_off the strategy refuses to catch a falling knife: the 0.15x multiplier and the breakdown filter leave the book in full reserve regardless of how oversold names look."
|
|
},
|
|
"daily_trade_requirement": { "enabled": true, "satisfied_by": "heartbeat", "trades_today": 1 }
|
|
}
|
|
}
|