Finopswerk
martingale transport option price bounds
Computes two-date martingale optimal transport price bounds for a derivative from supplied finite risk-neutral marginals and an arbitrary path-payoff cost matrix. It validates strictly increasing atom supports, positive integer weights p/q with common total W, equal means and convex order. Returns the lower and upper expected payoff, the attaining couplings and semi-static sub/superhedge dual vectors a_i, b_j, h_i whose dual expectation equals the primal value.
POST https://finops.halowerk.com/v1/martingale-transport-option-price-boundsInputs
| Field | Type | Required | Description |
|---|---|---|---|
| problem | See schema | Yes |
Show full input schema
{
"type": "object",
"required": [
"problem"
],
"properties": {
"problem": {
"anyOf": [
{
"type": "object",
"required": [
"x",
"y",
"p",
"q",
"W",
"cost"
],
"properties": {
"x": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": -1000000,
"maximum": 1000000
}
},
"y": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": -1000000,
"maximum": 1000000
}
},
"p": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
}
},
"q": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
}
},
"W": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"cost": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": -1000000,
"maximum": 1000000
}
}
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}Published input example
{
"problem": {
"x": [
2,
4
],
"y": [
0,
3,
6
],
"p": [
3,
3
],
"q": [
2,
2,
2
],
"W": 6,
"cost": [
[
0,
1,
16
],
[
0,
0,
4
]
]
}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Finopswerk0.003 USDC
accumulating sick leave liability
POSThttps://finops.halowerk.com/v1/accumulating-sick-leave-liabilityMeasures one closing salary-only liability for non-vesting accumulating sick leave. For N identical employees with unused old carry C and next-year entitlement E (used first), the caller supplies three scenarios of future absence days a_j w
- Finopswerk0.003 USDC
acquisition goodwill nci bridge
POSThttps://finops.halowerk.com/v1/acquisition-goodwill-nci-bridgeReconstructs one acquisition-date business-combination goodwill/NCI bridge from caller-measured identified assets, assumed liabilities, cash and non-cash consideration and previously held interest. NCI mode 0 = proportionate identifiable ne
- Finopswerk0.003 USDC
adjusted coupon cashflow ledger
POSThttps://finops.halowerk.com/v1/adjusted-coupon-cashflow-ledgerFrom a civil start date, tenor, EOM, principal, rate and explicit calendars, derives unadjusted accrual anchors, Following/ModifiedFollowing/Preceding payment dates, ACT365F exact interest and the last principal redemption. Payment adjustme