Introduction

ChainCapital Documentation

ChainCapital is an autonomous AI capital manager built natively for Robinhood Chain. Instead of trading yourself, you deposit into a vault and a pipeline of AI models handles market analysis, risk validation, position sizing, execution, and rebalancing on your behalf, continuously.

How vaults are structured, how risk is enforced, how strategies are built and shared, and how to integrate with ChainCapital programmatically through the SDK.

Core Concepts

Everything in ChainCapital is composed from three primitives. Understanding how they relate makes the rest of the docs click into place.

Vault

The account that holds capital, tracks AUM and returns, and exposes a single risk profile applied to everything it trades.

Strategy

The signal source — momentum, mean reversion, market making, or arbitrage — that proposes trade ideas to a vault.

Risk Profile

The boundary a vault will never let a strategy cross: drawdown ceiling, leverage cap, and rebalance cadence.

A vault always has exactly one strategy and one risk profile at a time. Changing either is a configuration update on the vault — capital never has to move to switch strategies.

How It Works

Every market signal a vault acts on passes through the same six-stage pipeline, in order. No stage can be skipped, and a rejection at any stage stops the idea before capital is touched.

01

Market Data

Price, depth, funding, and on-chain flow data across Robinhood Chain markets are streamed continuously into the ingestion layer. Every vault subscribes to the feeds relevant to its assigned strategy — nothing is polled, everything is pushed in real time.

02

AI Analysis

Raw signals are scored by an ensemble of models, not a single predictor. Each model votes on directional conviction, expected volatility, and signal decay time. A trade idea only advances if the ensemble agrees above the vault's configured confidence threshold.

03

Risk Engine

Before a single unit of capital moves, the idea is checked against the vault's risk profile — exposure limits, drawdown budget, liquidity depth, and correlation to existing positions. This is the same stage that produces the "Capital Protected" outcome you see in the live demo on the homepage when a setup fails validation.

04

Portfolio Allocation

Approved ideas are sized relative to the vault's current allocation, not in isolation. The allocator solves for the position size that keeps the vault inside its risk budget while still expressing full conviction in high-quality signals.

05

Trade Execution

Orders are routed and executed on Robinhood Chain with slippage and execution-price checks. If the realized price moves outside tolerance mid-execution, the remaining size is re-evaluated by the Risk Engine before it fills.

06

Performance Tracking

Every fill, rebalance, and rejection is logged against the vault's return and risk metrics. This is what powers the vault's live status, AUM, and today's-return figures — the same numbers surfaced in the vault dashboard.

AI Vaults

A vault is a single on-chain account with one strategy and one risk profile. When you deposit, your capital is pooled with the vault's existing AUM and sized into positions according to the vault's current allocation — you are never trading against other depositors, you are participating in the same book.

  • Deposits and withdrawals are processed on Robinhood Chain and reflected in the vault's AUM in real time.
  • Every vault exposes a live status: Scanning Markets, Risk Analysis, Executed, or Optimized — the same states shown in the homepage demo.
  • Performance is tracked per-vault, not per-depositor pool, so returns are transparent and auditable against the vault's trade log.
Risk Engine

The Risk Engine is the only stage in the pipeline that can veto a trade outright. It enforces four limits — drawdown, leverage, volatility tolerance, and rebalance cadence — read from whichever profile the vault is configured with.

ProfileMax DrawdownMax LeverageVolatility BandRebalance
Conservative5%1xLowDaily
Balanced12%2xMediumEvery 6 hours
Aggressive25%4xHighEvery hour

Conservative

Capital preservation first. Tight exposure limits, wide margin of safety, smaller position sizes. Suited for vaults meant to compound slowly with minimal variance.

Balanced

The default profile used by the Momentum AI Vault. Balances participation in trend moves against a firm drawdown ceiling enforced by the Risk Engine.

Aggressive

Maximum expression of high-conviction signals. Wider risk budget, faster rebalancing, and shorter signal-decay tolerance. Built for strategies that rely on speed.

Trade Blocked

When a setup fails validation — excessive volatility, insufficient liquidity, or exposure already at the profile's ceiling — the Risk Engine rejects it before execution. No position is opened and the vault's capital is unaffected. This is the same rejection path visualized as "Capital Protected" in the live trading demo on the homepage.

Portfolio Optimizer

Positions drift from target allocation as prices move. The Portfolio Optimizer runs on the interval defined by the vault's risk profile and trims or adds to positions to bring the vault back to its target exposure — without waiting for a new signal from the strategy.

