AlphaAssay $ test my signal

Validate a signal

Validation is the core product: your signal goes through the full battery and comes back with a structured verdict. Three input shapes are accepted — a returns series, an equity curve, or a trade list. Issue a certificate separately when the result needs a signed, portable artifact.

What do I send to validate a trading signal?

Pick the route that matches what you already have. Each one rejects fields it does not know, so send exactly the minimum body shown:

you haverouteminimum body
per-trade P&L (any backtester export)POST /v1/validate/signal{"trades":[{"pnl":120,"return_pct":0.8}, …]} — at least 5 trades
a timestamped trade logPOST /v1/tradelog{"trades":[{…entry/exit times…}]}
a net-return seriesPOST /v1/cpcv{"returns":[0.004,-0.002, …]}
rules plus price candlesPOST /v1/gauntlet{"spec":{…},"ohlcv_by_symbol":{…}} — the golden specimen shape
a whole parameter sweepPOST /v1/pbo{"returns_matrix":[[…],[…]]} — one row per variant

Optional fields such as fee_bps_per_side or n_trials and the exact schemas are in /openapi.json.

How is the signal tested?

The battery runs the four gate families in order: net edge after realistic costs → deflation for every variant your family has tried → a placebo trial against 500 random twins → capacity and robustness attacks. The verdict names the first gate that killed it.

How do I authenticate the call?

Create an API key at api.alphaassay.com/account (passwordless — a login link lands in your inbox). Then, depending on transport:

REST carries the key as a bearer header — this exact call works as-is with your key and comes back with a real verdict (the example's edge dies after costs):

curl -X POST https://api.alphaassay.com/v1/validate/signal \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label":"my_strategy","trades":[{"pnl":120,"return_pct":0.8},
       {"pnl":-80,"return_pct":-0.5},{"pnl":40,"return_pct":0.3},
       {"pnl":95,"return_pct":0.6},{"pnl":-60,"return_pct":-0.4},
       {"pnl":30,"return_pct":0.2},{"pnl":-45,"return_pct":-0.3},
       {"pnl":70,"return_pct":0.5}]}'

MCP (hosted server at https://mcp.alphaassay.com/mcp) takes the key as the "api_key" argument on each paid tool call — there is no connection-level login, and free tools need no key at all:

assay_signal {"api_key":"YOUR_API_KEY",
              "trades_csv":"pnl,return %\n120,0.8\n-80,-0.5\n40,0.3\n95,0.6\n-60,-0.4\n30,0.2\n-45,-0.3\n70,0.5"}

A wrong or missing key answers 401 unauthorized / 402 payment_required and never charges; your first 3 checks on the account are free.

Why does re-testing a tweaked strategy cost statistical power?

Variants of one idea share one statistical budget. Testing „the same signal but with lookback 21 instead of 20" is not a fresh signal — and pretending it is would be exactly the overfitting trick the battery exists to catch. A variant is still a full call at the amount in the live pricing registry, and it still adds to the family's budget (n_trials_effective) — pricing may change; the statistical accounting does not. When the family has been tried too often, the honest answer about another tweak is already fail (deflated_out_at_n=N) — we tell you instead of taking your money for theater.

Is my strategy stored?

Your raw inputs, rules and code are processed for the trial and not retained. What the ledger keeps, per trial: a one-way fingerprint, the verdict with its cause of death, summary statistics (Sharpe, sample length, test period), a 32-number compressed sketch of the return profile — it powers the family accounting and is far too coarse to reconstruct trades or rules — and the family's structural label with its parameter coordinates (window sizes, horizon) for the anonymised graveyard. The one deliberate exception: a spec you pre-register is stored in full, because sealing a claim means storing it. Details: trust.