FiatDock · Schema

StrategyBacktest

Paid. Strategy backtest (crypto, daily closes).

MarketplaceArtificial IntelligencePaymentsBlockchainCryptocurrencyCompany

Properties

Name Type Description
asset string The asset tested (its ticker)
market string The Coinbase Exchange market read, e.g. BTC-USD
strategy string The rule tested: sma_cross, rsi_reversion, dca or buy_and_hold
params object The parameters the rule used (defaults filled in)
period object The tested window: first and last completed UTC day, and its length
startPriceUsd number Close on the first day of the window
endPriceUsd number Close on the last day of the window
finalEquityUsd number Capital at the end, cash plus the asset at the last close
totalReturnPct number The rule's return over the window, fees included, in percent
buyAndHoldReturnPct number Buying at the first close and holding, in percent (no fee) — the benchmark
maxDrawdownPct number The largest peak-to-trough fall of the rule's equity, in percent
sharpe numbernull Annualised Sharpe ratio of daily equity returns (risk-free 0); null when equity never moved
exposurePct number Share of days the rule held the asset, in percent
trades number Number of trades (buys and sells)
winRatePct numbernull Share of closed round trips that ended above their entry, in percent; null with no closed trip
tradeList array The last 30 trades: date, buy or sell, execution close
equityCurve array Up to 31 evenly spaced points of the equity curve, with the asset's close
method string The rules, in full — enough to recompute every number
source string Where the prices come from
asOf string ISO time the prices were read
note string What a backtest is and is not
View JSON Schema on GitHub

JSON Schema

fiatdock-com-strategy-backtest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fiatdock-com/json-schema/fiatdock-com-strategy-backtest-schema.json",
  "title": "StrategyBacktest",
  "description": "Paid. Strategy backtest (crypto, daily closes).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fiatdock-com-market-api-openapi.yml#/components/schemas/StrategyBacktest",
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "description": "The asset tested (its ticker)"
    },
    "market": {
      "type": "string",
      "description": "The Coinbase Exchange market read, e.g. BTC-USD"
    },
    "strategy": {
      "type": "string",
      "description": "The rule tested: sma_cross, rsi_reversion, dca or buy_and_hold"
    },
    "params": {
      "type": "object",
      "properties": {},
      "description": "The parameters the rule used (defaults filled in)"
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "days": {
          "type": "number"
        }
      },
      "required": [
        "from",
        "to",
        "days"
      ],
      "description": "The tested window: first and last completed UTC day, and its length"
    },
    "startPriceUsd": {
      "type": "number",
      "description": "Close on the first day of the window"
    },
    "endPriceUsd": {
      "type": "number",
      "description": "Close on the last day of the window"
    },
    "finalEquityUsd": {
      "type": "number",
      "description": "Capital at the end, cash plus the asset at the last close"
    },
    "totalReturnPct": {
      "type": "number",
      "description": "The rule's return over the window, fees included, in percent"
    },
    "buyAndHoldReturnPct": {
      "type": "number",
      "description": "Buying at the first close and holding, in percent (no fee) — the benchmark"
    },
    "maxDrawdownPct": {
      "type": "number",
      "description": "The largest peak-to-trough fall of the rule's equity, in percent"
    },
    "sharpe": {
      "type": [
        "number",
        "null"
      ],
      "description": "Annualised Sharpe ratio of daily equity returns (risk-free 0); null when equity never moved"
    },
    "exposurePct": {
      "type": "number",
      "description": "Share of days the rule held the asset, in percent"
    },
    "trades": {
      "type": "number",
      "description": "Number of trades (buys and sells)"
    },
    "winRatePct": {
      "type": [
        "number",
        "null"
      ],
      "description": "Share of closed round trips that ended above their entry, in percent; null with no closed trip"
    },
    "tradeList": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "side": {
            "type": "string"
          },
          "priceUsd": {
            "type": "number"
          }
        },
        "required": [
          "date",
          "side",
          "priceUsd"
        ]
      },
      "description": "The last 30 trades: date, buy or sell, execution close"
    },
    "equityCurve": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "equityUsd": {
            "type": "number"
          },
          "priceUsd": {
            "type": "number"
          }
        },
        "required": [
          "date",
          "equityUsd",
          "priceUsd"
        ]
      },
      "description": "Up to 31 evenly spaced points of the equity curve, with the asset's close"
    },
    "method": {
      "type": "string",
      "description": "The rules, in full — enough to recompute every number"
    },
    "source": {
      "type": "string",
      "description": "Where the prices come from"
    },
    "asOf": {
      "type": "string",
      "description": "ISO time the prices were read"
    },
    "note": {
      "type": "string",
      "description": "What a backtest is and is not"
    }
  },
  "required": [
    "asset",
    "market",
    "strategy",
    "params",
    "period",
    "startPriceUsd",
    "endPriceUsd",
    "finalEquityUsd",
    "totalReturnPct",
    "buyAndHoldReturnPct",
    "maxDrawdownPct",
    "sharpe",
    "exposurePct",
    "trades",
    "winRatePct",
    "tradeList",
    "equityCurve",
    "method",
    "source",
    "asOf",
    "note"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/fiatdock-com-strategy-backtest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.