OLS equity beta vs a benchmark API

Align asset and benchmark closes, compute simple returns at daily, weekly or monthly frequency, and return OLS beta, alpha, R², standard error and optional Blume-adjusted beta.

The OLS equity beta vs a benchmark operation is part of the Equity Financial Ratios DCF Valuation API on BRAINIAC.software. Align asset and benchmark closes, compute simple returns at daily, weekly or monthly frequency, and return OLS beta, alpha, R², standard error and optional Blume-adjusted beta. It is exposed as POST /api/v1/equity-analytics/beta-regression and priced at $0.03 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied financial statements, prices, peer multiples and identifiers processed locally Altman Z-score (1968/1983/2000), Piotroski F-score (2000), Beneish M-score (1999) ISIN ISO 6166, CUSIP and SEDOL check digits; ISO 17442 LEI with ISO/IEC 7064 MOD 97-10 Limitations: Pure computation on caller input: no market data feed, statement database or identifier directory is called at request time. Identifier endpoints validate check digits and structure only; they do not confirm a security or LEI exists or is active. Screening scores (Altman, Piotroski, Beneish) and valuations are aids for human review, not investment advice or credit ratings. Money amounts on statements are decimals in one currency (often thousands); the unit string is echoed and is not converted. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Compute standard financial ratios, Two-stage discounted cash flow, Weighted average cost of capital, Back-adjust prices for splits and dividends. Open the group documentation for the full request schema, field notes, and response examples before integrating.

POST$0.03 USDC
/api/v1/equity-analytics/beta-regression

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/equity-analytics/beta-regression" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "assetPrices": [
    {
      "date": "2024-02-01",
      "close": 100
    },
    {
      "date": "2024-02-02",
      "close": 102
    },
    {
      "date": "2024-02-03",
      "close": 104.03999999999999
    },
    {
      "date": "2024-02-04",
      "close": 106.12080000000002
    },
    {
      "date": "2024-02-05",
      "close": 108.243216
    },
    {
      "date": "2024-02-06",
      "close": 110.40808032
    },
    {
      "date": "2024-02-07",
      "close": 112.61624192640001
    },
    {
      "date": "2024-02-08",
      "close": 114.868566764928
    },
    {
      "date": "2024-02-09",
      "close": 117.16593810022657
    },
    {
      "date": "2024-02-10",
      "close": 119.50925686223111
    },
    {
      "date": "2024-02-11",
      "close": 121.89944199947573
    },
    {
      "date": "2024-02-12",
      "close": 124.33743083946524
    },
    {
      "date": "2024-02-13",
      "close": 126.82417945625457
    },
    {
      "date": "2024-02-14",
      "close": 129.36066304537965
    },
    {
      "date": "2024-02-15",
      "close": 131.94787630628724
    },
    {
      "date": "2024-02-16",
      "close": 134.586833832413
    },
    {
      "date": "2024-02-17",
      "close": 137.27857050906124
    },
    {
      "date": "2024-02-18",
      "close": 140.02414191924248
    },
    {
      "date": "2024-02-19",
      "close": 142.82462475762733
    },
    {
      "date": "2024-02-20",
      "close": 145.68111725277987
    },
    {
      "date": "2024-02-21",
      "close": 148.59473959783548
    },
    {
      "date": "2024-02-22",
      "close": 151.5666343897922
    },
    {
      "date": "2024-02-23",
      "close": 154.59796707758804
    },
    {
      "date": "2024-02-24",
      "close": 157.68992641913982
    },
    {
      "date": "2024-02-25",
      "close": 160.84372494752262
    }
  ],
  "benchmarkPrices": [
    {
      "date": "2024-02-01",
      "close": 100
    },
    {
      "date": "2024-02-02",
      "close": 101
    },
    {
      "date": "2024-02-03",
      "close": 102.01
    },
    {
      "date": "2024-02-04",
      "close": 103.03010000000002
    },
    {
      "date": "2024-02-05",
      "close": 104.060401
    },
    {
      "date": "2024-02-06",
      "close": 105.10100501000001
    },
    {
      "date": "2024-02-07",
      "close": 106.15201506010001
    },
    {
      "date": "2024-02-08",
      "close": 107.21353521070101
    },
    {
      "date": "2024-02-09",
      "close": 108.28567056280802
    },
    {
      "date": "2024-02-10",
      "close": 109.36852726843608
    },
    {
      "date": "2024-02-11",
      "close": 110.46221254112045
    },
    {
      "date": "2024-02-12",
      "close": 111.56683466653166
    },
    {
      "date": "2024-02-13",
      "close": 112.68250301319698
    },
    {
      "date": "2024-02-14",
      "close": 113.80932804332895
    },
    {
      "date": "2024-02-15",
      "close": 114.94742132376223
    },
    {
      "date": "2024-02-16",
      "close": 116.09689553699987
    },
    {
      "date": "2024-02-17",
      "close": 117.25786449236988
    },
    {
      "date": "2024-02-18",
      "close": 118.43044313729357
    },
    {
      "date": "2024-02-19",
      "close": 119.6147475686665
    },
    {
      "date": "2024-02-20",
      "close": 120.81089504435316
    },
    {
      "date": "2024-02-21",
      "close": 122.0190039947967
    },
    {
      "date": "2024-02-22",
      "close": 123.23919403474468
    },
    {
      "date": "2024-02-23",
      "close": 124.47158597509211
    },
    {
      "date": "2024-02-24",
      "close": 125.71630183484304
    },
    {
      "date": "2024-02-25",
      "close": 126.97346485319147
    }
  ],
  "frequency": "daily",
  "blumeAdjust": true
}
JSON

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

FAQ

  • Do I need an API key? No. Pay the listed USDC amount with x402.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related APIs

Equity Financial Ratios DCF Valuation APIFull docsHow it works