← Market

Equity Analytics · Total Return Series

Compound a total-return index from closes and cash dividends with optional withholding tax, and report price return, total return and CAGR. Docs: https://www.brainiac.software/api/equity-analytics/total-return-series

POST https://www.brainiac.software/api/v1/equity-analytics/total-return-series

0.03 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.03 USDC · payTo 0x6428665E83F503904571104311bB78CBb29b975c · via cdp · settles direct
{
  "base": 100,
  "dividends": [
    {
      "amount": 2,
      "exDate": "2025-01-01"
    }
  ],
  "prices": [
    {
      "close": 100,
      "date": "2024-01-01"
    },
    {
      "close": 110,
      "date": "2025-01-01"
    }
  ],
  "withholdingTax": 0
}
{
  "cagr": 0.1197399316,
  "index": [
    {
      "date": "2024-01-01",
      "value": 100
    },
    {
      "date": "2025-01-01",
      "value": 112
    }
  ],
  "limitations": [
    "Daily total return on an ex-date is (close + dividend × (1 − withholdingTax)) / prior close − 1; the index compounds from base.",
    "priceReturn ignores dividends. CAGR uses an actual/365.25 year fraction between the first and last dates."
  ],
  "priceReturn": 0.1,
  "sources": [
    {
      "retrievedAt": "2026-11-14",
      "source": "Caller-supplied statements, prices and identifiers processed locally",
      "status": "ok",
      "url": "https://www.brainiac.software/api/v1/equity-analytics"
    }
  ],
  "totalReturn": 0.12
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust scorepending / 100 · breakdown
Probe uptime (30d)— over 0 probes · daily
Avg 402 latency— ms
Paid calls (30d, on-chain)0 calls · 0 buyers

How to call

POST https://www.brainiac.software/api/v1/equity-analytics/total-return-series · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "prices": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "prices supplied by the caller for this operation.",
      "example": [
        {
          "date": "2024-01-01",
          "close": 100
        },
        {
          "date": "2025-01-01",
          "close": 110
        }
      ]
    },
    "dividends": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "dividends supplied by the caller for this operation.",
      "example": [
        {
          "exDate": "2025-01-01",
          "amount": 2
        }
      ]
    },
    "base": {
      "type": "number",
      "description": "Base currency ISO 4217 code, or a pair spelling that resolves to base/symbols.",
      "example": 100
    },
    "withholdingTax": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "withholding Tax supplied by the caller for this operation.",
      "example": 0
    }
  },
  "required": [
    "prices"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "index": {
      "type": "array",
      "description": "index returned by this operation.",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "date": {
            "type": "string",
            "description": "Official ECB/Frankfurter as-of date for the returned rates."
          },
          "value": {
            "type": "integer",
            "description": "value returned by this operation."
          }
        }
      }
    },
    "priceReturn": {
      "type": "number",
      "description": "price Return returned by this operation."
    },
    "totalReturn": {
      "type": "number",
      "description": "total Return returned by this operation."
    },
    "cagr": {
      "type": "number",
      "description": "cagr returned by this operation."
    },
    "sources": {
      "type": "array",
      "description": "Provenance only — upstream name, url, and retrievedAt when available.",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "source": {
            "type": "string",
            "description": "Named upstream source for this delayed reference series."
          },
          "url": {
            "type": "string",
            "description": "Requested public URL."
          },
          "retrievedAt": {
            "type": "string",
            "description": "ISO-8601 timestamp when upstream data was retrieved."
          },
          "status": {
            "type": "string",
            "description": "Coverage status: complete or partial with real data is charged on HTTP 2xx; failed or empty payloads return non-2xx and are not charged."
          }
        }
      }
    },
    "limitations": {
      "type": "array",
      "description": "Product caveats. Absence of a signal is not a safety approval."
    }
  }
}
curl -i -X POST 'https://www.brainiac.software/api/v1/equity-analytics/total-return-series' \
  -H 'content-type: application/json' -d '{"prices":[{"date":"2024-01-01","close":100},{"date":"2025-01-01","close":110}],"dividends":[{"exDate":"2025-01-01","amount":2}],"base":100,"withholdingTax":0}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)