{"uid":"cap_y1xF8Oaouk55qX-Qrp86j","slug":"api-quantoracle-dev-e4ebecb0","name":"QuantOracle Options Payoff Diagram","description":"QuantOracle: options/payoff-diagram","url":"https://api.quantoracle.dev/v1/options/payoff-diagram","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"legs":{"type":"array","items":{"type":"object","title":"PayoffLeg","required":["type","strike","premium"],"properties":{"type":{"enum":["call","put"],"type":"string","title":"Type","description":"Option type"},"strike":{"type":"number","title":"Strike","description":"Strike price"},"premium":{"type":"number","title":"Premium","description":"Premium per contract"},"quantity":{"type":"integer","title":"Quantity","default":1,"description":"Number of contracts"},"direction":{"enum":["long","short"],"type":"string","title":"Direction","default":"long","description":"Long or short the option"}}},"title":"Legs","description":"Array of option legs"},"spot":{"type":"number","title":"Spot","description":"Current spot price"},"points":{"type":"integer","title":"Points","default":100,"minimum":1,"description":"Number of evaluation points"},"price_range_pct":{"type":"number","title":"Price Range Pct","default":30,"description":"Price range around spot for payoff calculation (percentage)"}}},"responseSchema":null,"example":{"request":{"input":{"body":{"legs":[{"type":"call","strike":100,"premium":3.5,"quantity":1,"direction":"long"},{"type":"call","strike":110,"premium":1.2,"quantity":1,"direction":"short"}],"spot":105,"points":100,"price_range_pct":30},"type":"http","method":"POST","bodyType":"json"}},"response":{"ms":81.65,"pnl":[-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-2.3,-1.71,-1.08,-0.45,0.18,0.81,1.44,2.07,2.7,3.33,3.96,4.59,5.22,5.85,6.48,7.11,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7,7.7],"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","calculator":"https://quantoracle.dev/options-profit-calculator","powered_by":"QuantOracle"},"prices":[73.5,74.13,74.76,75.39,76.02,76.65,77.28,77.91,78.54,79.17,79.8,80.43,81.06,81.69,82.32,82.95,83.58,84.21,84.84,85.47,86.1,86.73,87.36,87.99,88.62,89.25,89.88,90.51,91.14,91.77,92.4,93.03,93.66,94.29,94.92,95.55,96.18,96.81,97.44,98.07,98.7,99.33,99.96,100.59,101.22,101.85,102.48,103.11,103.74,104.37,105,105.63,106.26,106.89,107.52,108.15,108.78,109.41,110.04,110.67,111.3,111.93,112.56,113.19,113.82,114.45,115.08,115.71,116.34,116.97,117.6,118.23,118.86,119.49,120.12,120.75,121.38,122.01,122.64,123.27,123.9,124.53,125.16,125.79,126.42,127.05,127.68,128.31,128.94,129.57,130.2,130.83,131.46,132.09,132.72,133.35,133.98,134.61,135.24,135.87,136.5],"max_loss":-2.3,"max_profit":7.7,"breakeven_points":[102.3]}},"exampleRequest":{"legs":[{"type":"call","strike":100,"premium":3.5,"quantity":1,"direction":"long"},{"type":"call","strike":110,"premium":1.2,"quantity":1,"direction":"short"}],"spot":105,"points":100,"price_range_pct":30},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__jii1Kp6UbQSUu2Z_LYhn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes and returns payoff diagram data for options strategies, showing profit/loss curves across a range of underlying prices at expiry.","exampleAgentPrompt":"Show me the payoff diagram for a long call spread on SPY: buy the $450 strike call and sell the $460 strike call, both expiring in 30 days, with premiums of $3.50 and $1.20 respectively — I want to see the full P&L curve, breakeven, max profit, and max loss.","exampleUseCases":null,"resultDescription":"Returns a set of (underlying price, P&L) data points forming the payoff curve, along with calculated breakeven price(s), maximum profit, and maximum loss for the defined options strategy at expiration.","failureModes":["Invalid or missing strike prices returns a 400 error","Mismatched option legs (e.g. inconsistent expiries) returns a validation error","Negative or zero premiums may cause unexpected payoff shapes","Underlying price range too narrow to capture breakeven points returns incomplete curve","Unsupported option type or strategy combination returns a 422 error"],"whenToPreferThis":"Use this endpoint when you need structured payoff curve data for single or multi-leg options strategies, especially when building visualizations or computing breakeven/max-profit/max-loss analytically. Prefer this over general options pricers when the goal is P&L profile across price scenarios rather than a single fair-value price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:54:00.137Z","isFirstParty":false}