Skip to content
Fourohtwo

Backtest an algorithmic trading strategy

x402.minara.ai/x402/strategy-studio/backtest

Backtest an algorithmic trading strategy. Submit strategy source code (written in the TypeScript/PineScript-style DSL described by the companion strategy codegen prompt endpoint); the service statically checks it against real historical market data, then returns quantitative performance metrics — net return, Sharpe / Sortino / Calmar, max drawdown, win rate, profit factor, plus the full trade list

BaseUnchecked
POSThttps://x402.minara.ai/x402/strategy-studio/backtest

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.minara.ai/x402/strategy-studio/backtest", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"code":{"type":"string","required":true,"description":"Full strategy source code to validate and backtest, written in the trading DSL. Call the companion strategy-codegen-prompt endpoint first if you need the language rules and API reference to generate it."},"symbol":{"type":"string","required":false,"description":"Trading pair to backtest. Crypto perps (BTCUSDT, ETHUSDT, SOLUSDT) and US-stock p),
});
console.log(await res.json());

Example input

{"code":{"type":"string","required":true,"description":"Full strategy source code to validate and backtest, written in the trading DSL. Call the companion strategy-codegen-prompt endpoint first if you need the language rules and API reference to generate it."},"symbol":{"type":"string","required":false,"description":"Trading pair to backtest. Crypto perps (BTCUSDT, ETHUSDT, SOLUSDT) and US-stock p