finops.halowerk.com/v1/martingale-transport-option-price-bounds
Whole finite two-date martingale optimal transport derivative price bounds from supplied finite risk-neutral marginals and arbitrary path-payoff cost matrix. Validate strictly increasing distinct x/y atom supports, positive probability integer weights p/q with common total W, exact equal means and convex order via call functions at all union-support knots. Couplings pi>=0 have row p/W, column q/W,
POST
https://finops.halowerk.com/v1/martingale-transport-option-price-boundsUptimeNot checked yet
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/martingale-transport-option-price-bounds", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"problem":{"W":6,"cost":[[0,1,16],[0,0,4]],"p":[3,3],"q":[2,2,2],"x":[2,4],"y":[0,3,6]}}),
});
console.log(await res.json());Example input
{
"problem": {
"W": 6,
"cost": [
[
0,
1,
16
],
[
0,
0,
4
]
],
"p": [
3,
3
],
"q": [
2,
2,
2
],
"x": [
2,
4
],
"y": [
0,
3,
6
]
}
}