Skip to content
Fourohtwo

www.brainiac.software/api/v1/equity-analytics/corporate-action-adjust

Apply split and cash-dividend factors backwards through a price series (CRSP-style multiplicative dividends) and return adjusted closes, volumes and cumulative factors. Docs: https://www.brainiac.software/api/equity-analytics/corporate-action-adjust

BaseAnswering
POSThttps://www.brainiac.software/api/v1/equity-analytics/corporate-action-adjust

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.brainiac.software/api/v1/equity-analytics/corporate-action-adjust", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"actions":[{"exDate":"2024-01-02","ratio":4,"type":"split"}],"prices":[{"close":100,"date":"2024-01-01","volume":1000},{"close":25,"date":"2024-01-02","volume":4000},{"close":25.5,"date":"2024-01-03","volume":4100}]}),
});
console.log(await res.json());

Example input

{
  "actions": [
    {
      "exDate": "2024-01-02",
      "ratio": 4,
      "type": "split"
    }
  ],
  "prices": [
    {
      "close": 100,
      "date": "2024-01-01",
      "volume": 1000
    },
    {
      "close": 25,
      "date": "2024-01-02",
      "volume": 4000
    },
    {
      "close": 25.5,
      "date": "2024-01-03",
      "volume": 4100
    }
  ]
}