---
title: "Paper strategy sandbox"
description: "Compare two paper strategies with synthetic prices and no account."
canonical: "https://chainagent.ai/sandbox"
---

# Chainagent paper strategy sandbox

Run a paper strategy through Chainagent's simulation engine using 30 fixed synthetic daily ETH-USD prices, January 1–30, 2026. Every request starts with a new paper balance. The sandbox needs no credentials, reads no live market or customer data, and saves no trades. These sample results describe the fixture alone.

## Run a simulation

[Run buy and hold](https://chainagent.ai/api/v1/sandbox/simulate?strategy=buy_and_hold) or [run weekly purchases](https://chainagent.ai/api/v1/sandbox/simulate?strategy=dca). Each link returns JSON. Both examples start with 10,000 paper USD.

```sh
curl --fail 'https://chainagent.ai/api/v1/sandbox/simulate?strategy=dca&starting_cash_usd=20000'
```

Change one input at a time. Repeat the request with the same inputs to reproduce its result.

| Query parameter | Accepted values |
| --- | --- |
| `strategy` | `buy_and_hold` buys on the first day. `dca` budgets 1,000 paper USD for purchases every seven days while cash is available. Default: `buy_and_hold`. |
| `starting_cash_usd` | Whole paper USD amounts from 1,000 to 100,000. Default: 10,000. |

## Read the result

`final_equity_usd` values the simulated holdings at the last fixture price and adds the remaining cash. `total_return_pct` compares that equity with starting cash. `max_drawdown_pct` tracks the largest fall from a previous peak. The engine applies its standard 0.1% fee and 0.05% slippage. A rejected input returns HTTP 422 with the error code `invalid_sandbox_input`.

The [API reference](https://chainagent.ai/api) lists public research endpoints. The [OpenAPI specification](https://chainagent.ai/openapi.json) gives the sandbox response schema.
