Paper-test an execution spec
strategy_spec_paperRun an execution spec v0 over the last N days of real Hyperliquid candles and get its paper report card (POST /strategy/spec/paper). Free, no key, nothing stored; limited to 6 calls a minute per caller. The spec is validated first (same errors as strategy_spec_validate), then evaluated bar by bar: rules on bar close, fills per schedule.fill, stops checked inside the bar, a trailing stop that never loosens, no look-ahead. Every fill pays the fee and the slippage at its order size (the spec's size table) and every held interval pays funding, so the headline is net_return_bps (basis points of NAV). Returns {ok, spec_hash, card}: card.summary (trades, win_rate_pct, gross_return_bps, fees_bps, slippage_bps, funding_bps, net_return_bps, max_drawdown_bps, exposure_pct, refused_entries), cost_to_edge (round trip over the median bar move; above 0.5 'costs eat the edge at this size', a warning), size_sweep (the same spec at several order sizes, so you can see the size where costs eat the edge), edge_gone_at_usd, window, notes and the per-trade list. Candles are capped at 5000 bars, so a 1m spec covers days not months. Never an annualised return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days | |
| spec | Yes | The execution spec v0 object (spec_version 0) | |
| sizes | No | Optional: order sizes in USD for the size sweep (default: the rows of the spec's slippage table) | |
| nav_usd | No | Optional: account value in USD (default 10000); sets the order sizes of a nav_weight or risk_per_stop spec |