Repository Public
1{"job":{"id":"f993a65f-a89a-43ab-b5f7-ade5f39cd137","tool":"options_lab","params":{"symbol":"SPY","mode":"strategy","option_type":"call","style":"european","expiry_days":30,"multiplier":100,"vol_window":63,"rate":0.04,"dividend_yield":0,"steps":500,"simulations":100000,"seed":12345,"template":"straddle","width":0.05,"far_expiry_days":60,"provider":"auto","max_dte":180,"min_dte":2,"strike_window":0.3,"min_open_interest":10,"max_rel_spread":0.5},"status":"done","startedAt":1795217730675,"finishedAt":1795217735307,"error":null,"progress":1,"engineVersion":"1.0.0","durationMs":4632,"projectId":null,"sessionId":null,"cancellable":false,"code":"from vqlab.options import normalize_legs, strategy_analytics\nlegs = normalize_legs([{'type': 'call', 'side': 'long', 'strike': 690.0, 'expiry_days': 30.0, 'quantity': 1.0, 'premium': 14.61720193184874}, {'type': 'put', 'side': 'long', 'strike': 690.0, 'expiry_days': 30.0, 'quantity': 1.0, 'premium': 12.542433727749199}], 100)\na = strategy_analytics(legs, 689.81, 0.04, 0.0, 0.1720796239427206, 0.04)\nprint(a[\"cost\"], a[\"breakevens\"], a[\"maxProfit\"], a[\"maxLoss\"], a[\"pop\"], a[\"expectedPnl\"])","result":{"success":true,"schema":"lab/1","engine":"options_lab","engineVersion":"1.0.0","title":"Options Lab — SPY (strategy)","headline":"SPY straddle: net debit 2,715.96; max profit unbounded, max loss -2,715.96; breakeven(s) 662.84, 717.16; probability of profit 42.5% (risk-neutral, σ = 17.21%).","summary":[{"label":"Spot","value":689.81,"unit":"currency","kind":"observed","note":"close of 2026-11-20","currency":"USD"},{"label":"Volatility","value":0.1720796239427206,"unit":"percent","kind":"calculated","note":"historical, 63 sessions"},{"label":"Net cost (debit > 0, credit < 0)","value":2715.963565959794,"unit":"currency","kind":"calculated","note":"includes model premiums","currency":"USD"},{"label":"Maximum profit","value":null,"unit":"currency","kind":"calculated","note":"unbounded","currency":"USD"},{"label":"Maximum loss","value":-2715.963565959794,"unit":"currency","kind":"calculated","note":"at the 30-day horizon","currency":"USD"},{"label":"Breakeven 1","value":662.840364,"unit":"currency","kind":"calculated","note":"-3.9% from spot","currency":"USD"},{"label":"Breakeven 2","value":717.159636,"unit":"currency","kind":"calculated","note":"+4.0% from spot","currency":"USD"},{"label":"Probability of profit","value":0.42532873356332185,"unit":"percent","kind":"calculated","note":"risk-neutral lognormal"},{"label":"Expected P&L at the horizon","value":8.917554053841048,"unit":"currency","kind":"calculated","note":"risk-neutral","currency":"USD"},{"label":"Net delta (shares)","value":6.8315724795629365,"unit":null,"kind":"calculated","decimals":3},{"label":"Net gamma","value":2.3359908133815677,"unit":null,"kind":"calculated","decimals":3},{"label":"Net vega (per vol point)","value":157.21281385420096,"unit":"currency","kind":"calculated","decimals":3,"currency":"USD"},{"label":"Net theta (per day)","value":-45.30733356833735,"unit":"currency","kind":"calculated","decimals":3,"currency":"USD"}],"tables":[{"id":"legs","title":"Legs","columns":[{"key":"n","label":"#","type":"integer"},{"key":"side","label":"Side","type":"text"},{"key":"type","label":"Type","type":"text"},{"key":"strike","label":"Strike","unit":"currency","currency":"USD","type":"number"},{"key":"days","label":"Days","unit":"days","type":"number"},{"key":"quantity","label":"Quantity","type":"number"},{"key":"price","label":"Price / share","unit":"currency","decimals":4,"currency":"USD","type":"number"},{"key":"source","label":"Price source","type":"text"},{"key":"kind","label":"Kind","type":"text"},{"key":"cash","label":"Cash flow today","unit":"currency","currency":"USD","type":"number"}],"rows":[{"n":1,"side":"long","type":"call","strike":690,"days":30,"quantity":1,"price":14.61720193184874,"source":"model","kind":"calculated","cash":-1461.720193184874},{"n":2,"side":"long","type":"put","strike":690,"days":30,"quantity":1,"price":12.542433727749199,"source":"model","kind":"calculated","cash":-1254.2433727749199}]},{"id":"greeks","title":"Net Greeks of the position","columns":[{"key":"greek","label":"Greek","type":"text"},{"key":"value","label":"Position","decimals":4,"type":"number"},{"key":"unit","label":"Unit","type":"text"}],"rows":[{"greek":"Delta","value":6.8315724795629365,"unit":"per 1.00 of spot"},{"greek":"Gamma","value":2.3359908133815677,"unit":"delta per 1.00 of spot"},{"greek":"Vega","value":157.21281385420096,"unit":"per 1 volatility point"},{"greek":"Theta","value":-45.30733356833735,"unit":"per calendar day"},{"greek":"Rho","value":1.6409781749322008,"unit":"per 1 % of rate"},{"greek":"Vanna","value":-0.16812168963652385,"unit":"delta per 1 volatility point"},{"greek":"Volga","value":0.02850228768629373,"unit":"vega per 1 volatility point"},{"greek":"Charm","value":-0.12837347031647023,"unit":"delta per calendar day"}]}],"charts":[{"id":"payoff","title":"P&L of the straddle","type":"payoff","x":{"label":"Spot at the date shown","type":"number","unit":"currency","currency":"USD"},"y":{"label":"P&L","unit":"currency","currency":"USD"},"series":[{"name":"At expiry (30 d)","kind":"calculated","x":[482.8669999999999,485.4537874999999,488.04057499999993,490.6273624999999,493.2141499999999,495.8009374999999,498.38772499999993,500.9745124999999,503.5612999999999,506.1480874999999,508.73487499999993,511.3216624999999,513.9084499999999,516.4952374999999,519.0820249999999,521.6688125,524.2556,526.8423874999999,529.4291749999999,532.0159624999999,534.6027499999999,537.1895374999999,539.7763249999999,542.3631124999999,544.9499,547.5366875,550.1234749999999,552.7102624999999,555.2970499999999,557.8838374999999,560.4706249999999,563.0574124999999,565.6442,568.2309874999999,570.8177749999999,573.4045624999999,575.9913499999999,578.5781374999999,581.1649249999999,583.7517124999999,588.9252875,591.5120749999999,594.0988624999999,596.6856499999999,599.2724374999999,601.8592249999999,604.4460124999999,607.0328,609.6195875,612.206375,614.7931624999999,617.3799499999999,619.9667374999999,622.5535249999999,625.1403124999999,627.7271,630.3138875,632.9006749999999,635.4874624999999,638.0742499999999,640.6610374999999,643.2478249999999,645.8346124999999,648.4214,651.0081875,653.594975,656.1817624999999,658.7685499999999,661.3553374999999,663.9421249999999,666.5289124999999,669.1157,671.7024875,674.2892749999999,676.8760625,679.4628499999999,682.0496374999999,684.6364249999999,687.2232124999999,689.81,690,692.3967875,694.983575,697.5703624999999,700.1571499999999,702.7439374999999,705.3307249999999,707.9175124999999,710.5043,713.0910875,715.6778749999999,718.2646625,720.8514499999999,723.4382374999999,726.0250249999999,728.6118124999999,731.1985999999999,733.7853875,736.372175,738.9589624999999,741.54575,744.1325374999999,746.7193249999999,749.3061124999999,751.8928999999999,754.4796875,757.0664749999999,759.6532625,762.2400499999999,764.8268375,767.4136249999999,770.0004124999999,772.5871999999999,775.1739875,777.760775,780.3475624999999,782.93435,785.5211374999999,788.1079249999999,790.6947124999999,795.8682875,798.4550749999999,801.0418625,803.6286499999999,806.2154375,808.8022249999999,811.3890124999999,813.9757999999999,816.5625875,819.149375,821.7361624999999,824.32295,826.9097374999999,829.496525,832.0833124999999,834.6700999999999,837.2568875,839.843675,842.4304625,845.0172499999999,847.6040375,850.1908249999999,852.7776124999999,855.3643999999999,857.9511875,860.537975,863.1247624999999,865.71155,868.2983374999999,870.885125,873.4719124999999,876.0586999999999,878.6454875,881.232275,883.8190625,886.4058499999999,888.9926375,891.5794249999999,894.1662124999999,896.7529999999999],"y":[17997.336434040215,17738.657684040212,17479.978934040213,17221.300184040218,16962.621434040215,16703.942684040212,16445.263934040213,16186.58518404022,15927.906434040216,15669.227684040214,15410.548934040215,15151.87018404022,14893.191434040216,14634.512684040214,14375.833934040214,14117.155184040212,13858.476434040209,13599.79768404022,13341.11893404022,13082.440184040219,12823.761434040216,12565.082684040215,12306.403934040214,12047.725184040211,11789.04643404021,11530.36768404021,11271.68893404022,11013.010184040219,10754.331434040216,10495.652684040215,10236.973934040214,9978.295184040213,9719.616434040212,9460.93768404022,9202.25893404022,8943.580184040218,8684.901434040217,8426.222684040216,8167.543934040214,7908.865184040213,7391.507684040209,7132.828934040221,6874.150184040218,6615.471434040217,6356.792684040216,6098.113934040213,5839.435184040212,5580.756434040211,5322.07768404021,5063.398934040208,4804.720184040218,4546.041434040217,4287.362684040216,4028.6839340402144,3770.0051840402125,3511.3264340402106,3252.6476840402097,2993.9689340402197,2735.2901840402187,2476.611434040217,2217.932684040215,1959.253934040214,1700.5751840402131,1441.8964340402113,1183.2176840402099,924.5389340402085,665.8601840402184,407.181434040217,148.50268404021563,-110.17606595978577,-368.8548159597872,-627.5335659597886,-886.21231595979,-1144.89106595978,-1403.5698159597928,-1662.2485659597828,-1920.9273159597842,-2179.6060659597856,-2438.284815959787,-2696.9635659597884,-2715.963565959794,-2476.284815959798,-2217.6060659597965,-1958.9273159598065,-1700.248565959805,-1441.5698159598037,-1182.8910659598023,-924.2123159598009,-665.5335659597995,-406.8548159597981,-148.17606595980806,110.50268404020471,369.18143404019474,627.8601840401961,886.5389340401975,1145.217684040199,1403.8964340402003,1662.5751840402022,1921.2539340402031,2179.932684040193,2438.611434040206,2697.290184040196,2955.968934040198,3214.647684040199,3473.3264340401997,3732.0051840402016,3990.6839340401916,4249.362684040205,4508.041434040195,4766.720184040207,5025.398934040197,5284.0776840401995,5542.7564340402005,5801.435184040201,6060.113934040202,6318.792684040194,6577.471434040206,6836.150184040196,7094.828934040197,7353.507684040198,7870.865184040202,8129.543934040192,8388.222684040205,8646.901434040194,8905.580184040207,9164.258934040197,9422.937684040198,9681.616434040201,9940.295184040202,10198.973934040203,10457.652684040193,10716.331434040205,10975.010184040197,11233.688934040209,11492.367684040199,11751.0464340402,12009.7251840402,12268.403934040203,12527.082684040204,12785.761434040194,13044.440184040208,13303.118934040196,13561.797684040199,13820.476434040202,14079.1551840402,14337.833934040204,14596.512684040192,14855.191434040205,15113.870184040197,15372.548934040207,15631.2276840402,15889.906434040198,16148.585184040201,16407.263934040202,16665.9426840402,16924.621434040193,17183.300184040203,17441.978934040195,17700.657684040198,17959.336434040197]},{"name":"In 15 d","kind":"calculated","x":[482.8669999999999,485.4537874999999,488.04057499999993,490.6273624999999,493.2141499999999,495.8009374999999,498.38772499999993,500.9745124999999,503.5612999999999,506.1480874999999,508.73487499999993,511.3216624999999,513.9084499999999,516.4952374999999,519.0820249999999,521.6688125,524.2556,526.8423874999999,529.4291749999999,532.0159624999999,534.6027499999999,537.1895374999999,539.7763249999999,542.3631124999999,544.9499,547.5366875,550.1234749999999,552.7102624999999,555.2970499999999,557.8838374999999,560.4706249999999,563.0574124999999,565.6442,568.2309874999999,570.8177749999999,573.4045624999999,575.9913499999999,578.5781374999999,581.1649249999999,583.7517124999999,588.9252875,591.5120749999999,594.0988624999999,596.6856499999999,599.2724374999999,601.8592249999999,604.4460124999999,607.0328,609.6195875,612.206375,614.7931624999999,617.3799499999999,619.9667374999999,622.5535249999999,625.1403124999999,627.7271,630.3138875,632.9006749999999,635.4874624999999,638.0742499999999,640.6610374999999,643.2478249999999,645.8346124999999,648.4214,651.0081875,653.594975,656.1817624999999,658.7685499999999,661.3553374999999,663.9421249999999,666.5289124999999,669.1157,671.7024875,674.2892749999999,676.8760625,679.4628499999999,682.0496374999999,684.6364249999999,687.2232124999999,689.81,690,692.3967875,694.983575,697.5703624999999,700.1571499999999,702.7439374999999,705.3307249999999,707.9175124999999,710.5043,713.0910875,715.6778749999999,718.2646625,720.8514499999999,723.4382374999999,726.0250249999999,728.6118124999999,731.1985999999999,733.7853875,736.372175,738.9589624999999,741.54575,744.1325374999999,746.7193249999999,749.3061124999999,751.8928999999999,754.4796875,757.0664749999999,759.6532625,762.2400499999999,764.8268375,767.4136249999999,770.0004124999999,772.5871999999999,775.1739875,777.760775,780.3475624999999,782.93435,785.5211374999999,788.1079249999999,790.6947124999999,795.8682875,798.4550749999999,801.0418625,803.6286499999999,806.2154375,808.8022249999999,811.3890124999999,813.9757999999999,816.5625875,819.149375,821.7361624999999,824.32295,826.9097374999999,829.496525,832.0833124999999,834.6700999999999,837.2568875,839.843675,842.4304625,845.0172499999999,847.6040375,850.1908249999999,852.7776124999999,855.3643999999999,857.9511875,860.537975,863.1247624999999,865.71155,868.2983374999999,870.885125,873.4719124999999,876.0586999999999,878.6454875,881.232275,883.8190625,886.4058499999999,888.9926375,891.5794249999999,894.1662124999999,896.7529999999999],"y":[17884.00495119027,17625.326201190266,17366.647451190263,17107.968701190268,16849.28995119027,16590.611201190266,16331.932451190265,16073.25370119027,15814.57495119027,15555.896201190268,15297.217451190269,15038.53870119027,14779.85995119027,14521.181201190268,14262.502451190268,14003.823701190266,13745.144951190263,13486.466201190276,13227.78745119029,12969.108701190313,12710.429951190377,12451.751201190562,12193.072451191063,11934.393701192404,11675.714951195885,11417.036201204704,11158.357451226584,10899.67870127956,10640.999951405183,10382.321201696763,10123.642452359336,9864.9637038339,9606.284957048709,9347.606213916742,9088.927478298649,8830.248757826237,8571.570067280652,8312.891434716561,8054.212912327546,7795.534595314171,7278.179386991835,7019.503308567624,6760.829286967164,6502.158761266284,6243.494072658688,5984.838960520663,5726.199289515927,5467.584092809053,5209.007036886571,4950.488433977349,4692.057946166162,4433.758137654837,4175.6490340696055,3917.813835496587,3660.3658981863005,3403.4570442808586,3147.287176528403,2892.11506509084,2638.270038715212,2386.164159067813,2136.3042954178495,1889.3033615401696,1645.8898452000453,1406.91467197669,1173.3544180461777,946.3099364724721,726.9995986290487,516.7465789362354,316.95992020118547,129.10949171174616,-45.304633048722735,-204.7874307126135,-347.8874749204747,-473.23711299390516,-579.5923873022957,-665.8707203570202,-731.1844273652127,-774.8683063069564,-796.4998711017245,-795.9112132917937,-794.9928273544174,-773.191967381274,-728.6833740222391,-662.9639414648805,-576.8276595911743,-471.25608947355295,-347.38591121735,-206.4736514483002,-49.859328231502786,121.06934496505346,304.91074526387365,500.2799262705139,705.8351179562123,920.2995747431601,1142.478517243353,1371.271194901317,1605.6783340550505,1844.8054195183554,2087.862384262326,2334.160352738241,2583.1061043556924,2834.1949028693994,3087.0022846413917,3341.1753240127614,3596.423806850396,3852.511652037197,4109.248831943023,4366.48396168016,4624.097656411346,4881.996697795603,5140.109005196269,5398.379373938122,5656.765920415752,5915.237160578419,6173.769642435242,6432.346052968909,6690.953723581242,6949.583464524449,7208.228666548041,7466.8846163323,7984.216421134646,8242.888311399589,8501.562528610999,8760.23830397462,9018.915115151596,9277.59260997791,9536.27055282401,9794.948787214253,10053.627210006573,10312.305753711622,10570.984374488035,10829.663044059977,11088.341744319268,11347.02046375055,11605.699195081093,11864.377933749358,12123.056676913438,12381.735422814598,12640.414170371741,12899.09291892443,13157.771668072064,13416.450417572947,13675.129167282435,13933.807917114247,14192.486667017476,14451.165416962112,14709.844166930567,14968.52291691275,15227.201666902716,15485.880416897135,15744.559166893965,16003.23791689224,16261.916666891282,16520.59541689078,16779.27416689049,17037.95291689032,17296.63166689024,17555.310416890185,17813.989166890166,18072.66791689017],"style":"dashed"},{"name":"Today","kind":"calculated","x":[482.8669999999999,485.4537874999999,488.04057499999993,490.6273624999999,493.2141499999999,495.8009374999999,498.38772499999993,500.9745124999999,503.5612999999999,506.1480874999999,508.73487499999993,511.3216624999999,513.9084499999999,516.4952374999999,519.0820249999999,521.6688125,524.2556,526.8423874999999,529.4291749999999,532.0159624999999,534.6027499999999,537.1895374999999,539.7763249999999,542.3631124999999,544.9499,547.5366875,550.1234749999999,552.7102624999999,555.2970499999999,557.8838374999999,560.4706249999999,563.0574124999999,565.6442,568.2309874999999,570.8177749999999,573.4045624999999,575.9913499999999,578.5781374999999,581.1649249999999,583.7517124999999,588.9252875,591.5120749999999,594.0988624999999,596.6856499999999,599.2724374999999,601.8592249999999,604.4460124999999,607.0328,609.6195875,612.206375,614.7931624999999,617.3799499999999,619.9667374999999,622.5535249999999,625.1403124999999,627.7271,630.3138875,632.9006749999999,635.4874624999999,638.0742499999999,640.6610374999999,643.2478249999999,645.8346124999999,648.4214,651.0081875,653.594975,656.1817624999999,658.7685499999999,661.3553374999999,663.9421249999999,666.5289124999999,669.1157,671.7024875,674.2892749999999,676.8760625,679.4628499999999,682.0496374999999,684.6364249999999,687.2232124999999,689.81,690,692.3967875,694.983575,697.5703624999999,700.1571499999999,702.7439374999999,705.3307249999999,707.9175124999999,710.5043,713.0910875,715.6778749999999,718.2646625,720.8514499999999,723.4382374999999,726.0250249999999,728.6118124999999,731.1985999999999,733.7853875,736.372175,738.9589624999999,741.54575,744.1325374999999,746.7193249999999,749.3061124999999,751.8928999999999,754.4796875,757.0664749999999,759.6532625,762.2400499999999,764.8268375,767.4136249999999,770.0004124999999,772.5871999999999,775.1739875,777.760775,780.3475624999999,782.93435,785.5211374999999,788.1079249999999,790.6947124999999,795.8682875,798.4550749999999,801.0418625,803.6286499999999,806.2154375,808.8022249999999,811.3890124999999,813.9757999999999,816.5625875,819.149375,821.7361624999999,824.32295,826.9097374999999,829.496525,832.0833124999999,834.6700999999999,837.2568875,839.843675,842.4304625,845.0172499999999,847.6040375,850.1908249999999,852.7776124999999,855.3643999999999,857.9511875,860.537975,863.1247624999999,865.71155,868.2983374999999,870.885125,873.4719124999999,876.0586999999999,878.6454875,881.232275,883.8190625,886.4058499999999,888.9926375,891.5794249999999,894.1662124999999,896.7529999999999],"y":[17770.859613630542,17512.1808636309,17253.50211363167,16994.823363633317,16736.14461363678,16477.465863643953,16218.787113658587,15960.10836368803,15701.429613746403,15442.750863860512,15184.072114080513,14925.393364498881,14666.714615283765,14408.035866736815,14149.357119391678,13890.678374180005,13631.99963270674,13373.320897700754,13114.642173742359,12855.963468421924,12597.284794160476,12338.606171032618,12079.927631086131,11821.249224865847,11562.571031139109,11303.893171208352,11045.215829705945,10786.539284424422,10527.863948569735,10269.190429860317,10010.519612156899,9751.85276680901,9493.191702649692,9234.53896554588,8975.898100580514,8717.273992240394,8458.67330030895,8200.105011381016,7941.581127847367,7683.117517624689,7166.460331245005,6908.328191725108,6650.382393457614,6392.678121310424,6135.2841343653745,5878.285284389338,5621.785285525457,5365.909707259716,5110.809147543967,4856.662526559263,4603.680424628641,4352.108371038126,4102.22997493167,3854.3697760293176,3608.8956827348043,3366.220859268163,3126.804922703082,2891.154315946958,2659.8217342717267,2433.4045011732574,2212.541813946091,1997.9108098736083,1790.2214394401994,1590.2101722127277,1398.6326024576952,1216.2550633736314,1043.8453991158044,882.1630806354447,731.9488828976746,593.9143656363854,468.73141609703725,357.022119247506,259.3492181824131,176.207414869461,108.01573942875939,55.11118570548797,17.7437732962685,-3.92684693635465,-9.83317360857518,0,1.340152700345243,25.457050079791316,66.3345237443823,122.34556411247604,193.125609179373,278.23918520357984,377.18759340390307,489.4172747511675,614.3286315845785,751.2850863685117,899.6221665129951,1058.656418932128,1227.6939778498217,1406.0386331018549,1592.9992725895768,1787.8966003968449,1990.069060231804,2198.8779212555414,2413.711509120935,2633.988588440661,2859.160923396575,3088.7150604339017,3322.173390774526,3559.0945608080797,3799.0733053959843,4041.739782980813,4286.7584924444145,4533.826850280888,4782.673503253727,5033.056446712499,5284.761012565174,5537.597783931837,5791.400486094311,6046.023895816201,6301.341803699303,6557.245057176397,6813.639705173842,7070.4452595277635,7327.593082969735,7585.024908949528,8100.551406059345,8358.569929225838,8616.718104446205,8874.971873142318,9133.311330799346,9391.72007658085,9650.184650702397,9908.694050644976,10167.239317573843,10425.81318475709,10684.40978031515,10943.02437723127,11201.653184187377,11460.293171433137,11718.941926525167,11977.597535381494,12236.258484662745,12494.923582021045,12753.591891233918,13012.262679675632,13270.935375959449,13529.60953592483,13788.284815437111,14046.960948722428,14305.637731179775,14564.315005798175,14822.992652462925,15081.670579568889,15340.34871746669,15599.027013360066,15857.705427347266,16116.383929360849,16375.06249680987,16633.741112769792,16892.41976459748,17151.09844287465,17409.77714060507,17668.455852605894,17927.134575048272,18185.813305111173],"style":"dashed"}],"annotations":[{"x":689.81,"text":"spot"},{"x":662.840364,"y":0,"text":"breakeven"},{"x":717.159636,"y":0,"text":"breakeven"}]},{"id":"distribution","title":"Lognormal density of the spot in 30 d","type":"area","x":{"label":"Spot","type":"number","unit":"currency","currency":"USD"},"y":{"label":"Density"},"series":[{"name":"Density","kind":"calculated","x":[482.8669999999999,485.4537874999999,488.04057499999993,490.6273624999999,493.2141499999999,495.8009374999999,498.38772499999993,500.9745124999999,503.5612999999999,506.1480874999999,508.73487499999993,511.3216624999999,513.9084499999999,516.4952374999999,519.0820249999999,521.6688125,524.2556,526.8423874999999,529.4291749999999,532.0159624999999,534.6027499999999,537.1895374999999,539.7763249999999,542.3631124999999,544.9499,547.5366875,550.1234749999999,552.7102624999999,555.2970499999999,557.8838374999999,560.4706249999999,563.0574124999999,565.6442,568.2309874999999,570.8177749999999,573.4045624999999,575.9913499999999,578.5781374999999,581.1649249999999,583.7517124999999,586.3385,588.9252875,591.5120749999999,594.0988624999999,596.6856499999999,599.2724374999999,601.8592249999999,604.4460124999999,607.0328,609.6195875,612.206375,614.7931624999999,617.3799499999999,619.9667374999999,622.5535249999999,625.1403124999999,627.7271,630.3138875,632.9006749999999,635.4874624999999,638.0742499999999,640.6610374999999,643.2478249999999,645.8346124999999,648.4214,651.0081875,653.594975,656.1817624999999,658.7685499999999,661.3553374999999,663.9421249999999,666.5289124999999,669.1157,671.7024875,674.2892749999999,676.8760625,679.4628499999999,682.0496374999999,684.6364249999999,687.2232124999999,692.3967875,694.983575,697.5703624999999,700.1571499999999,702.7439374999999,705.3307249999999,707.9175124999999,710.5043,713.0910875,715.6778749999999,718.2646625,720.8514499999999,723.4382374999999,726.0250249999999,728.6118124999999,731.1985999999999,733.7853875,736.372175,738.9589624999999,741.54575,744.1325374999999,746.7193249999999,749.3061124999999,751.8928999999999,754.4796875,757.0664749999999,759.6532625,762.2400499999999,764.8268375,767.4136249999999,770.0004124999999,772.5871999999999,775.1739875,777.760775,780.3475624999999,782.93435,785.5211374999999,788.1079249999999,790.6947124999999,793.2814999999999,795.8682875,798.4550749999999,801.0418625,803.6286499999999,806.2154375,808.8022249999999,811.3890124999999,813.9757999999999,816.5625875,819.149375,821.7361624999999,824.32295,826.9097374999999,829.496525,832.0833124999999,834.6700999999999,837.2568875,839.843675,842.4304625,845.0172499999999,847.6040375,850.1908249999999,852.7776124999999,855.3643999999999,857.9511875,860.537975,863.1247624999999,865.71155,868.2983374999999,870.885125,873.4719124999999,876.0586999999999,878.6454875,881.232275,883.8190625,886.4058499999999,888.9926375,891.5794249999999,894.1662124999999,896.7529999999999],"y":[5.512302501212361e-14,1.1980902254047744e-13,2.5633088325690943e-13,5.399658374677474e-13,1.1201669297547641e-12,2.2889995003420636e-12,4.608384991710502e-12,9.142896742543948e-12,1.787891279242542e-11,3.446745458175583e-11,6.55201852568844e-11,1.2283559643924216e-10,2.2716450220273483e-10,4.1448249675857316e-10,7.462809465023538e-10,1.326198228186003e-09,2.3264973772175606e-09,4.0295955733571565e-09,6.892242058416649e-09,1.1643239724570474e-08,1.9430063642374408e-08,3.2035627118733856e-08,5.2194073340348986e-08,8.404410171349507e-08,1.337701866715579e-07,2.1049621029583671e-07,3.2751241648455867e-07,5.039348359621582e-07,7.669156902276956e-07,1.1545425554732356e-06,1.7195815032468431e-06,2.5342326785203425e-06,3.6960728611960367e-06,5.33535496335743e-06,7.623815211039178e-06,1.078510084989892e-05,1.5106870690666261e-05,2.095453441003691e-05,2.8786482173235697e-05,3.917051355918533e-05,5.280100604283663e-05,7.051617342504477e-05,9.331456189089485e-05,0.0001223697275554469,0.00015904184943953153,0.00020488487358857977,0.00026164767712642866,0.0003312677055699163,0.0004158555917298239,0.0005176694259616738,0.0006390776263401651,0.0007825097574972534,0.0009503951638023847,0.0011450899020112057,0.0013687931561092283,0.0016234550588000824,0.0019106785875789498,0.0022316189001605016,0.0025868840727619625,0.0029764416546208907,0.003399535707109793,0.003854619018607253,0.004339304952043434,0.0048503428813172385,0.005383620413485583,0.005934194601671051,0.00649635317221097,0.007063705476986529,0.007629301508096161,0.008185775954213775,0.008725513015199787,0.009240826599376766,0.009724149673040784,0.01016822596734537,0.01056629700939443,0.010912277548108982,0.011200912886243064,0.011427912382554957,0.01159005440898412,0.011685259278039579,0.011672446371015029,0.011566154590914361,0.01139628539520923,0.011166373061945692,0.010880838087498812,0.010544852344765931,0.010164190224410017,0.00974507144400998,0.009294001158505833,0.008817612714403235,0.008322517892952625,0.007815168825171734,0.007301734980310437,0.006787997777121512,0.006279264490907955,0.005780302271896686,0.005295292289464126,0.004827803302398194,0.0043807833500678385,0.003956567777223586,0.0035569014524181103,0.0031829728157495188,0.0028354572886940864,0.0025145675851777592,0.002220108563175587,0.0019515344322305998,0.0017080063656329072,0.0014884488380449885,0.0012916033026643984,0.0011160781209589852,0.0009603939492790383,0.0008230240595234627,0.0007024293174608315,0.0005970877568346138,0.0005055188669674508,0.0004263028552836623,0.00035809525481595003,0.000299637322559042,0.00024976272070086883,0.00020740099317944233,0.00017157834890481975,0.00014141624464873015,0.00011612822919669501,9.501546973159953e-05,7.746133500706604e-05,6.292536062184686e-05,5.09368720548552e-05,4.108849298561786e-05,3.3029721242295784e-05,2.6460713486077695e-05,2.112638306902144e-05,1.6810883683003447e-05,1.3332524480563979e-05,1.0539140124489449e-05,8.303921397071508e-06,6.521698160534665e-06,5.105656139969408e-06,3.98446170984296e-06,3.099764119438017e-06,2.4040419293489925e-06,1.8587594251185859e-06,1.4327990449035125e-06,1.1011370744530345e-06,8.437317433666191e-07,6.445951685642805e-07,4.91023146192512e-07,3.729594444391178e-07,2.8247388522286895e-07,2.133360411927884e-07,1.6066876003893117e-07,1.2066792553373767e-07,9.037685505280048e-08,6.750551014681298e-08,5.028626289213273e-08,3.735932562058729e-08,2.7682128932223293e-08,2.0457938914832218e-08,1.507985673702916e-08,1.1087059964448902e-08,8.130742276758871e-09]}],"note":"Risk-neutral drift."}],"diagnostics":[{"name":"P&L today at the current spot","statistic":0,"pvalue":null,"conclusion":"With model premiums the position is worth exactly its cost today.","passed":true},{"name":"Martingale check","statistic":0.026249019431816123,"pvalue":null,"conclusion":"Discounted risk-neutral expected value at the horizon − cost = -0.0262 (zero in theory; quadrature error).","passed":true}],"assumptions":["Volatility = annualized close-to-close historical volatility of SPY over the last 63 sessions (2026-08-25 → 2026-11-20, ×√252): 17.21%. It is a backward-looking estimate, not the market's implied volatility.","Risk-free rate 4.00%, continuously compounded and flat over the life of the option (parameter, not observed).","Dividends: continuous yield of 0.00% (parameter; 0 means no dividend before expiry).","Exercise style: european.","Day count ACT/365: time to expiry = calendar days / 365.","Contract multiplier 100: prices and Greeks are per share unless a column says per contract.","All option legs are valued as European options with one flat volatility (no smile, no term structure); American early exercise and assignment risk are ignored.","Option quantities are contracts (× multiplier); stock quantities are shares. P&L = value of the position at the date shown − cost paid today (no financing of the premium).","Probabilities and expected P&L use a lognormal spot at the horizon under the risk-neutral drift r − q = 4.00%: they are model quantities, not real-world forecasts.","Model values are not quotes and not advice; past and model-based figures do not guarantee future results."],"warnings":["The volatility is historical, not implied: model prices can differ materially from quoted option prices.","2 of 2 leg premiums are model values (Black-Scholes-Merton at σ = 17.21%), not market quotes: give premiums to analyse a real trade.","The profit is unbounded as the spot rises; the maximum profit is not a number."],"methodology":"**Black-Scholes-Merton** (European, continuous dividend yield $q$):\n$C = S e^{-qT} N(d_1) - K e^{-rT} N(d_2)$, $P = K e^{-rT} N(-d_2) - S e^{-qT} N(-d_1)$,\n$d_1 = \\frac{\\ln(S/K) + (r - q + \\sigma^2/2)T}{\\sigma\\sqrt{T}}$, $d_2 = d_1 - \\sigma\\sqrt{T}$.\nGreeks are the analytic derivatives: $\\Delta = \\pm e^{-qT}N(\\pm d_1)$, $\\Gamma = \\frac{e^{-qT}\\varphi(d_1)}{S\\sigma\\sqrt{T}}$,\nvega $= S e^{-qT}\\varphi(d_1)\\sqrt{T}$, vanna $= -e^{-qT}\\varphi(d_1)\\,d_2/\\sigma$, volga $=$ vega $\\cdot d_1 d_2/\\sigma$, charm $= \\partial\\Delta/\\partial t$.\nUnits: vega per volatility point, theta and charm per calendar day, rho per 1 % of rate.\n\n**Strategy**. Position value $V_t(S) = \\sum_i s_i n_i m_i \\, v_i(S, T_i - t)$ with $s_i = \\pm 1$, $n_i$ contracts, multiplier $m_i$ (1 for stock) and $v_i$\nthe Black-Scholes-Merton value (the payoff once expired). P&L$_t(S) = V_t(S) - V_0^{cost}$ where the cost uses the given premiums, or model values when none is given.\nThe horizon is the nearest option expiry. Breakevens are the roots of the horizon P&L (Brent). When all legs expire at the horizon the P&L is piecewise linear,\nso its extremes over $S \\ge 0$ are exact (reached at a strike, at 0, or unbounded when the slope for large $S$, net calls + stock, is non-zero).\nProbability of profit and expected P&L integrate the horizon P&L over $\\ln S_T \\sim N(\\ln S + (\\mu - \\sigma^2/2)T, \\sigma^2 T)$ on 20 001 equal-probability nodes,\nwith $\\mu = r - q$ unless a drift is given. Net Greeks are the signed sums of the leg Greeks today.","provenance":{"data":[{"symbol":"SPY","provider":"FMP","retrievedAt":"2026-11-20T23:35:34+00:00","start":"2026-06-29","end":"2026-11-20","observations":103,"frequency":"1d","adjusted":"split_div","currency":null}],"spec":{"symbol":"SPY","mode":"strategy","option_type":"call","style":"european","strike":null,"expiry_days":30,"multiplier":100,"spot":689.81,"volatility":0.1720796239427206,"vol_window":63,"rate":0.04,"dividend_yield":0,"dividends":null,"market_price":null,"steps":500,"simulations":100000,"seed":12345,"template":"straddle","legs":null,"width":0.05,"far_expiry_days":60,"drift":0.04,"provider":"auto","trade_date":null,"max_dte":180,"min_dte":2,"strike_window":0.3,"min_open_interest":10,"max_rel_spread":0.5,"volatilitySource":"historical_63d","driftIsRiskNeutral":true,"dayCount":"ACT/365","resolvedLegs":[{"type":"call","side":"long","strike":690,"expiry_days":30,"quantity":1,"premium":14.61720193184874,"premiumSource":"model"},{"type":"put","side":"long","strike":690,"expiry_days":30,"quantity":1,"premium":12.542433727749199,"premiumSource":"model"}]},"seed":null,"software":{"python":"3.14.4","numpy":"2.4.6","pandas":"3.0.3","scipy":"1.17.1","statsmodels":"0.14.6","arch":"8.0.0","scikit-learn":"1.8.0"},"computedAt":"2026-11-20T23:35:34+00:00","durationMs":3542,"reproduce":"from vqlab.options import normalize_legs, strategy_analytics\nlegs = normalize_legs([{'type': 'call', 'side': 'long', 'strike': 690.0, 'expiry_days': 30.0, 'quantity': 1.0, 'premium': 14.61720193184874}, {'type': 'put', 'side': 'long', 'strike': 690.0, 'expiry_days': 30.0, 'quantity': 1.0, 'premium': 12.542433727749199}], 100)\na = strategy_analytics(legs, 689.81, 0.04, 0.0, 0.1720796239427206, 0.04)\nprint(a[\"cost\"], a[\"breakevens\"], a[\"maxProfit\"], a[\"maxLoss\"], a[\"pop\"], a[\"expectedPnl\"])"}}}}2