Skip to content
Fourohtwo

Check a trading backtest

x402.pokt-agent.com/backtest/reconcile

Check a trading backtest: recompute net profit, win rate, profit factor, max drawdown and trade count from the trade list (CSV or JSON) and compare them with the claimed numbers. Returns each metric as MATCH or MISMATCH with the recomputed value and finding codes.

BaseAnswering
POSThttps://x402.pokt-agent.com/backtest/reconcile

Uptime100% of 1 check in 30 days

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.pokt-agent.com/backtest/reconcile", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claimed":{"net_profit":10},"initial_capital":1000,"trades":[{"entry_price":100,"entry_time":"2026-01-02 10:00","exit_price":110,"exit_time":"2026-01-03 10:00","n":1,"qty":1,"side":"long"}]}),
});
console.log(await res.json());

Example input

{
  "claimed": {
    "net_profit": 10
  },
  "initial_capital": 1000,
  "trades": [
    {
      "entry_price": 100,
      "entry_time": "2026-01-02 10:00",
      "exit_price": 110,
      "exit_time": "2026-01-03 10:00",
      "n": 1,
      "qty": 1,
      "side": "long"
    }
  ]
}