{
  "x402Version": 2,
  "id": 10889,
  "slug": "10889",
  "resource": "https://agents.x402stock.xyz/api/v1/backtest/:ticker",
  "description": "Backtests a simple rule on a US stock and returns a finished report PNG. Runs an SMA crossover (?strategy=sma_cross&fast=50&slow=200) or RSI mean-reversion (?strategy=rsi_reversion&period=14&lower=30&upper=70) over daily history (?years=, max 5), no lookahead, rendered as an equity curve vs buy & hold. Returns full stats plus a hosted `artifact.png_url`. From x402stock",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xfdb4b511f6ae1f270776e500b3360217d5e7ed03",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "500000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "zeroclick:card",
      "payTo": "merchant",
      "asset": "USD",
      "amount": "50",
      "maxTimeoutSeconds": 3600
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "pathParams": {
            "ticker": "AAPL"
          },
          "queryParams": {},
          "type": "http"
        }
      },
      "routeTemplate": "/api/v1/backtest/:ticker",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "pathParams": {
                "ticker": {
                  "type": "string"
                },
                "type": "object"
              },
              "queryParams": {
                "properties": {
                  "capital": {
                    "default": 10000,
                    "exclusiveMinimum": 0,
                    "maximum": 1000000000,
                    "type": "number"
                  },
                  "fast": {
                    "default": 50,
                    "exclusiveMinimum": 0,
                    "maximum": 200,
                    "type": "integer"
                  },
                  "lower": {
                    "default": 30,
                    "maximum": 99,
                    "minimum": 1,
                    "type": "number"
                  },
                  "period": {
                    "default": 14,
                    "exclusiveMinimum": 0,
                    "maximum": 100,
                    "type": "integer"
                  },
                  "slow": {
                    "default": 200,
                    "exclusiveMinimum": 0,
                    "maximum": 400,
                    "type": "integer"
                  },
                  "strategy": {
                    "default": "sma_cross",
                    "enum": [
                      "sma_cross",
                      "rsi_reversion"
                    ],
                    "type": "string"
                  },
                  "upper": {
                    "default": 70,
                    "maximum": 99,
                    "minimum": 1,
                    "type": "number"
                  },
                  "years": {
                    "default": 3,
                    "exclusiveMinimum": 0,
                    "maximum": 5,
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "zeroclick": {
      "info": {
        "payment": {
          "amountUsd": "0.500000",
          "id": "apay_bvEZcXLmX5_iu3Vof5YVB"
        },
        "requestId": "zcreq_kXsh134bYoVKM7wQx0_7r",
        "service": "screeners-scores-research"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "payment": {
            "properties": {
              "amountUsd": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "amountUsd"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "service": {
            "type": "string"
          }
        },
        "required": [
          "payment"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "zeroclick"
  ],
  "sourceHost": "agents.x402stock.xyz",
  "lastUpdated": "2026-08-26T20:34:52.455Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-26T20:34:51.868Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agents.x402stock.xyz",
    "manifest_name": "agents.x402stock.xyz",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}