{"slug":"derivatives-pricer-production-up-railway-app-v1-portfolio-sc-b1b4db","title":"What-if P&L under relative spot/vol shocks and calendar time decay on a scalar-σ","host":"derivatives-pricer-production.up.railway.app","method":"POST","resource":"https://derivatives-pricer-production.up.railway.app/v1/portfolio/scenario","category":"other","description":"What-if P&L under relative spot/vol shocks and calendar time decay on a scalar-σ book. Base plus per-scenario MTM and Greeks.","price_listed":0.25,"price_asked":0.25,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":804,"reported_calls_30d":3,"reported_payers_30d":2,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"dividendYield":0,"positions":[{"optionType":"call","quantity":10,"strike":100,"timeToExpiry":1,"underlying":100,"volatility":0.2},{"optionType":"put","quantity":-5,"strike":110,"timeToExpiry":1,"underlying":100,"volatility":0.22}],"rate":0.05,"scenarios":[{"name":"spot_down_10","spotShock":-0.1,"timeDecayDays":0,"volShock":0},{"name":"vol_up_20pct_rel","spotShock":0,"timeDecayDays":1,"volShock":0.2}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"description":"Reprice a portfolio under relative spot/vol shocks and calendar time decay.","properties":{"dividendYield":{"minimum":0,"type":"number"},"optionStyle":{"default":"european","description":"Exercise style (default \"european\").","enum":["european","american"],"type":"string"},"positions":{"items":{"additionalProperties":false,"properties":{"optionType":{"enum":["call","put"],"type":"string"},"quantity":{"description":"Position size; >0 long, <0 short; must be non-zero","type":"number"},"strike":{"exclusiveMinimum":0,"type":"number"},"timeToExpiry":{"minimum":0,"type":"number"},"underlying":{"description":"Underlying S for this leg","exclusiveMinimum":0,"type":"number"},"volatility":{"description":"Annualized vol σ for this leg","exclusiveMinimum":0,"type":"number"}},"required":["underlying","strike","timeToExpiry","optionType","quantity","volatility"],"type":"object"},"minItems":1,"type":"array"},"rate":{"type":"number"},"scenarios":{"items":{"additionalProperties":false,"properties":{"name":{"type":"string"},"spotShock":{"description":"Relative spot move; newS = S*(1+spotShock)","type":"number"},"timeDecayDays":{"description":"Calendar days of time decay; T reduced by days/365","minimum":0,"type":"number"},"volShock":{"description":"Relative vol move; newσ = σ*(1+volShock)","type":"number"}},"type":"object"},"maxItems":20,"minItems":1,"type":"array"}},"required":["rate","positions","scenarios"],"title":"PortfolioScenarioRequest","type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"base":{"type":"object"},"computedAt":{"type":"string"},"positionCount":{"type":"integer"},"requestId":{"type":"string"},"scenarioCount":{"type":"integer"},"scenarios":{"type":"array"}},"required":["base","scenarios","positionCount","scenarioCount","requestId","computedAt"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":888,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":880,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":804,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":877,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":793,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":460,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":463,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":797,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":480,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":470,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":472,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":463,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":1264,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":818,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":1205,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":458,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":461,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":463,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":885,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":458,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":876,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":459,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":904,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":1002,"error":null},{"day":"2026-11-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":917,"error":null},{"day":"2026-11-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":1323,"error":null},{"day":"2026-10-31","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":1334,"error":null},{"day":"2026-10-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.25,"price_match":true,"latency_ms":1321,"error":null}],"description_full":"What-if P&L under relative spot/vol shocks and calendar time decay on a scalar-σ book. Base plus per-scenario MTM and Greeks.","last_updated":"2026-11-03T15:08:59.687Z","schemes":["exact"]}