finops.halowerk.com/v1/dollar-value-lifo-layer-ledger
Reconstruct ONE supplied dollar-value LIFO pool over TWO ordered year ends from its original BASE-DATE opening inventory, eligible ending inventory CURRENT costs and caller-supported CUMULATIVE base-year price indices. Index_bp/10000 is a dimensionless cumulative ratio, NOT annual inflation percent; base index1.
POST
https://finops.halowerk.com/v1/dollar-value-lifo-layer-ledgerUptime100% 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/dollar-value-lifo-layer-ledger", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"amount_denominator":1,"current_cost_n":[180,180],"index_bp":[12000,15000],"opening_base_n":100,"report":{"y1_base_bridge_gap":{"d":"1","n":"0"},"y1_base_increment":{"d":"1","n":"50"},"y1_base_inventory":{"d":"1","n":"150"},"y1_base_layer0":{"d":"1","n":"100"},"y1_base_layer1":{"d":"1","n":"50"},"y1_base_layer2":{"d":"1","n":"0"},"y1_base_liquidation":{"d":"1","n":"0"},"y1_closing_lifo":{"d":"1",),
});
console.log(await res.json());Example input
{"amount_denominator":1,"current_cost_n":[180,180],"index_bp":[12000,15000],"opening_base_n":100,"report":{"y1_base_bridge_gap":{"d":"1","n":"0"},"y1_base_increment":{"d":"1","n":"50"},"y1_base_inventory":{"d":"1","n":"150"},"y1_base_layer0":{"d":"1","n":"100"},"y1_base_layer1":{"d":"1","n":"50"},"y1_base_layer2":{"d":"1","n":"0"},"y1_base_liquidation":{"d":"1","n":"0"},"y1_closing_lifo":{"d":"1",