finops.halowerk.com/v1/finite-tree-transaction-cost-superhedging-cone
Compute the exact minimal initial cash superhedging a supplied terminal cash claim on a finite one- or two-period binary event tree with node bid/ask quotes, unrestricted borrowing/shorting and zero discounted interest. Return a feasible adapted cash/stock hedge and matching cone dual certificate, plus a compact EXACT parameterization of ALL original optimal holdings. No probability-weighted loss
POST
https://finops.halowerk.com/v1/finite-tree-transaction-cost-superhedging-coneUptime100% 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/finite-tree-transaction-cost-superhedging-cone", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"ask":[10,10,10],"bid":[10,10,10],"claim":[0,1],"cps_probability":[[1,1],[1,2],[1,2]],"cps_stock":[[10,1],[10,1],[10,1]],"depth":1}),
});
console.log(await res.json());Example input
{
"ask": [
10,
10,
10
],
"bid": [
10,
10,
10
],
"claim": [
0,
1
],
"cps_probability": [
[
1,
1
],
[
1,
2
],
[
1,
2
]
],
"cps_stock": [
[
10,
1
],
[
10,
1
],
[
10,
1
]
],
"depth": 1
}