derivatives-pricer-production.up.railway.app/v1/portfolio/greeks
Multi-leg European/American book → net MTM and net Greeks (signed quantity). Optional dollar Greeks. Not for smile/surface books.
POST
https://derivatives-pricer-production.up.railway.app/v1/portfolio/greeksUptime100% of 3 checks in 30 days
30 days agoToday
Call it from an agent
curl -i -X POST -H 'content-type: application/json' "https://derivatives-pricer-production.up.railway.app/v1/portfolio/greeks" \
-d '{"rate":0.05,"positions":[{"strike":100,"quantity":10,"optionType":"call","underlying":100,"volatility":0.2,"timeToExpiry":1},{"strike":110,"quantity":-5,"optionType":"put","underlying":100,"volatility":0.22,"timeToExpiry":1}],"dividendYield":0,"includeDollarGreeks":true}'
# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.Example input
{
"rate": 0.05,
"positions": [
{
"strike": 100,
"quantity": 10,
"optionType": "call",
"underlying": 100,
"volatility": 0.2,
"timeToExpiry": 1
},
{
"strike": 110,
"quantity": -5,
"optionType": "put",
"underlying": 100,
"volatility": 0.22,
"timeToExpiry": 1
}
],
"dividendYield": 0,
"includeDollarGreeks": true
}