Skip to content
Fourohtwo

fiatdock.com/v1/market/backtest

Backtest a stated trading rule on a crypto asset's daily USD closes (Coinbase Exchange) and compare it with buying and holding: SMA crossover, RSI mean reversion, DCA or buy-and-hold, 30-365 days, with fees. Returns total return, drawdown, Sharpe, win rate, exposure, every trade and the equity curve; the rules are published in every answer. Send {} for BTC, SMA 20/50, 180 days. A test of the past,

BaseSolanaAnswering
POSThttps://fiatdock.com/v1/market/backtest

Uptime100% of 4 checks 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://fiatdock.com/v1/market/backtest", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"asset":"BTC","days":180,"fast":20,"slow":50,"strategy":"sma_cross"}),
});
console.log(await res.json());

Example input

{
  "asset": "BTC",
  "days": 180,
  "fast": 20,
  "slow": 50,
  "strategy": "sma_cross"
}

More from FiatDockProvider status