Skip to content
Fourohtwo

finops.halowerk.com/v1/bounded-scenario-cash-ladder

Calculate exact per-currency balance bounds at supplied cutoffs when cash-flow occurrence dates, amounts and optional presence are bounded by caller scenarios, and compare a caller floor. Bounded supplied synthetic records; missing evidence remains unknown. A schema-valid unknown is a successful result at the same fixed price. Invalid input raises native HTTP400 before settlement.

BaseAnswering
POSThttps://finops.halowerk.com/v1/bounded-scenario-cash-ladder

Uptime100% of 1 check 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://finops.halowerk.com/v1/bounded-scenario-cash-ladder", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"cutoffs":[0,1,2,3],"flows":[{"amount_high_minor":"-2","amount_low_minor":"-4","currency":"USD","earliest":1,"id":"F","latest":2,"required":true}],"opening":[{"amount_minor":"10","currency":"USD","floor_minor":"0"}]}),
});
console.log(await res.json());

Example input

{
  "cutoffs": [
    0,
    1,
    2,
    3
  ],
  "flows": [
    {
      "amount_high_minor": "-2",
      "amount_low_minor": "-4",
      "currency": "USD",
      "earliest": 1,
      "id": "F",
      "latest": 2,
      "required": true
    }
  ],
  "opening": [
    {
      "amount_minor": "10",
      "currency": "USD",
      "floor_minor": "0"
    }
  ]
}