Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
hood-traders: single-file landing, deploy configs, SEO plumbing
nirholas0253bd6c813c
diff --git a/robinhood/hood-traders/README.md b/robinhood/hood-traders/README.mdindex 3b859af5c..a7e78fe30 100644--- a/robinhood/hood-traders/README.md+++ b/robinhood/hood-traders/README.md@@ -15,6 +15,21 @@ swaps, hard risk caps, and a live decision-journal dashboard.> misconfigured risk cap. Start in paper mode. Use a wallet you can afford to lose. You are> responsible for every transaction this software signs on your behalf.+## Website++The site in [`docs/`](./docs) is served at **https://nirholas.github.io/hood-traders/**. The+fleet is a top-down **radar**: each agent is a blip, and as the sweep passes one it reveals that+agent's strategy, live P&L, win rate and open position in the read-out panel. Click any blip or+roster row to lock focus. The fleet shown is a paper-mode demo with synthetic P&L, clearly+labelled; the strategy edge/failure copy mirrors the live `strategy.meta`. Zero external+requests, works from `file://`.++Deploy your own copy (publishes the `docs/` folder as a static site):++[](https://deploy.workers.cloudflare.com/?url=https://github.com/nirholas/hood-traders)+[](https://app.netlify.com/start/deploy?repository=https://github.com/nirholas/hood-traders)+[](https://vercel.com/new/clone?repository-url=https://github.com/nirholas/hood-traders)+Built on [`hoodchain`](../robinhood-chain-sdk) — the Robinhood Chain (chain ID 4663) TypeScriptSDK for Stock Tokens, Chainlink quotes, Uniswap v3 swaps, USDG, and launchpad watchers.`hoodkit`/`hood-js` (the wave-2 convenience wrappers) had not shipped at the time this packagediff --git a/robinhood/hood-traders/docs/404.html b/robinhood/hood-traders/docs/404.htmlnew file mode 100644index 000000000..e68c6b199--- /dev/null+++ b/robinhood/hood-traders/docs/404.html@@ -0,0 +1,39 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8" />+<meta name="viewport" content="width=device-width, initial-scale=1" />+<title>404 · hood-traders</title>+<meta name="robots" content="noindex" />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' fill='%230a0b0b'/><circle cx='16' cy='16' r='11' fill='none' stroke='%23e2e6e2' stroke-width='1.4'/><circle cx='16' cy='16' r='5.5' fill='none' stroke='%23e2e6e2' stroke-width='1'/><path d='M16 16 L26 9' stroke='%23e2e6e2' stroke-width='1.4'/></svg>" />+<style>+ *{margin:0;padding:0;box-sizing:border-box}+ :root{--bg:#0a0b0b;--ph:#e2e6e2;--mid:#6a706b;--line:rgba(226,230,226,.30);+ --mono:ui-monospace,"SFMono-Regular","Menlo","Consolas",monospace;+ --sans:"Helvetica Neue","Inter","Arial",system-ui,sans-serif}+ body{background:var(--bg);color:var(--ph);font-family:var(--sans);min-height:100svh;+ display:flex;align-items:center;justify-content:center;padding:32px}+ body::before{content:"";position:fixed;inset:0;pointer-events:none;+ background:repeating-linear-gradient(0deg,rgba(226,230,226,.02) 0 1px,transparent 1px 3px);opacity:.7}+ body::after{content:"";position:fixed;inset:0;pointer-events:none;+ background:radial-gradient(120% 90% at 50% 40%,transparent 55%,rgba(0,0,0,.55) 100%)}+ .w{max-width:520px;position:relative;z-index:2}+ .n{font:600 11px/1 var(--mono);letter-spacing:.3em;text-transform:uppercase;color:var(--mid);+ display:flex;align-items:center;gap:12px;margin-bottom:24px}+ .n::after{content:"";flex:1;height:1px;background:var(--line)}+ h1{font:700 clamp(56px,16vw,130px)/.85 var(--sans);letter-spacing:-.04em}+ p{margin-top:18px;color:#b7bcb7;font-size:18px;line-height:1.5;max-width:44ch}+ a{display:inline-block;margin-top:28px;border:1px solid var(--ph);color:var(--ph);text-decoration:none;+ font:600 12px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;padding:15px 22px;transition:background .25s,color .25s}+ a:hover{background:var(--ph);color:var(--bg)}+</style>+</head>+<body>+ <div class="w">+ <div class="n">404 · off the scope</div>+ <h1>404</h1>+ <p>No return on this bearing. The page you swept for isn't in the fleet, nothing painted a blip here.</p>+ <a href="/hood-traders/">← back to the radar</a>+ </div>+</body>+</html>diff --git a/robinhood/hood-traders/docs/_headers b/robinhood/hood-traders/docs/_headersnew file mode 100644index 000000000..8ccd12762--- /dev/null+++ b/robinhood/hood-traders/docs/_headers@@ -0,0 +1,7 @@+/*+ X-Content-Type-Options: nosniff+ Referrer-Policy: strict-origin-when-cross-origin+ Permissions-Policy: geolocation=(), microphone=(), camera=()+ X-Frame-Options: SAMEORIGIN+/*.html+ Cache-Control: public, max-age=0, must-revalidatediff --git a/robinhood/hood-traders/docs/index.html b/robinhood/hood-traders/docs/index.htmlindex 29bb68c9f..38528a028 100644--- a/robinhood/hood-traders/docs/index.html+++ b/robinhood/hood-traders/docs/index.html@@ -1,125 +1,631 @@<!doctype html><html lang="en"><head>- <meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <title>hood-traders — autonomous trading agents for Robinhood Chain</title>- <meta name="description" content="A framework and runnable fleet of autonomous agents that trade Robinhood Chain memecoins and watch Stock Token premium/discount — including an optional bring-your-own-key LLM strategist (Claude, OpenAI, Groq, or OpenRouter). Real risk caps, real signed swaps, live decision journal." />- <link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%271%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%236d5ef8%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%232fd0e0%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2716%27%20r%3D%2713%27%20fill%3D%27url(%23g)%27%2F%3E%3C%2Fsvg%3E" />- <link rel="stylesheet" href="style.css" />+<meta charset="utf-8" />+<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />+<title>hood-traders, a fleet on the radar</title>+<meta name="description" content="A framework and runnable fleet of autonomous agents that trade Robinhood Chain memecoins and watch Stock Token premium against Chainlink. Real risk caps, real signed swaps, a live P&L radar. Paper mode is the default." />+<link rel="canonical" href="https://nirholas.github.io/hood-traders/" />+<meta name="theme-color" content="#0a0b0b" />+<meta property="og:type" content="website" />+<meta property="og:title" content="hood-traders, the trading-agent radar" />+<meta property="og:description" content="Autonomous agents as blips on a rotating sweep. Each pass reveals a strategy and its P&L. Robinhood Chain memecoins + Stock Token premium, hard risk caps, paper mode by default." />+<meta property="og:url" content="https://nirholas.github.io/hood-traders/" />+<meta name="twitter:card" content="summary_large_image" />+<meta name="twitter:creator" content="@nichxbt" />+<meta name="twitter:title" content="hood-traders, a fleet on the radar" />+<meta name="twitter:description" content="A fleet of autonomous trading agents for Robinhood Chain, revealed by a rotating radar sweep. Real risk caps, live P&L, paper mode by default." />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' fill='%230a0b0b'/><circle cx='16' cy='16' r='11' fill='none' stroke='%23e2e6e2' stroke-width='1.4'/><circle cx='16' cy='16' r='5.5' fill='none' stroke='%23e2e6e2' stroke-width='1'/><path d='M16 16 L26 9' stroke='%23e2e6e2' stroke-width='1.4'/><circle cx='22' cy='12' r='1.6' fill='%23e2e6e2'/></svg>" />+<script type="application/ld+json">+{"@context":"https://schema.org","@type":"SoftwareApplication","name":"hood-traders","applicationCategory":"DeveloperApplication","operatingSystem":"Node.js >= 20","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"A framework and runnable fleet of autonomous agents that trade Robinhood Chain (4663) memecoins and watch Stock Token premium/discount against Chainlink. Real quotes, real risk caps, real signed swaps, a live P&L dashboard. Paper mode is the default.","softwareVersion":"0.2","author":{"@type":"Person","name":"nirholas","url":"https://x.com/nichxbt"},"downloadUrl":"https://www.npmjs.com/package/hood-traders","codeRepository":"https://github.com/nirholas/hood-traders"}+</script>+<style>+ :root{+ --bg:#0a0b0b; --ph:#e2e6e2; --mid:#6a706b;+ --line:rgba(226,230,226,.14); --line2:rgba(226,230,226,.30);+ --mono:ui-monospace,"SFMono-Regular","JetBrains Mono","Menlo","Consolas",monospace;+ --sans:"Helvetica Neue","Inter","Arial",system-ui,sans-serif;+ --ease:cubic-bezier(.16,1,.3,1);+ --unit:clamp(14px,1.12vw,18px);+ }+ *{margin:0;padding:0;box-sizing:border-box}+ html{-webkit-text-size-adjust:100%}+ body{background:var(--bg); color:var(--ph); font-family:var(--sans);+ font-size:var(--unit); line-height:1.5; overflow-x:hidden;+ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility}+ ::selection{background:var(--ph); color:var(--bg)}+ a{color:inherit}+ .mono{font-family:var(--mono); font-feature-settings:"ss01","zero"}+ .pos::before{content:"▲"; font-size:.44em; vertical-align:.28em; margin-right:.16em}+ .neg::before{content:"▼"; font-size:.44em; vertical-align:.28em; margin-right:.16em}++ /* CRT scanline + vignette, pure CSS */+ body::before{content:""; position:fixed; inset:0; z-index:9999; pointer-events:none;+ background:repeating-linear-gradient(0deg,rgba(226,230,226,.02) 0 1px,transparent 1px 3px); opacity:.7}+ body::after{content:""; position:fixed; inset:0; z-index:9998; pointer-events:none;+ background:radial-gradient(120% 90% at 50% 32%, transparent 55%, rgba(0,0,0,.55) 100%)}++ header.top{position:sticky; top:0; z-index:70; background:var(--bg);+ border-bottom:1px solid var(--line); display:flex; align-items:stretch; justify-content:space-between}+ header.top .brand{display:flex; align-items:center; gap:11px; padding:0 clamp(16px,4vw,40px);+ font:700 15px/1 var(--sans); letter-spacing:-.02em; height:54px}+ header.top .brand svg{width:20px;height:20px}+ header.top .brand svg circle,header.top .brand svg path{fill:none;stroke:var(--ph);stroke-width:1.3}+ header.top nav{display:flex}+ header.top nav a{display:flex; align-items:center; padding:0 clamp(12px,2vw,22px);+ font:600 10px/1 var(--mono); letter-spacing:.2em; text-transform:uppercase; color:var(--mid);+ text-decoration:none; border-left:1px solid var(--line); transition:background .25s,color .25s}+ header.top nav a:hover{background:var(--ph); color:var(--bg)}+ @media(max-width:760px){header.top nav a:not(.gh){display:none}}++ section{position:relative; z-index:1; padding:clamp(48px,7vh,88px) clamp(16px,5vw,64px);+ border-bottom:1px solid var(--line)}+ .eyebrow{font:600 11px/1 var(--mono); letter-spacing:.3em; text-transform:uppercase;+ color:var(--mid); display:flex; align-items:center; gap:12px; margin-bottom:22px}+ .eyebrow::after{content:"";flex:1;height:1px;background:var(--line)}+ .eyebrow .n{color:var(--ph)}+ h2{font:700 clamp(26px,4.2vw,54px)/1 var(--sans); letter-spacing:-.03em}+ .lede{max-width:62ch; font-size:clamp(15px,1.5vw,20px); line-height:1.45; color:#b7bcb7}++ /* ================= HERO / RADAR ================= */+ #scope{padding:0; position:relative; z-index:1}+ .scopewrap{display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,440px);+ min-height:100svh; align-items:stretch}+ @media(max-width:960px){.scopewrap{grid-template-columns:1fr; min-height:auto}}+ .radarcell{position:relative; display:flex; align-items:center; justify-content:center;+ padding:clamp(20px,4vw,56px); border-right:1px solid var(--line); overflow:hidden}+ @media(max-width:960px){.radarcell{border-right:0; border-bottom:1px solid var(--line); min-height:88svh}}+ .radarhold{position:relative; width:min(100%,640px); aspect-ratio:1/1}+ canvas#radar{width:100%; height:100%; display:block}+ .rtitle{position:absolute; left:clamp(20px,4vw,56px); top:clamp(20px,4vw,44px); z-index:3; pointer-events:none}+ .rtitle .k{font:600 10px/1 var(--mono); letter-spacing:.3em; text-transform:uppercase; color:var(--mid)}+ .rtitle h1{font:700 clamp(30px,4.6vw,60px)/.95 var(--sans); letter-spacing:-.035em; margin-top:12px; max-width:12ch}+ .rmeta{position:absolute; left:clamp(20px,4vw,56px); bottom:clamp(18px,4vw,40px); z-index:3;+ font:500 11px/1.7 var(--mono); color:var(--mid); letter-spacing:.03em; pointer-events:none}+ .rmeta b{color:var(--ph); font-weight:700}+ .demoflag{display:inline-block; margin-top:9px; font:600 9.5px/1 var(--mono); letter-spacing:.16em;+ text-transform:uppercase; color:var(--mid); border:1px solid var(--line2); padding:5px 9px}++ /* the read-out panel: driven by the sweep */+ .panel{border-left:0; display:flex; flex-direction:column; justify-content:center;+ padding:clamp(28px,4vw,52px) clamp(20px,3vw,44px); background:var(--bg); position:relative}+ @media(max-width:960px){.panel{border-top:0}}+ .panel .lockbar{position:absolute; top:16px; right:clamp(20px,3vw,44px); font:600 9px/1 var(--mono);+ letter-spacing:.2em; text-transform:uppercase; color:var(--mid); display:flex; align-items:center; gap:8px}+ .panel .lockbar .lb{width:6px;height:6px;border-radius:50%;background:var(--mid)}+ .panel.locked .lockbar .lb{background:var(--ph)}+ .agid{font:600 11px/1 var(--mono); letter-spacing:.22em; text-transform:uppercase; color:var(--mid);+ display:flex; align-items:center; gap:10px}+ .agid .st{width:7px;height:7px;border-radius:50%;background:var(--ph)}+ .agid.cool .st{background:transparent;border:1.5px solid var(--mid)}+ .agid.alert .st{background:var(--ph);animation:pp 1s steps(1) infinite}+ @keyframes pp{50%{opacity:.3}}+ .strat{font:700 clamp(28px,3.4vw,42px)/1 var(--sans); letter-spacing:-.03em; margin:14px 0 4px}+ .stratsub{font:500 12px/1.4 var(--mono); color:var(--mid); letter-spacing:.02em}+ .pnl{display:flex; align-items:baseline; gap:8px 16px; margin:26px 0 4px; flex-wrap:wrap}+ .pnl .big{font:700 clamp(38px,5.2vw,62px)/.9 var(--sans); letter-spacing:-.04em; font-variant-numeric:tabular-nums; white-space:nowrap}+ .pnl .usd{font:600 14px/1.3 var(--mono); color:var(--mid)}+ .kv{display:grid; grid-template-columns:1fr 1fr; gap:1px; margin-top:24px; border:1px solid var(--line); background:var(--line)}+ .kv .c{background:var(--bg); padding:13px 14px}+ .kv .c .k{font:600 9px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--mid)}+ .kv .c .v{font:700 15px/1.1 var(--sans); margin-top:7px; font-variant-numeric:tabular-nums}+ .panel .edge{margin-top:22px; border-top:1px solid var(--line); padding-top:16px}+ .panel .edge .r{margin-bottom:12px}+ .panel .edge .r:last-child{margin-bottom:0}+ .panel .edge .rk{font:600 9px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--mid); margin-bottom:5px}+ .panel .edge .rv{font-size:13.5px; line-height:1.45; color:#b7bcb7}+ .fade{transition:opacity .3s var(--ease)}+ .fade.out{opacity:.22}+ .panel .cta{margin-top:24px; display:flex; gap:10px; flex-wrap:wrap; align-items:center}+ .panel .rhint{font:500 10.5px/1.5 var(--mono); color:var(--mid); letter-spacing:.02em}++ .ctl{appearance:none; border:1px solid var(--line2); background:transparent; color:var(--ph);+ font:600 10.5px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; padding:11px 14px; cursor:pointer;+ transition:background .2s,color .2s,transform .2s var(--ease)}+ .ctl:hover{background:var(--ph); color:var(--bg); transform:translateY(-1px)}++ /* ================= ROSTER ================= */+ .rosterwrap{overflow-x:auto; border:1px solid var(--line); margin-top:14px}+ table.roster{width:100%; border-collapse:collapse; min-width:640px}+ table.roster th,table.roster td{text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); white-space:nowrap}+ table.roster th{font:600 9.5px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--mid)}+ table.roster td{font:500 13px/1.3 var(--mono); color:#b7bcb7}+ table.roster td b{color:var(--ph); font-weight:700}+ table.roster tr:last-child td{border-bottom:0}+ table.roster tbody tr{cursor:pointer; transition:background .2s}+ table.roster tbody tr:hover{background:rgba(226,230,226,.05)}+ table.roster tbody tr.on{background:var(--ph)}+ table.roster tbody tr.on td{color:var(--bg)}+ table.roster tbody tr.on td b{color:var(--bg)}+ table.roster .pnlc{text-align:right; font-variant-numeric:tabular-nums}+ .num{text-align:right; font-variant-numeric:tabular-nums}++ /* ================= PIPELINE ================= */+ .pipe{display:grid; grid-template-columns:repeat(6,1fr); border-left:1px solid var(--line); border-top:1px solid var(--line); margin-top:14px}+ @media(max-width:900px){.pipe{grid-template-columns:1fr 1fr 1fr}}+ @media(max-width:520px){.pipe{grid-template-columns:1fr 1fr}}+ .pst{border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:20px 16px 24px; position:relative; transition:background .3s}+ .pst:hover{background:rgba(226,230,226,.04)}+ .pst .no{font:700 11px/1 var(--mono); color:var(--mid)}+ .pst .nm{font:700 16px/1.06 var(--sans); letter-spacing:-.01em; margin:12px 0 8px}+ .pst .ds{font-size:13px; color:#b7bcb7; line-height:1.4}+ .pst.gate{background:rgba(226,230,226,.05)}+ .pst .tag{position:absolute; top:14px; right:14px; font:700 8px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--mid); border:1px solid var(--line2); padding:4px 6px}++ /* ================= STRATEGIES ================= */+ .strats{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px}+ @media(max-width:820px){.strats{grid-template-columns:1fr}}+ .scard{border:1px solid var(--line2); padding:22px 22px 24px}+ .scard .h{display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap}+ .scard .nm{font:700 20px/1 var(--sans); letter-spacing:-.02em}+ .scard .tag{font:600 9px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--mid); border:1px solid var(--line2); padding:5px 8px}+ .scard .lab{font:600 9px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--mid); margin:18px 0 6px}+ .scard .txt{font-size:14px; line-height:1.5; color:#b7bcb7}+ .scard .txt.fail{color:#9a9f9a}++ /* ================= RISK / KILL ================= */+ .grid2{display:grid; grid-template-columns:1fr 1fr; gap:clamp(26px,4vw,64px); align-items:start}+ @media(max-width:900px){.grid2{grid-template-columns:1fr; gap:30px}}+ .caps{border-top:1px solid var(--line2); margin-top:8px}+ .caps .c{display:grid; grid-template-columns:1fr auto; gap:14px; padding:14px 2px; border-bottom:1px solid var(--line); align-items:baseline}+ .caps .c .k{font:600 13px/1.3 var(--sans)}+ .caps .c .k small{display:block; font:500 11px/1.3 var(--mono); color:var(--mid); margin-top:3px}+ .caps .c .v{font:700 14px/1 var(--mono); text-align:right}+ .kill{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px}+ @media(max-width:640px){.kill{grid-template-columns:1fr}}+ .kcard{border:1px solid var(--line2); padding:18px}+ .kcard .h{font:700 12px/1 var(--mono); letter-spacing:.06em; text-transform:uppercase; margin-bottom:9px}+ .kcard .b{font-size:13.5px; color:#b7bcb7; line-height:1.45}+ .kcard .b code{font-family:var(--mono); font-size:12px; color:var(--ph)}++ .code-block{border:1px solid var(--line2); background:#050606; color:var(--ph); padding:18px 20px;+ font:500 12.5px/1.85 var(--mono); position:relative; overflow-x:auto; white-space:pre}+ .code-block .c{color:var(--mid)}+ .code-block .p::before{content:"$ "; color:var(--mid)}+ .copy{position:absolute; top:11px; right:11px; appearance:none; border:1px solid var(--line2);+ background:transparent; color:var(--ph); font:600 10px/1 var(--mono); letter-spacing:.14em; padding:7px 10px; cursor:pointer; transition:background .2s}+ .copy:hover{background:rgba(226,230,226,.12)}+ .btns{display:flex; flex-wrap:wrap; gap:12px; margin-top:26px}+ .btn{appearance:none; text-decoration:none; border:1px solid var(--ph); color:var(--ph); background:transparent;+ font:600 12px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; padding:15px 22px; cursor:pointer;+ transition:background .25s,color .25s,transform .25s var(--ease)}+ .btn:hover{background:var(--ph); color:var(--bg); transform:translateY(-2px)}+ .btn.solid{background:var(--ph); color:var(--bg)}+ .btn.solid:hover{background:transparent; color:var(--ph)}++ .warn{border:1px solid var(--line2); padding:18px 20px; margin-top:26px; font-size:13.5px; line-height:1.5; color:#b7bcb7}+ .warn b{color:var(--ph)}++ footer{padding:clamp(36px,6vh,64px) clamp(16px,5vw,64px); display:flex; flex-wrap:wrap;+ justify-content:space-between; gap:20px; align-items:flex-end}+ footer .big{font:700 clamp(28px,6vw,64px)/.9 var(--sans); letter-spacing:-.03em}+ footer .meta{font:500 12px/1.7 var(--mono); color:var(--mid); text-align:right}+ footer a{text-decoration:none; border-bottom:1px solid var(--line2); transition:border-color .2s}+ footer a:hover{border-color:var(--ph)}++ .rise{opacity:0; transform:translateY(20px); transition:opacity .8s var(--ease),transform .8s var(--ease)}+ .rise.in{opacity:1; transform:none}+ @media(prefers-reduced-motion:reduce){.rise{transition:none}.agid.alert .st{animation:none}}+</style></head><body>- <nav class="topnav">- <div class="brand"><span class="dot"></span>hood-traders</div>- <div class="links">- <a href="index.html" class="active">Overview</a>- <a href="architecture.html">Architecture</a>- <a href="strategies.html">Strategies</a>- <a href="quickstart.html">Quickstart</a>- <a href="https://github.com/nirholas/hood-traders" target="_blank" rel="noopener">GitHub ↗</a>- </div>++<header class="top">+ <div class="brand">+ <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4"/><path d="M12 12 L20 7"/></svg>+ hood-traders+ </div>+ <nav aria-label="Sections">+ <a href="#roster">Roster</a>+ <a href="#pipeline">Pipeline</a>+ <a href="#strategies">Strategies</a>+ <a href="#risk">Risk</a>+ <a class="gh" href="https://github.com/nirholas/hood-traders">GitHub</a></nav>+</header>- <div class="wrap">- <section class="hero">- <div class="hero-badges">- <span class="badge paper">◆ paper mode by default</span>- <span class="badge">Robinhood Chain 4663 / 46630</span>- <span class="badge">Apache-2.0 licensed</span>- </div>- <h1>Autonomous agents that trade Robinhood Chain — with real risk caps and a live decision journal.</h1>- <p class="lede">- A framework + runnable fleet: strategy + wallet + risk budget + journal. Every tick observes- live market data, simulates the fill with a real Uniswap v3 <code>eth_call</code>, checks- every risk cap before anything executes, and journals the decision — trade or refusal —- into SQLite. Four honest strategies ship out of the box, including an optional- bring-your-own-key LLM strategist.- </p>- <div class="cta-row">- <a class="btn primary" href="quickstart.html">Run your own fleet →</a>- <a class="btn secondary" href="architecture.html">See how it works</a>- </div>- </section>-- <section aria-live="polite">- <h2>Live from Robinhood Chain mainnet</h2>- <p>- This ticker calls the public RPC directly from your browser right now — no server, no- SDK bundle, just a raw JSON-RPC POST. It's the same chain the fleet trades on.- </p>- <div id="live-ticker" class="stat-grid">- <div class="stat-tile"><div class="stat-label">Loading…</div><div class="stat-value">—</div></div>- </div>- </section>-- <section>- <h2>A captured paper session</h2>- <p>- The numbers below are a real ≥30-minute paper-mode run against live mainnet data — not a- mockup. <strong>Paper mode</strong>: every fill is simulated against the real Uniswap v3- quote, no funds moved. See the full methodology in <a href="architecture.html">Architecture</a>.- </p>- <div id="session-summary" class="stat-grid">- <div class="state-block">Session data loads from <code>session.json</code> after a captured run — see the repo's <code>tests/e2e/</code> for the harness.</div>+<main>+ <!-- ============ HERO / RADAR ============ -->+ <section id="scope" aria-label="Fleet radar">+ <div class="scopewrap">+ <div class="radarcell">+ <div class="rtitle">+ <div class="k">// autonomous fleet · robinhood chain 4663</div>+ <h1>A fleet you<br>watch by sweep.</h1>+ </div>+ <div class="radarhold">+ <canvas id="radar" aria-label="Radar of trading agents. The sweep reveals each agent's strategy and P&L in the panel."></canvas>+ </div>+ <div class="rmeta">+ fleet equity <b id="mEquity">, </b> · open <b id="mOpen">, </b> · today <b id="mDay" class="mono">, </b><br>+ <span class="demoflag">paper-mode demo fleet · live mode signs real swaps behind hard caps</span>+ </div></div>- <h3>Decision journal excerpt</h3>- <div id="session-journal" class="journal-feed"></div>- </section>-- <section>- <h2>Four strategies, honestly documented</h2>- <div class="card-grid">- <div class="card">- <h3>launch-sniper</h3>- <p class="edge">Enter new launchpad coins that clear round-trip + deployer-concentration filters, exit on TP/stop/time.</p>- <ul>- <li>Most new launches go to zero — negative-carry unless winners cover losers</li>- <li>Honeypots can toggle a sell tax after entry</li>- </ul>++ <aside class="panel" id="panel">+ <div class="lockbar" id="lockbar"><span class="lb"></span><span id="lockTxt">sweep · auto</span></div>+ <div class="agid" id="agId"><span class="st"></span><span id="agName">, </span></div>+ <div class="strat fade" id="agStrat">, </div>+ <div class="stratsub fade" id="agPair">, </div>+ <div class="pnl fade"><span class="big" id="agPnl">, </span><span class="usd" id="agPnlUsd">, </span></div>+ <div class="kv fade">+ <div class="c"><div class="k">Win rate</div><div class="v" id="agWin">, </div></div>+ <div class="c"><div class="k">Trades</div><div class="v" id="agTrades">, </div></div>+ <div class="c"><div class="k">Open position</div><div class="v" id="agPos">, </div></div>+ <div class="c"><div class="k">Status</div><div class="v" id="agStat">, </div></div></div>- <div class="card">- <h3>momentum</h3>- <p class="edge">Volume+price breakouts on already-graduated (liquid) tokens, trailing-stop exits.</p>- <ul>- <li>Breakouts on thin pools are trivially fakeable</li>- <li>No edge in a flat or declining market — trend-only by design</li>- </ul>+ <div class="edge fade">+ <div class="r"><div class="rk">Edge hypothesis</div><div class="rv" id="agEdge">, </div></div>+ <div class="r"><div class="rk">Primary failure mode</div><div class="rv" id="agFail">, </div></div></div>- <div class="card">- <h3>premium-watch</h3>- <p class="edge">Tracks Chainlink-vs-DEX spread on Stock Tokens. <strong>Alerts-only by default</strong> — trading needs explicit eligibility.</p>- <ul>- <li>A premium can be correct — fading it loses on purpose</li>- <li>No shorting primitive — only discounts are ever tradeable</li>- </ul>+ <div class="cta">+ <button class="ctl" id="btnResume" type="button">Resume sweep</button>+ <span class="rhint">Click any blip or roster row to lock focus.</span></div>- <div class="card">- <h3>llm-strategist <span class="badge" style="margin-left:.4em">optional</span></h3>- <p class="edge">Bring your own key (Claude, OpenAI, Groq, or OpenRouter) — an LLM weighs the same on-chain signals launch-sniper checks mechanically, holistically instead of against fixed cutoffs.</p>- <ul>- <li>Disabled unless <code>HOOD_LLM_PROVIDER</code> + <code>HOOD_LLM_API_KEY</code> are set</li>- <li>Stated confidence is not calibrated probability — trades exactly like a rule when it clears the bar</li>- </ul>+ </aside>+ </div>+ </section>++ <!-- ============ ROSTER ============ -->+ <section id="roster">+ <div class="eyebrow"><span class="n">01</span> / FLEET ROSTER · paper equity</div>+ <h2>Eight agents. Four strategies.<br>One risk engine.</h2>+ <p class="lede" style="margin-top:20px">Every agent is a strategy plus a wallet plus a risk budget plus a journal. Each proposes intents; the agent enforces every cap before anything executes, paper or live. Click a row to spotlight it on the radar.</p>+ <div class="rosterwrap">+ <table class="roster" aria-label="Fleet roster">+ <thead><tr><th>Agent</th><th>Strategy</th><th>Pair</th><th class="num">Position</th><th class="num">Trades</th><th class="num">Win</th><th class="num">P&L</th><th>Status</th></tr></thead>+ <tbody id="rosterBody"></tbody>+ </table>+ </div>+ </section>++ <!-- ============ PIPELINE ============ -->+ <section id="pipeline">+ <div class="eyebrow"><span class="n">02</span> / EVERY TICK · six stages</div>+ <h2>A strategy can never<br>bypass the risk gate.</h2>+ <p class="lede" style="margin-top:20px">Each tick runs the same six stages. The strategy only proposes; the agent simulates a real Uniswap v3 <span class="mono">eth_call</span>, prices the fill, and runs the risk engine, which <b>fails closed</b>, before anything executes. Every trade and every refusal lands in the journal.</p>+ <div class="pipe" id="pipe"></div>+ </section>++ <!-- ============ STRATEGIES ============ -->+ <section id="strategies">+ <div class="eyebrow"><span class="n">03</span> / STRATEGIES · edge & failure, stated honestly</div>+ <h2>Documented, not guaranteed.</h2>+ <p class="lede" style="margin-top:20px">Each strategy carries its edge hypothesis and its primary failure mode, exposed at runtime as <span class="mono">strategy.meta</span>, the radar and this page read the live values, never a stale copy.</p>+ <div class="strats" id="strats"></div>+ <div class="warn">+ <b>Most new memecoin launches go to zero.</b> Thin Stock Token pools can move against you, and software has bugs. Paper mode simulates fills against live market data and is the default; live mode requires <span class="mono">HOOD_TRADERS_LIVE=1</span> and a funded key, and Stock Token trading additionally requires an explicit non-US-person eligibility affirmation. There is no accidental-live path.+ </div>+ </section>++ <!-- ============ RISK / KILL ============ -->+ <section id="risk">+ <div class="eyebrow"><span class="n">04</span> / RISK LAYER · enforced, not advisory</div>+ <div class="grid2">+ <div>+ <h2>Every cap fires<br>before execution.</h2>+ <p class="lede" style="margin-top:20px">These are enforced in code, not in a prompt. Every one applies identically in paper and live mode.</p>+ <div class="caps" id="caps"></div>+ </div>+ <div>+ <h2 style="font-size:clamp(24px,3.4vw,40px)">Kill switch.<br>Three triggers.</h2>+ <p class="lede" style="margin-top:20px; font-size:16px">Any one halts new orders across the whole fleet immediately. It never force-sells, stopping new risk and unwinding a position are different decisions.</p>+ <div class="kill">+ <div class="kcard"><div class="h">Signal</div><div class="b"><code>SIGINT</code> / <code>SIGTERM</code>, Ctrl-C or <code>docker compose stop</code>.</div></div>+ <div class="kcard"><div class="h">File</div><div class="b">Drop a <code>KILL</code> file and the fleet halts on the next tick.</div></div>+ <div class="kcard"><div class="h">HTTP</div><div class="b"><code>POST /api/kill</code> from anywhere with reach to the dashboard.</div></div></div></div>- <p><a href="strategies.html">Full strategy docs with live examples →</a></p>- </section>-- <div class="callout danger">- <strong>⚠ Risk disclaimer.</strong> This software can autonomously sign and broadcast real- transactions with real funds in live mode. Trading is risky — most new memecoin launches go- to zero. Paper mode is the default and touches no funds. Read the full disclaimer in the- <a href="https://github.com/nirholas/hood-traders#readme" target="_blank" rel="noopener">README</a>- before funding a wallet.</div>+ </section>- <footer class="footer">- <span>hood-traders · Robinhood Chain autonomous trading fleet</span>- <span>Built by <a href="https://x.com/nichxbt" target="_blank" rel="noopener">nirholas</a> · <a href="https://three.ws" target="_blank" rel="noopener">three.ws</a></span>- </footer>- </div>+ <!-- ============ GET IT ============ -->+ <section id="get">+ <div class="eyebrow"><span class="n">05</span> / RUN THE FLEET</div>+ <div class="grid2">+ <div>+ <h2>Paper mode in<br>five minutes.</h2>+ <p class="lede" style="margin-top:20px">No wallet, no key, no config. Paper mode simulates fills against <b>live</b> market data, real Chainlink prices, real Uniswap v3 quotes. Built on the <span class="mono">hoodchain</span> SDK. Open the dashboard: fleet equity, per-agent P&L, open positions, and the full decision journal.</p>+ <div class="btns">+ <a class="btn solid" href="https://github.com/nirholas/hood-traders#readme">read the docs</a>+ <a class="btn" href="https://www.npmjs.com/package/hood-traders">npm</a>+ <a class="btn" href="architecture.html">architecture</a>+ </div>+ </div>+ <div>+ <div class="code-block"><button class="copy" data-copy="run">COPY</button><span class="c"># paper mode, no funds touched</span>+<span class="p">npm install</span>+<span class="p">npm run build</span>+<span class="p">npm run fleet</span> <span class="c"># dashboard on :4670</span>++<span class="c"># or with Docker, zero local Node</span>+<span class="p">docker compose up --build</span>++<span class="c"># going live requires BOTH:</span>+<span class="c"># HOOD_TRADERS_LIVE=1</span>+<span class="c"># ROBINHOOD_CHAIN_PRIVATE_KEY=0x…</span></div>+ <p class="lede" style="font-size:14px;margin-top:16px">Optional <span class="mono">llm-strategist</span> is bring-your-own-key (Claude, OpenAI, Groq, or OpenRouter) and disabled until configured, it judges launches the other strategies discover, under the exact same risk engine.</p>+ </div>+ </div>+ </section>++ <footer>+ <div class="big">hood-<br>traders</div>+ <div class="meta">+ Robinhood Chain · chain 4663 · hoodchain SDK · Node ≥ 20<br>+ <a href="https://github.com/nirholas/hood-traders">github.com/nirholas/hood-traders</a><br>+ built by <a href="https://x.com/nichxbt">@nichxbt</a> · <a href="https://three.ws">three.ws</a> · not affiliated with Robinhood Markets+ </div>+ </footer>+</main>++<script>+"use strict";+/* =========================================================================+ hood-traders, the radar. Paper-mode demo fleet, synthetic P&L, self-contained.+ Strategy edge/failure text mirrors the real strategy.meta in this repo.+ ========================================================================= */++const STRAT = {+ 'launch-sniper':{ name:'Launch sniper', pair:'memecoins · NOXA / Odyssey',+ edge:'Opening-minutes volatility on new launches is real; discipline, round-trip and deployer-concentration filters, mechanical exits, harvests a slice of it.',+ fail:'Most new launches go to zero, so the stop loss fires often. Negative carry unless the winners cover the losers.'},+ 'momentum':{ name:'Momentum', pair:'graduated memecoins',+ edge:'Tokens that survive to graduation and then break out on price reflect real demand, not launch-day noise.',+ fail:'Breakouts on thin pools are trivially fakeable by one wallet; a price-only signal has no depth check.'},+ 'premium-watch':{ name:'Premium watch', pair:'Stock Tokens vs Chainlink',+ edge:'Stock Token pools are thin and drift from the Chainlink oracle; buying the discount captures the reversion. Alerts-only by default.',+ fail:'A discount can be correct, the DEX reacting to news the ≤24h heartbeat has not caught. No shorting primitive exists.'},+ 'llm-strategist':{ name:'LLM strategist', pair:'launches · numbers-only brief',+ edge:'An LLM weighs the same retention and deployer-concentration signals holistically instead of against fixed cutoffs, and trades only above a confidence threshold.',+ fail:'LLM confidence is not calibrated probability; a confidently wrong verdict trades identically to a confidently right one.'},+};++/* the fleet, synthetic paper equity, clearly a demo */+const FLEET = [+ { id:'SNIPER-01', s:'launch-sniper', pnl:+14.2, usd:+71.0, win:0.38, tr:52, pos:42, stat:'active' },+ { id:'MOMENTUM-01', s:'momentum', pnl:+6.8, usd:+34.1, win:0.51, tr:29, pos:38, stat:'active' },+ { id:'PREMIUM-01', s:'premium-watch',pnl:+2.1, usd:+10.4, win:0.62, tr:11, pos:0, stat:'alerts' },+ { id:'LLM-01', s:'llm-strategist', pnl:+9.3, usd:+46.7, win:0.44, tr:18, pos:31, stat:'active' },+ { id:'SNIPER-02', s:'launch-sniper', pnl:-4.6, usd:-22.9, win:0.33, tr:61, pos:0, stat:'cooldown' },+ { id:'MOMENTUM-02', s:'momentum', pnl:-1.9, usd:-9.4, win:0.47, tr:24, pos:26, stat:'active' },+ { id:'SNIPER-03', s:'launch-sniper', pnl:+21.7, usd:+108.3, win:0.41, tr:47, pos:49, stat:'active' },+ { id:'MOMENTUM-03', s:'momentum', pnl:-7.3, usd:-36.2, win:0.42, tr:33, pos:0, stat:'cooldown' },+];+/* place blips: angle spread around, radius by |P&L| (exposure toward the rim) */+const maxAbs = Math.max(...FLEET.map(a=>Math.abs(a.pnl)));+FLEET.forEach((a,i)=>{+ a.ang = (i/FLEET.length)*Math.PI*2 + (i*0.7 % 0.9) - 0.45; // spread + jitter+ a.rad = 0.34 + 0.56*(Math.abs(a.pnl)/maxAbs); // 0.34..0.90+ a.glow = 0;+});++const REDUCE = matchMedia('(prefers-reduced-motion: reduce)').matches;+let active = FLEET.find(a=>a.id==='SNIPER-03') || FLEET[0];+let locked = false;++/* ---------- canvas ---------- */+const cv = document.getElementById('radar'); const ctx = cv.getContext('2d');+let SZ=0, DPR=1, CX=0, CY=0, R=0;+function resize(){+ const r = cv.getBoundingClientRect();+ DPR = Math.min(devicePixelRatio||1, 2);+ SZ = Math.max(1, Math.floor(Math.min(r.width, r.height)));+ cv.width = Math.floor(r.width*DPR); cv.height = Math.floor(r.height*DPR);+ ctx.setTransform(DPR,0,0,DPR,0,0);+ CX = r.width/2; CY = r.height/2; R = Math.min(r.width,r.height)/2 - 6;+}+addEventListener('resize', resize);++const css = getComputedStyle(document.documentElement);+const PH = css.getPropertyValue('--ph').trim() || '#e2e6e2';++function polar(ang, rad){ return [CX + Math.cos(ang)*R*rad, CY + Math.sin(ang)*R*rad]; }++let sweep = -Math.PI/2, prevSweep = sweep;+function drawStatic(){+ // range rings+ ctx.strokeStyle='rgba(226,230,226,.13)'; ctx.lineWidth=1;+ for(let k=1;k<=4;k++){ ctx.beginPath(); ctx.arc(CX,CY,R*k/4,0,7); ctx.stroke(); }+ ctx.beginPath(); ctx.arc(CX,CY,R,0,7); ctx.strokeStyle='rgba(226,230,226,.28)'; ctx.stroke();+ // crosshairs + bearing ticks+ ctx.strokeStyle='rgba(226,230,226,.10)';+ ctx.beginPath(); ctx.moveTo(CX-R,CY); ctx.lineTo(CX+R,CY); ctx.moveTo(CX,CY-R); ctx.lineTo(CX,CY+R); ctx.stroke();+ ctx.strokeStyle='rgba(226,230,226,.22)';+ for(let d=0;d<360;d+=15){+ const a=d*Math.PI/180, inner = (d%45===0)?R-12:R-6;+ const [x1,y1]=[CX+Math.cos(a)*R, CY+Math.sin(a)*R];+ const [x2,y2]=[CX+Math.cos(a)*inner, CY+Math.sin(a)*inner];+ ctx.beginPath(); ctx.moveTo(x1,y1); ctx.lineTo(x2,y2); ctx.stroke();+ }+}+function draw(t){+ ctx.clearRect(0,0,CX*2,CY*2);+ drawStatic();++ // sweep advance+ if(!REDUCE){ prevSweep = sweep; sweep += 0.016; if(sweep>Math.PI*1.5) { sweep -= Math.PI*2; prevSweep -= Math.PI*2; } }++ // trailing wedge (fan of fading lines behind the leading edge)+ const N=44;+ for(let i=0;i<N;i++){+ const a = sweep - i*0.032;+ const alpha = (1 - i/N)*0.22;+ ctx.strokeStyle = `rgba(226,230,226,${alpha})`;+ ctx.lineWidth = 1;+ ctx.beginPath(); ctx.moveTo(CX,CY); ctx.lineTo(CX+Math.cos(a)*R, CY+Math.sin(a)*R); ctx.stroke();+ }+ // leading edge, bright + glow+ ctx.save();+ ctx.shadowColor='rgba(226,230,226,.6)'; ctx.shadowBlur=8;+ ctx.strokeStyle=PH; ctx.lineWidth=1.6;+ ctx.beginPath(); ctx.moveTo(CX,CY); ctx.lineTo(CX+Math.cos(sweep)*R, CY+Math.sin(sweep)*R); ctx.stroke();+ ctx.restore();++ // blips+ const norm = a => { let x=a; while(x<-Math.PI) x+=Math.PI*2; while(x>Math.PI) x-=Math.PI*2; return x; };+ FLEET.forEach(a=>{+ // ping when the sweep crosses this blip's bearing+ const d0 = norm(prevSweep - a.ang), d1 = norm(sweep - a.ang);+ if(!REDUCE && d0<0 && d1>=0 && (d1-d0) < 0.4){+ a.glow = 1;+ if(!locked) setActive(a, true);+ }+ a.glow *= 0.955;+ const [x,y] = polar(a.ang, a.rad);+ const isAct = a===active;+ // afterglow ring+ if(a.glow>0.02){+ ctx.beginPath(); ctx.arc(x,y, 4 + (1-a.glow)*22, 0, 7);+ ctx.strokeStyle=`rgba(226,230,226,${a.glow*0.5})`; ctx.lineWidth=1; ctx.stroke();+ }+ // dot+ ctx.save();+ if(isAct || a.glow>0.1){ ctx.shadowColor='rgba(226,230,226,.7)'; ctx.shadowBlur=isAct?12:8; }+ ctx.fillStyle = a.stat==='cooldown' ? 'rgba(226,230,226,.45)' : PH;+ ctx.beginPath(); ctx.arc(x,y, isAct?4.6:3.2, 0, 7); ctx.fill();+ if(a.stat==='cooldown'){ ctx.fillStyle='#0a0b0b'; ctx.beginPath(); ctx.arc(x,y,1.5,0,7); ctx.fill(); }+ ctx.restore();+ // active marker: brackets + short label+ if(isAct){+ ctx.strokeStyle=PH; ctx.lineWidth=1.2; const b=9;+ [[-1,-1],[1,-1],[1,1],[-1,1]].forEach(([sx,sy])=>{+ ctx.beginPath();+ ctx.moveTo(x+sx*b, y+sy*b - sy*4); ctx.lineTo(x+sx*b, y+sy*b); ctx.lineTo(x+sx*b - sx*4, y+sy*b);+ ctx.stroke();+ });+ ctx.fillStyle=PH; ctx.font='700 10px '+"ui-monospace,Menlo,monospace";+ const lx = x + (x>CX? -12 : 12), align = x>CX?'right':'left';+ ctx.textAlign=align; ctx.textBaseline='bottom';+ ctx.fillText(a.id, lx, y-10);+ }+ });++ // center hub+ ctx.fillStyle=PH; ctx.beginPath(); ctx.arc(CX,CY,2.4,0,7); ctx.fill();+ ctx.strokeStyle='rgba(226,230,226,.4)'; ctx.lineWidth=1; ctx.beginPath(); ctx.arc(CX,CY,6,0,7); ctx.stroke();++ requestAnimationFrame(draw);+}++/* ---------- panel ---------- */+const $ = id => document.getElementById(id);+const fadeEls = ()=>document.querySelectorAll('.panel .fade');+function setActive(a, animate){+ active = a;+ if(animate){ fadeEls().forEach(e=>e.classList.add('out')); setTimeout(paintPanel, 150); }+ else paintPanel();+ // roster highlight+ document.querySelectorAll('#rosterBody tr').forEach(tr=>tr.classList.toggle('on', tr.dataset.id===a.id));+}+function statWord(s){ return s==='alerts'?'alerts-only':s; }+function paintPanel(){+ const a=active, m=STRAT[a.s];+ const idEl=$('agId'); idEl.className='agid '+(a.stat==='cooldown'?'cool':a.stat==='active'?'alert':'');+ $('agName').textContent = a.id;+ $('agStrat').textContent = m.name;+ $('agPair').textContent = m.pair;+ const p=$('agPnl'); p.textContent = (a.pnl>=0?'+':'')+a.pnl.toFixed(1)+'%';+ p.className='big '+(a.pnl>=0?'pos':'neg');+ $('agPnlUsd').textContent = (a.usd>=0?'+':'−')+'$'+Math.abs(a.usd).toFixed(1)+' paper';+ $('agWin').textContent = Math.round(a.win*100)+'%';+ $('agTrades').textContent = a.tr;+ $('agPos').textContent = a.pos>0 ? '$'+a.pos+' USDG' : 'flat';+ $('agStat').textContent = statWord(a.stat);+ $('agEdge').textContent = m.edge;+ $('agFail').textContent = m.fail;+ fadeEls().forEach(e=>e.classList.remove('out'));+}++/* ---------- roster ---------- */+const rb=$('rosterBody');+FLEET.forEach(a=>{+ const m=STRAT[a.s];+ const tr=document.createElement('tr'); tr.dataset.id=a.id;+ tr.innerHTML=`<td><b>${a.id}</b></td><td>${m.name}</td><td>${m.pair.split(' · ')[0]}</td>+ <td class="num">${a.pos>0?'$'+a.pos:'flat'}</td><td class="num">${a.tr}</td><td class="num">${Math.round(a.win*100)}%</td>+ <td class="pnlc ${a.pnl>=0?'pos':'neg'}">${a.pnl>=0?'+':''}${a.pnl.toFixed(1)}%</td>+ <td>${statWord(a.stat)}</td>`;+ tr.addEventListener('click', ()=>{ locked=true; setLock(true); setActive(a,true); });+ rb.appendChild(tr);+});++/* ---------- lock control ---------- */+function setLock(on){ locked=on;+ document.getElementById('panel').classList.toggle('locked', on);+ $('lockTxt').textContent = on ? 'locked · '+active.id : 'sweep · auto';+}+$('btnResume').addEventListener('click', ()=>setLock(false));++/* ---------- fleet header metrics ---------- */+(function(){+ const eq = 5000 + FLEET.reduce((s,a)=>s+a.usd,0);+ const open = FLEET.filter(a=>a.pos>0).length;+ const day = FLEET.reduce((s,a)=>s+a.usd,0);+ $('mEquity').textContent = '$'+eq.toFixed(0);+ $('mOpen').textContent = open+' / '+FLEET.length;+ const dEl=$('mDay'); dEl.textContent=(day>=0?'+':'−')+'$'+Math.abs(day).toFixed(1);+ dEl.className='mono '+(day>=0?'pos':'neg');+})();++/* ---------- pipeline ---------- */+const PIPE=[+ ['1','Observe','Pull live signals from the hoodchain SDK, Chainlink quotes, pool state, launchpad watchers.', false],+ ['2','Decide','The strategy proposes intents and alerts. It never touches a wallet.', false],+ ['3','Simulate','A real Uniswap v3 QuoterV2 eth_call, no state change, prices the would-be fill.', false],+ ['4','Risk gate','RiskEngine.check(...) fails CLOSED. Over a cap, or unpriceable? Refused.', true],+ ['5','Execute','Paper: record the simulated fill. Live: build → approve → send → await receipt.', false],+ ['6','Journal','Every trade AND every refusal, with the reason, into SQLite.', false],+];+const pipeEl=$('pipe');+PIPE.forEach(p=>{ const d=document.createElement('div'); d.className='pst rise'+(p[3]?' gate':'');+ d.innerHTML=`${p[3]?'<span class="tag">fail closed</span>':''}<div class="no mono">${p[0]}</div><div class="nm">${p[1]}</div><div class="ds">${p[2]}</div>`;+ pipeEl.appendChild(d); });++/* ---------- strategies ---------- */+const stratEl=$('strats');+const tags={ 'launch-sniper':'memecoins', 'momentum':'memecoins', 'premium-watch':'stock tokens · alerts-only', 'llm-strategist':'bring-your-own-key' };+Object.entries(STRAT).forEach(([k,m])=>{ const d=document.createElement('div'); d.className='scard rise';+ d.innerHTML=`<div class="h"><span class="nm">${m.name}</span><span class="tag">${tags[k]}</span></div>+ <div class="lab">Edge hypothesis</div><div class="txt">${m.edge}</div>+ <div class="lab">Primary failure mode</div><div class="txt fail">${m.fail}</div>`;+ stratEl.appendChild(d); });++/* ---------- risk caps ---------- */+const CAPS=[+ ['Fleet daily spend','hard ceiling across all agents','$250 / day'],+ ['Agent position','per-agent, per-token','$50'],+ ['Agent daily spend','per-agent','$100 / day'],+ ['Slippage bound','per-agent','100 bps'],+ ['Cooldown','minimum gap between an agent’s trades','60 s'],+];+const capsEl=$('caps');+CAPS.forEach(c=>{ const d=document.createElement('div'); d.className='c';+ d.innerHTML=`<div class="k">${c[0]}<small>${c[1]}</small></div><div class="v">${c[2]}</div>`;+ capsEl.appendChild(d); });++/* ---------- copy ---------- */+document.querySelectorAll('.copy').forEach(btn=>btn.addEventListener('click',()=>{+ const map={run:'npm install\nnpm run build\nnpm run fleet'};+ navigator.clipboard.writeText(map[btn.dataset.copy]||'').then(()=>{ const t=btn.textContent; btn.textContent='COPIED'; setTimeout(()=>btn.textContent=t,1200); }).catch(()=>{});+}));++/* ---------- reveal ---------- */+const io=new IntersectionObserver(es=>es.forEach(e=>{ if(e.isIntersecting){ e.target.classList.add('in'); io.unobserve(e.target);} }),{threshold:.12});+document.querySelectorAll('.rise').forEach((el,i)=>{ el.style.transitionDelay=(i%6*50)+'ms'; io.observe(el); });- <script src="live-ticker.js" type="module"></script>- <script src="session-loader.js" type="module"></script>+/* ---------- boot ---------- */+resize();+paintPanel();+if(REDUCE){+ // static frame, no sweep motion+ drawStatic();+ FLEET.forEach(a=>{ const [x,y]=polar(a.ang,a.rad); ctx.fillStyle=PH; ctx.beginPath(); ctx.arc(x,y,3.2,0,7); ctx.fill(); });+ const [ax,ay]=polar(active.ang,active.rad);+ ctx.strokeStyle=PH; ctx.beginPath(); ctx.arc(ax,ay,7,0,7); ctx.stroke();+} else {+ requestAnimationFrame(draw);+}+</script></body></html>diff --git a/robinhood/hood-traders/docs/robots.txt b/robinhood/hood-traders/docs/robots.txtnew file mode 100644index 000000000..314aaef23--- /dev/null+++ b/robinhood/hood-traders/docs/robots.txt@@ -0,0 +1,3 @@+User-agent: *+Allow: /+Sitemap: https://nirholas.github.io/hood-traders/sitemap.xmldiff --git a/robinhood/hood-traders/docs/sitemap.xml b/robinhood/hood-traders/docs/sitemap.xmlnew file mode 100644index 000000000..6e5a3ea18--- /dev/null+++ b/robinhood/hood-traders/docs/sitemap.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<urlset xmlns="http://www.sitemap.org/schemas/sitemap/0.9">+ <url><loc>https://nirholas.github.io/hood-traders/</loc><changefreq>weekly</changefreq><priority>1.0</priority></url>+ <url><loc>https://nirholas.github.io/hood-traders/architecture.html</loc><changefreq>monthly</changefreq><priority>0.6</priority></url>+ <url><loc>https://nirholas.github.io/hood-traders/strategies.html</loc><changefreq>monthly</changefreq><priority>0.6</priority></url>+</urlset>diff --git a/robinhood/hood-traders/netlify.toml b/robinhood/hood-traders/netlify.tomlnew file mode 100644index 000000000..22906a37f--- /dev/null+++ b/robinhood/hood-traders/netlify.toml@@ -0,0 +1,4 @@+# Netlify — publish the static site in docs/.+[build]+ publish = "docs"+ command = ""diff --git a/robinhood/hood-traders/vercel.json b/robinhood/hood-traders/vercel.jsonnew file mode 100644index 000000000..6093773c9--- /dev/null+++ b/robinhood/hood-traders/vercel.json@@ -0,0 +1,6 @@+{+ "$schema": "https://openapi.vercel.sh/vercel.json",+ "outputDirectory": "docs",+ "cleanUrls": true,+ "framework": null+}diff --git a/robinhood/hood-traders/wrangler.toml b/robinhood/hood-traders/wrangler.tomlnew file mode 100644index 000000000..307dd5086--- /dev/null+++ b/robinhood/hood-traders/wrangler.toml@@ -0,0 +1,4 @@+# Cloudflare Pages — static deploy of the docs/ site.+# Used by the "Deploy to Cloudflare" button and `wrangler pages deploy docs`.+name = "hood-traders"+pages_build_output_dir = "docs"