Every rebalance still passes back through the Risk Engine. A rebalance that would push the vault outside its drawdown or leverage ceiling is resized automatically rather than rejected outright, since rebalancing is a risk-reducing action by default.

Strategy Marketplace

The Strategy Marketplace lists strategies built on top of the ChainCapital SDK, ranked by live, on-chain performance rather than backtests. Copying a strategy creates a new vault configured with that strategy and a risk profile you choose — the original strategy's capital is never touched.

StrategyTypical Risk ProfileDescription
MomentumBalancedFollows confirmed directional trends once multiple AI models agree on strength and duration. This is the strategy behind the Momentum AI Vault featured in the live demo.
Mean ReversionConservativeEnters when price deviates from its statistical baseline and the Risk Engine confirms liquidity is deep enough to exit cleanly if the reversion doesn't play out.
Market MakingConservativeProvides two-sided liquidity within a tight band, capturing spread while the Portfolio Optimizer continuously rebalances inventory back to target.
ArbitrageAggressiveCaptures pricing discrepancies across correlated markets on Robinhood Chain. Latency-sensitive, so it runs with faster rebalance intervals and tighter execution tolerances.
SDK Reference

The SDK is how strategies published in the Strategy Marketplace, and vaults created programmatically, talk to ChainCapital. Install it and create a vault by pairing a strategy with a risk profile.

Install

terminal
SDK
01npm install @chaincapital/sdk

Create and run a vault

vault-strategy.ts
SDK
01import { ChainCapital } from "@chaincapital/sdk";
02
03const vault = await ChainCapital.createVault({
04 strategy: "momentum",
05 risk: "balanced",
06});
07
08await vault.execute();

Deposit, withdraw, and read status

vault-lifecycle.ts
SDK
01await vault.deposit({ amount: 50_000, asset: "USDC" });
02
03const status = await vault.getStatus();
04// { state: 'Scanning Markets', aum: 1_250_000, todaysReturn: 0.0342 }
05
06await vault.withdraw({ amount: 10_000, asset: "USDC" });

Subscribe to vault events

vault-events.ts
SDK
01vault.on("trade", (trade) => {
02 console.log(trade.symbol, trade.side, trade.size);
03});
04
05vault.on("blocked", (reason) => {
06 // Risk Engine rejected a setup before execution
07 console.log(reason);
08});

createVault() options

FieldTypeDescription
strategy"momentum" | "mean-reversion" | "market-making" | "arbitrage"The signal source driving trade ideas for this vault.
risk"conservative" | "balanced" | "aggressive"The risk profile enforced by the Risk Engine for every trade and rebalance.
labelstring (optional)A display name for the vault, shown in the dashboard and Strategy Marketplace.
Architecture

ChainCapital separates signal generation from capital custody. Strategies never hold funds directly — they submit trade ideas to a vault, and only the vault's Risk Engine and execution layer are permitted to move capital on Robinhood Chain.

  • Strategy layer — stateless signal generation, published to the Strategy Marketplace or run privately via the SDK.
  • Vault layer — holds capital, applies the risk profile, and is the only component that authorizes execution.
  • Chain layer — Robinhood Chain settlement, where deposits, withdrawals, and trades are recorded against the vault address.
Security Model

The Risk Engine is not an advisory layer — it is a hard gate. A strategy can propose any trade it wants, but execution only happens if the trade clears the vault's drawdown, leverage, liquidity, and exposure checks. There is no override path that lets a strategy bypass the vault's risk profile.

Every deposit, withdrawal, trade, and rejection is recorded on Robinhood Chain against the vault address, so a vault's history is independently verifiable rather than reported by ChainCapital alone.

FAQ

What is Robinhood Chain?

The settlement layer ChainCapital vaults are built on. Deposits, withdrawals, trades, and rebalances are all recorded there against your vault's address.

Do I choose individual trades?

No. You choose a strategy and a risk profile when a vault is created; the AI pipeline handles every trade decision within those boundaries.

What happens if the AI's signal is wrong?

Losses are bounded by the vault's risk profile — the drawdown ceiling and position sizing exist specifically to limit the impact of any single bad signal, and the Risk Engine can reject a trade outright before it executes.

Can I change a vault's risk profile after depositing?

Yes. Risk profile and strategy are configuration on the vault, not tied to your deposit — updating either takes effect on the vault's next decision cycle.

How is this different from copy trading?

Copy trading replicates another trader's manual actions. ChainCapital vaults run an AI pipeline with an enforced risk gate — the Strategy Marketplace lets you choose which signal source feeds that pipeline, not whose trades to mirror.

More guides and the full API reference are on the way.