# Vextorium DCA Simulator

> Vextorium DCA Simulator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Backtests a dollar-cost averaging strategy for any crypto token, showing invested amount, units accumulated, average cost, current value, return, and comparison against a lump-sum investment.

## Facts

- Endpoint: POST https://api.vextorium.com/simulador-dca-pago?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-dca-simulator-94ee0c01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cwy9sP35udzeQXNRD3WsF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability vextorium-dca-simulator-94ee0c01 -d '<json body>'
```

Example prompt: Simulate a DCA strategy where I invest $100 in BTC every 7 days starting from 2024-01-01, and compare it to putting all the money in at once.

## When to prefer this

Use this endpoint when you need to backtest a periodic crypto investment strategy (DCA) for any token supported by DefiLlama, including long-tail DeFi tokens via chain:contract address. It is purpose-built for comparing DCA vs lump-sum performance with configurable intervals and start dates, making it ideal for investment analysis agents or portfolio planning. Prefer over generic price endpoints when the goal is strategy simulation rather than just price lookup.

## Known failure modes

- Invalid or unsupported token symbol returns an error or null results
- Start date too far back (>1825 days) may be clamped or rejected
- purchase interval outside 1–90 days range may be rejected
- Missing required fields (moneda or importe) returns a validation error
- Token with insufficient price history on DefiLlama returns partial or empty results
- Network timeout for illiquid or obscure tokens

## How this service works

Backtest buying a fixed amount of a token every N days (dollar-cost averaging) since a past date: invested, units, average cost, current value, return, and comparison with investing everything at the start. Prices from DefiLlama.

## Output

Returns a JSON object with the simulation start date, token symbol, number of purchases made, total units accumulated, total amount invested, average cost per unit, current token price, current portfolio value, return percentage for the DCA strategy, equivalent lump-sum investment value and return percentage, and which strategy performed better, plus a disclaimer note about the simulation methodology and price source (DefiLlama).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "moneda",
      "importe"
     ],
     "properties": {
      "dias": {
       "type": "integer",
       "description": "Days back (default 365, max 1825)"
      },
      "desde": {
       "type": "string",
       "description": "Start date YYYY-MM-DD (or use dias)"
      },
      "moneda": {
       "type": "string",
       "description": "BTC, ETH, SOL... or chain:contract"
      },
      "importe": {
       "type": "number"
      },
      "cada_dias": {
       "type": "integer",
       "description": "Buy every N days (1-90)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "desde": {
       "type": [
        "string",
        "null"
       ]
      },
      "moneda": {
       "type": [
        "string",
        "null"
       ]
      },
      "compras": {
       "type": [
        "number",
        "null"
       ]
      },
      "unidades": {
       "type": [
        "number",
        "null"
       ]
      },
      "invertido": {
       "type": [
        "number",
        "null"
       ]
      },
      "precio_medio": {
       "type": [
        "number",
        "null"
       ]
      },
      "valor_actual": {
       "type": [
        "number",
        "null"
       ]
      },
      "precio_actual": {
       "type": [
        "number",
        "null"
       ]
      },
      "todo_de_golpe": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "valor_actual": {
         "type": [
          "number",
          "null"
         ]
        },
        "rentabilidad_pct": {
         "type": [
          "number",
          "null"
         ]
        }
       }

… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nota": "Simulación con precio de cierre diario, sin comisiones. Rentabilidades pasadas no garantizan futuras. Fuente de precios: DefiLlama.",
  "desde": "2025-10-02",
  "moneda": "BTC",
  "compras": 53,
  "unidades": 0.06850205,
  "invertido": 5300,
  "precio_medio": 77369.951068,
  "valor_actual": 5860.11,
  "precio_actual": 85546.5136562897,
  "todo_de_golpe": {
   "valor_actual": 3804.2,
   "rentabilidad_pct": -28.22
  },
  "mejor_estrategia": "DCA",
  "rentabilidad_pct": 10.57
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-dca-simulator-94ee0c01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
