Repository Public
1{"job":{"id":"a7e6a5b0-4307-4345-a504-10f2f929b6c2","tool":"options_lab","params":{"symbol":"SPY","mode":"price","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":1795217762035,"finishedAt":1795217767853,"error":null,"progress":1,"engineVersion":"1.0.0","durationMs":5818,"projectId":null,"sessionId":null,"cancellable":false,"code":"from vqlab.options import bsm_price, bsm_greeks, crr_price, mc_price\nS, K, T, r, q, sigma = 689.81, 690.0, 30/365, 0.04, 0.0, 0.1720796239427206\nprint(bsm_price(S, K, T, r, q, sigma, \"call\"), bsm_greeks(S, K, T, r, q, sigma, \"call\"))\nprint(crr_price(689.81, K, T, r, q, sigma, \"call\", american=False, steps=500, dividends=[]))\nprint(mc_price(S, K, T, r, q, sigma, \"call\", n=100000, seed=12345))","result":{"success":true,"schema":"lab/1","engine":"options_lab","engineVersion":"1.0.0","title":"Options Lab — SPY (price)","headline":"SPY european call K=690, 30 d: Black-Scholes-Merton value 14.6172 per share with σ = 17.21% (historical 63d), spot 689.81; early-exercise premium 0.0000.","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":"Strike","value":690,"unit":"currency","kind":"assumption","currency":"USD"},{"label":"Time to expiry","value":30,"unit":"days","kind":"assumption"},{"label":"Risk-free rate","value":0.04,"unit":"percent","kind":"assumption"},{"label":"Dividend yield","value":0,"unit":"percent","kind":"assumption"},{"label":"Model price — Black-Scholes-Merton","value":14.61720193184874,"unit":"currency","kind":"calculated","decimals":4,"currency":"USD"},{"label":"Price per contract","value":1461.720193184874,"unit":"currency","kind":"calculated","currency":"USD"},{"label":"Early-exercise premium","value":0,"unit":"currency","kind":"calculated","decimals":4,"note":"American tree − European tree, same steps","currency":"USD"},{"label":"Monte Carlo price (European)","value":14.597982320068922,"unit":"currency","kind":"calculated","decimals":4,"note":"± 0.0160 standard error","currency":"USD"},{"label":"Delta","value":0.5341578623978147,"unit":null,"kind":"calculated","decimals":5,"note":"analytic"},{"label":"Gamma","value":0.011679954066907838,"unit":null,"kind":"calculated","decimals":5,"note":"analytic"},{"label":"Vega","value":0.7860640692710048,"unit":null,"kind":"calculated","decimals":5,"note":"analytic"},{"label":"Theta","value":-0.26422079013187305,"unit":null,"kind":"calculated","decimals":5,"note":"analytic"},{"label":"Rho","value":0.2908358080510584,"unit":null,"kind":"calculated","decimals":5,"note":"analytic"}],"tables":[{"id":"prices","title":"Price by model","columns":[{"key":"model","label":"Model","type":"text"},{"key":"style","label":"Style","type":"text"},{"key":"price","label":"Price","unit":"currency","decimals":4,"currency":"USD","type":"number"},{"key":"diff","label":"vs BSM","unit":"currency","decimals":4,"currency":"USD","type":"number"},{"key":"note","label":"Note","type":"text"}],"rows":[{"model":"Black-Scholes-Merton","style":"European","price":14.61720193184874,"diff":0,"note":"closed form"},{"model":"CRR binomial, 500 steps","style":"European","price":14.613577201182851,"diff":-0.0036247306658889755,"note":"converges to BSM as steps grow"},{"model":"CRR binomial, 500 steps","style":"American","price":14.613577201182851,"diff":-0.0036247306658889755,"note":"early-exercise premium 0.0000"},{"model":"Monte Carlo, 100000 paths","style":"European","price":14.597982320068922,"diff":-0.01921961177981757,"note":"SE 0.01601, 95 % CI [14.5666, 14.6294]"}]},{"id":"greeks","title":"Greeks","columns":[{"key":"greek","label":"Greek","type":"text"},{"key":"bsm","label":"BSM analytic (European)","decimals":6,"type":"number"},{"key":"tree","label":"Tree bump (european)","decimals":6,"type":"number"},{"key":"contract","label":"Per contract","decimals":4,"type":"number"},{"key":"unit","label":"Unit","type":"text"}],"rows":[{"greek":"Delta","bsm":0.5341578623978147,"tree":0.5335870383908795,"contract":53.41578623978147,"unit":"per 1.00 of spot"},{"greek":"Gamma","bsm":0.011679954066907838,"tree":0.011663398306081554,"contract":1.1679954066907838,"unit":"delta per 1.00 of spot"},{"greek":"Vega","bsm":0.7860640692710048,"tree":0.7855807817701406,"contract":78.60640692710048,"unit":"per 1 volatility point"},{"greek":"Theta","bsm":-0.26422079013187305,"tree":-0.2659977450444906,"contract":-26.422079013187304,"unit":"per calendar day"},{"greek":"Rho","bsm":0.2908358080510584,"tree":0.2908253060727617,"contract":29.08358080510584,"unit":"per 1 % of rate"},{"greek":"Vanna","bsm":-0.0008406084481826192,"tree":-0.00031865416064918994,"contract":-0.08406084481826193,"unit":"delta per 1 volatility point"},{"greek":"Volga","bsm":0.00014251143843146865,"tree":0.000143140784848228,"contract":0.014251143843146866,"unit":"vega per 1 volatility point"},{"greek":"Charm","bsm":-0.0006418673515823512,"tree":-0.0009332510345447798,"contract":-0.06418673515823511,"unit":"delta per calendar day"}]}],"charts":[{"id":"price_vs_spot","title":"Option value against the spot","type":"payoff","x":{"label":"Spot","type":"number","unit":"currency","currency":"USD"},"y":{"label":"Value per share","unit":"currency","currency":"USD"},"series":[{"name":"BSM (European) today","kind":"calculated","x":[344.905,353.52762499999994,362.15024999999997,370.772875,379.39549999999997,388.01812499999994,396.64074999999997,405.263375,413.88599999999997,422.50862499999994,431.13124999999997,439.753875,448.37649999999996,456.99912499999994,465.62174999999996,474.244375,482.86699999999996,491.48962499999993,500.11224999999996,508.734875,517.3575,525.9801249999999,534.60275,543.225375,551.848,560.4706249999999,569.0932499999999,577.715875,586.3385,594.9611249999999,603.58375,612.206375,620.829,629.4516249999999,638.0742499999999,646.696875,655.3195,663.9421249999999,672.56475,681.187375,689.81,698.4326249999999,707.0552499999999,715.677875,724.3004999999999,732.9231249999999,741.54575,750.168375,758.7909999999999,767.4136249999999,776.0362499999999,784.658875,793.2814999999999,801.9041249999999,810.52675,819.149375,827.7719999999999,836.3946249999999,845.0172499999999,853.639875,862.2624999999999,870.8851249999999,879.50775,888.130375,896.7529999999999,905.3756249999999,913.9982499999999,922.620875,931.2434999999999,939.8661249999999,948.48875,957.111375,965.7339999999999,974.3566249999999,982.9792499999999,991.601875,1000.2244999999999,1008.8471249999999,1017.46975,1026.092375,1034.715],"y":[1.5439573438657007e-44,1.6279092912162155e-41,1.1428126001285042e-38,5.476134941729409e-36,1.832650212863751e-33,4.3749729250351905e-31,7.59717372891614e-29,9.7717580382069e-27,9.467416301548733e-25,7.017878106787208e-23,4.038341939015572e-21,1.8285306504387333e-19,6.597681340459244e-18,1.9195579537528562e-16,4.5534026805008475e-15,8.898172315051551e-14,1.4465264167042826e-12,1.974205412947836e-11,2.2816442341709925e-10,2.2512883147236915e-09,1.911112845884461e-08,1.405985434979769e-07,9.026511072320401e-07,5.09051046843035e-06,2.5376320004226807e-05,0.00011249263323724612,0.0004460061156180625,0.0015902840515313876,0.005126674751190774,0.01501963202027179,0.040189881404339545,0.09870206464507714,0.22354397833432849,0.46910361151105207,0.9163494377150201,1.673943922399559,2.8727548339060434,4.652836260030654,7.144568934691762,10.448196869071353,14.61720193184874,19.650104572637076,25.492666170538655,32.0492502644139,39.19962875021372,46.81664415566388,54.780881548831644,62.990223077088785,71.36400375746143,79.84281949467459,88.38561903973334,96.96565051042978,105.56640940550164,114.1782245477333,122.79569850396092,131.4159553556342,140.0375289398894,148.65970270331013,157.28214033022687,165.90468997961602,174.52728560717514,183.149899498649,191.77252041905274,200.395143962941,209.0177684574046,217.64039328654326,226.2630182302812,234.88564321221804,243.50826820655914,252.1308932048281,260.7535182043108,269.37614320415946,277.9987682041161,286.62139320410404,295.2440182041006,303.8666432040999,312.48926820409963,321.1118932040995,329.73451820409946,338.35714320409954,346.9797682040996]},{"name":"Payoff at expiry","kind":"calculated","x":[344.905,353.52762499999994,362.15024999999997,370.772875,379.39549999999997,388.01812499999994,396.64074999999997,405.263375,413.88599999999997,422.50862499999994,431.13124999999997,439.753875,448.37649999999996,456.99912499999994,465.62174999999996,474.244375,482.86699999999996,491.48962499999993,500.11224999999996,508.734875,517.3575,525.9801249999999,534.60275,543.225375,551.848,560.4706249999999,569.0932499999999,577.715875,586.3385,594.9611249999999,603.58375,612.206375,620.829,629.4516249999999,638.0742499999999,646.696875,655.3195,663.9421249999999,672.56475,681.187375,689.81,698.4326249999999,707.0552499999999,715.677875,724.3004999999999,732.9231249999999,741.54575,750.168375,758.7909999999999,767.4136249999999,776.0362499999999,784.658875,793.2814999999999,801.9041249999999,810.52675,819.149375,827.7719999999999,836.3946249999999,845.0172499999999,853.639875,862.2624999999999,870.8851249999999,879.50775,888.130375,896.7529999999999,905.3756249999999,913.9982499999999,922.620875,931.2434999999999,939.8661249999999,948.48875,957.111375,965.7339999999999,974.3566249999999,982.9792499999999,991.601875,1000.2244999999999,1008.8471249999999,1017.46975,1026.092375,1034.715],"y":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8.432624999999916,17.055249999999887,25.677874999999972,34.30049999999994,42.923124999999914,51.54575,60.16837499999997,68.79099999999994,77.41362499999991,86.03624999999988,94.65887499999997,103.28149999999994,111.90412499999991,120.52674999999999,129.14937499999996,137.77199999999993,146.3946249999999,155.01724999999988,163.63987499999996,172.26249999999993,180.8851249999999,189.50775,198.13037499999996,206.75299999999993,215.3756249999999,223.99824999999987,232.62087499999996,241.24349999999993,249.8661249999999,258.48875,267.11137499999995,275.7339999999999,284.3566249999999,292.97924999999987,301.60187499999995,310.2244999999999,318.8471249999999,327.46975,336.09237499999995,344.7149999999999],"style":"dashed"}],"annotations":[{"x":689.81,"text":"spot"},{"x":690,"text":"strike"}]},{"id":"delta_vs_spot","title":"Delta against the spot (BSM)","type":"line","x":{"label":"Spot","type":"number","unit":"currency","currency":"USD"},"y":{"label":"Delta (per 1.00 of spot)","unit":null},"series":[{"name":"Delta","kind":"calculated","x":[344.905,353.52762499999994,362.15024999999997,370.772875,379.39549999999997,388.01812499999994,396.64074999999997,405.263375,413.88599999999997,422.50862499999994,431.13124999999997,439.753875,448.37649999999996,456.99912499999994,465.62174999999996,474.244375,482.86699999999996,491.48962499999993,500.11224999999996,508.734875,517.3575,525.9801249999999,534.60275,543.225375,551.848,560.4706249999999,569.0932499999999,577.715875,586.3385,594.9611249999999,603.58375,612.206375,620.829,629.4516249999999,638.0742499999999,646.696875,655.3195,663.9421249999999,672.56475,681.187375,689.81,698.4326249999999,707.0552499999999,715.677875,724.3004999999999,732.9231249999999,741.54575,750.168375,758.7909999999999,767.4136249999999,776.0362499999999,784.658875,793.2814999999999,801.9041249999999,810.52675,819.149375,827.7719999999999,836.3946249999999,845.0172499999999,853.639875,862.2624999999999,870.8851249999999,879.50775,888.130375,896.7529999999999,905.3756249999999,913.9982499999999,922.620875,931.2434999999999,939.8661249999999,948.48875,957.111375,965.7339999999999,974.3566249999999,982.9792499999999,991.601875,1000.2244999999999,1008.8471249999999,1017.46975,1026.092375,1034.715],"y":[1.284372221485387e-44,1.2749345157747982e-41,8.428047304667812e-39,3.80350547597375e-36,1.198899744621046e-33,2.695747731434234e-31,4.4089524903421865e-29,5.340548156447741e-27,4.871869030942388e-25,3.3994800215291094e-23,1.8408285679056146e-21,7.840533634680271e-20,2.659896050461976e-18,7.272223444179636e-17,1.6200247255380861e-15,2.9709496228891345e-14,4.5287593468492344e-13,5.790431309082259e-12,6.263175725568597e-11,5.777239078091724e-10,4.579112298129858e-09,3.141157798127303e-08,1.8775524548542692e-07,9.841984243216616e-07,4.552155977222636e-06,1.8686368383713508e-05,6.845754463237368e-05,0.00022501913978315266,0.0006670246723675898,0.0017919771668872815,0.00438397784364468,0.009812339113855713,0.020184922070222065,0.03833424272076386,0.06751413527548773,0.11076350990232892,0.17004299213785895,0.24540449478692683,0.3345188425843997,0.43280098482416646,0.5341578623978147,0.6321420304945922,0.7211456356827513,0.797281321179533,0.8587473745450844,0.9056768751867618,0.9396299436202575,0.9629514911567593,0.978187434341659,0.9876709805250224,0.9933045862919943,0.9965035684200605,0.9982426272449965,0.999149058014006,0.9996026740469423,0.9998209304072089,0.9999220274769351,0.9999671662625964,0.9999866165686867,0.9999947144980242,0.9999979757113251,0.9999992474874596,0.9999997282378206,0.999999904573718,0.9999999673929859,0.9999999891490217,0.999999996480485,0.9999999988865148,0.9999999996561286,0.9999999998962638,0.9999999999694091,0.9999999999911758,0.9999999999975084,0.999999999999311,0.9999999999998133,0.9999999999999504,0.999999999999987,0.9999999999999967,0.9999999999999991,0.9999999999999998,1]}],"annotations":[{"x":689.81,"text":"spot"}]},{"id":"gamma_vs_spot","title":"Gamma against the spot (BSM)","type":"line","x":{"label":"Spot","type":"number","unit":"currency","currency":"USD"},"y":{"label":"Gamma (delta per 1.00 of spot)","unit":null},"series":[{"name":"Gamma","kind":"calculated","x":[344.905,353.52762499999994,362.15024999999997,370.772875,379.39549999999997,388.01812499999994,396.64074999999997,405.263375,413.88599999999997,422.50862499999994,431.13124999999997,439.753875,448.37649999999996,456.99912499999994,465.62174999999996,474.244375,482.86699999999996,491.48962499999993,500.11224999999996,508.734875,517.3575,525.9801249999999,534.60275,543.225375,551.848,560.4706249999999,569.0932499999999,577.715875,586.3385,594.9611249999999,603.58375,612.206375,620.829,629.4516249999999,638.0742499999999,646.696875,655.3195,663.9421249999999,672.56475,681.187375,689.81,698.4326249999999,707.0552499999999,715.677875,724.3004999999999,732.9231249999999,741.54575,750.168375,758.7909999999999,767.4136249999999,776.0362499999999,784.658875,793.2814999999999,801.9041249999999,810.52675,819.149375,827.7719999999999,836.3946249999999,845.0172499999999,853.639875,862.2624999999999,870.8851249999999,879.50775,888.130375,896.7529999999999,905.3756249999999,913.9982499999999,922.620875,931.2434999999999,939.8661249999999,948.48875,957.111375,965.7339999999999,974.3566249999999,982.9792499999999,991.601875,1000.2244999999999,1008.8471249999999,1017.46975,1026.092375,1034.715],"y":[1.0594266415283494e-44,9.895922372069441e-42,6.156868712850555e-39,2.6153357716172932e-36,7.759836484726543e-34,1.6423311727749135e-31,2.528037234782993e-29,2.881534918713515e-27,2.4729477272563613e-25,1.622822919460465e-23,8.261040096448835e-22,3.3061075168541034e-20,1.0532586816300497e-18,2.7023727396485826e-17,5.645115471193753e-16,9.699265968976732e-15,1.3838358433536862e-13,1.6542199320523896e-12,1.670745080643832e-11,1.4370132586250972e-10,1.0603930851289547e-09,6.760236516933061e-09,3.748040567155761e-08,1.8184031131479345e-07,7.765414816045076e-07,2.9351638737178985e-06,9.871130542891456e-06,2.9683820880829467e-05,8.019154102684055e-05,0.00019548978980341372,0.0004318546314866122,0.0008679744395885682,0.001593244880750756,0.002680604239504866,0.004148095438128817,0.005923106941502609,0.007828635442769226,0.0096060546620526,0.010973698947654993,0.011702528598423715,0.011679954066907838,0.010937115411112608,0.009631244214236955,0.007993785437570499,0.00626675799683267,0.00464989509816639,0.0032719328038420116,0.0021874671369261,0.0013919871732905713,0.00084456576098019,0.0004893880146803467,0.0002712579777469834,0.00014403925087784288,7.338066133777906e-05,3.5916407319803896e-05,1.6912145997366184e-05,7.671147450990186e-06,3.355963095943527e-06,1.4177118608801865e-06,5.789908038877882e-07,2.288486453362084e-07,8.763550850486905e-08,3.254706890581809e-08,1.1734705173633975e-08,4.1112497242265855e-09,1.4009246500177744e-09,4.647062239777664e-10,1.501878642885279e-10,4.73304432961088e-11,1.4555927007926384e-11,4.371846480185857e-12,1.283324044723343e-12,3.684374591158579e-13,1.0352525098678484e-13,2.848870947168323e-14,7.682850905847617e-15,2.0317254264341235e-15,5.27183101376911e-16,1.3429630585247574e-16,3.3605996046359316e-17,8.265243490785489e-18]}],"annotations":[{"x":689.81,"text":"spot"}]},{"id":"vega_vs_spot","title":"Vega against the spot (BSM)","type":"line","x":{"label":"Spot","type":"number","unit":"currency","currency":"USD"},"y":{"label":"Vega (per 1 volatility point)","unit":"currency","currency":"USD"},"series":[{"name":"Vega","kind":"calculated","x":[344.905,353.52762499999994,362.15024999999997,370.772875,379.39549999999997,388.01812499999994,396.64074999999997,405.263375,413.88599999999997,422.50862499999994,431.13124999999997,439.753875,448.37649999999996,456.99912499999994,465.62174999999996,474.244375,482.86699999999996,491.48962499999993,500.11224999999996,508.734875,517.3575,525.9801249999999,534.60275,543.225375,551.848,560.4706249999999,569.0932499999999,577.715875,586.3385,594.9611249999999,603.58375,612.206375,620.829,629.4516249999999,638.0742499999999,646.696875,655.3195,663.9421249999999,672.56475,681.187375,689.81,698.4326249999999,707.0552499999999,715.677875,724.3004999999999,732.9231249999999,741.54575,750.168375,758.7909999999999,767.4136249999999,776.0362499999999,784.658875,793.2814999999999,801.9041249999999,810.52675,819.149375,827.7719999999999,836.3946249999999,845.0172499999999,853.639875,862.2624999999999,870.8851249999999,879.50775,888.130375,896.7529999999999,905.3756249999999,913.9982499999999,922.620875,931.2434999999999,939.8661249999999,948.48875,957.111375,965.7339999999999,974.3566249999999,982.9792499999999,991.601875,1000.2244999999999,1008.8471249999999,1017.46975,1026.092375,1034.715],"y":[1.7824924913304019e-43,1.7492860375867182e-40,1.1420768019399146e-37,5.085119948311589e-35,1.5797732630272003e-32,3.49721715602935e-30,5.625174068774153e-28,6.693548878173109e-26,5.991481843854964e-24,4.097322317028516e-22,2.1717587262071582e-20,9.04261751960052e-19,2.9948741084578084e-17,7.982406255079239e-16,1.7310004706290118e-14,3.0853261774060403e-13,4.563493809300994e-12,5.65170906219034e-11,5.910211391170254e-10,5.260192465790207e-09,4.0142667132592976e-08,2.6451992877991585e-07,1.5150413921856632e-06,7.5894115095807316e-06,3.344732917906074e-05,0.00013040549835348472,0.00045215944061399136,0.0014012197310124435,0.00389926921676602,0.009787214296766494,0.022252074130264785,0.04601087262213561,0.08685290739830397,0.15021567608662592,0.23886307332646178,0.35035549799584303,0.4754995285471127,0.5989124489444219,0.7020678462704946,0.7680168177139586,0.7860640692710048,0.7545876084604078,0.6809997247393259,0.5790892571684274,0.46498434612489137,0.35327901689552116,0.2544708935795763,0.1741072591837329,0.11335414725140298,0.07034776768374068,0.04168455642240477,0.023621210008376213,0.012820157041606994,0.006673971611875693,0.0033372245654522768,0.0016050285653339707,0.0007434292309143876,0.0003320454101662255,0.00014317822054501564,5.967314006792477e-05,2.406496212036275e-05,9.400689210016669e-06,3.5608121514383747e-06,1.3091320898961851e-06,4.6760309000007863e-07,1.6241652399454144e-07,5.4906916645951034e-08,1.8081698914437165e-08,5.8053033663326535e-09,1.8185686556017637e-09,5.562718841636598e-10,1.6627200179679162e-10,4.860004376574242e-11,1.390080706026928e-11,3.893312959697083e-12,1.0684517690050414e-12,2.8748674823364124e-13,7.588746413252059e-14,1.9663685411073844e-14,5.004348328090047e-15,1.2515695278419653e-15]}],"annotations":[{"x":689.81,"text":"spot"}]},{"id":"theta_vs_spot","title":"Theta against the spot (BSM)","type":"line","x":{"label":"Spot","type":"number","unit":"currency","currency":"USD"},"y":{"label":"Theta (per calendar day)","unit":"currency","currency":"USD"},"series":[{"name":"Theta","kind":"calculated","x":[344.905,353.52762499999994,362.15024999999997,370.772875,379.39549999999997,388.01812499999994,396.64074999999997,405.263375,413.88599999999997,422.50862499999994,431.13124999999997,439.753875,448.37649999999996,456.99912499999994,465.62174999999996,474.244375,482.86699999999996,491.48962499999993,500.11224999999996,508.734875,517.3575,525.9801249999999,534.60275,543.225375,551.848,560.4706249999999,569.0932499999999,577.715875,586.3385,594.9611249999999,603.58375,612.206375,620.829,629.4516249999999,638.0742499999999,646.696875,655.3195,663.9421249999999,672.56475,681.187375,689.81,698.4326249999999,707.0552499999999,715.677875,724.3004999999999,732.9231249999999,741.54575,750.168375,758.7909999999999,767.4136249999999,776.0362499999999,784.658875,793.2814999999999,801.9041249999999,810.52675,819.149375,827.7719999999999,836.3946249999999,845.0172499999999,853.639875,862.2624999999999,870.8851249999999,879.50775,888.130375,896.7529999999999,905.3756249999999,913.9982499999999,922.620875,931.2434999999999,939.8661249999999,948.48875,957.111375,965.7339999999999,974.3566249999999,982.9792499999999,991.601875,1000.2244999999999,1008.8471249999999,1017.46975,1026.092375,1034.715],"y":[-5.160554547252583e-44,-5.066157464495271e-41,-3.308792850268578e-38,-1.47380384991063e-35,-4.5804263394452575e-33,-1.0144147460401724e-30,-1.6323777457578376e-28,-1.9433172045005743e-26,-1.740347001632315e-24,-1.1907729437266697e-22,-6.315121963447716e-21,-2.631001910929702e-19,-8.719256851786418e-18,-2.325559567558071e-16,-5.046664565721457e-15,-9.002127150075729e-14,-1.3326134456563103e-12,-1.6518786152089352e-11,-1.7291213551503077e-10,-1.5405823145412766e-09,-1.1770418016170143e-08,-7.765935714405068e-08,-4.454139430185434e-07,-2.23467145571619e-06,-9.865190508236812e-06,-3.8535630858525226e-05,-0.00013389961627537506,-0.00041594092365633144,-0.0011606066601783497,-0.0029221600350069496,-0.0066674598623372655,-0.013843393484349749,-0.026258163899484474,-0.04567468753430776,-0.07312634758738121,-0.10814819989816586,-0.14826992388576193,-0.1891136377754087,-0.22522560598476896,-0.25143061810781653,-0.26422079013187305,-0.26264632309468794,-0.24839491248284162,-0.22510132383532258,-0.19722478330872112,-0.16893388626169295,-0.14333800617938317,-0.12219528100159778,-0.10603053594551455,-0.09448904888337581,-0.08674466599417652,-0.08183753106601993,-0.07889007320153296,-0.07720653214253298,-0.07628960796113576,-0.07581229213444056,-0.07557430299240427,-0.07546043154814758,-0.07540805525289435,-0.07538485921699396,-0.0753749532050516,-0.07537086818293762,-0.07536923938269373,-0.07536861066769623,-0.07536837545645479,-0.07536829007566911,-0.07536825997224333,-0.07536824965271935,-0.07536824620996699,-0.07536824509117242,-0.0753682447367082,-0.07536824462712723,-0.0753682445940456,-0.07536824458428532,-0.07536824458146901,-0.07536824458067365,-0.07536824458045367,-0.07536824458039404,-0.07536824458037819,-0.07536824458037406,-0.075368244580373]}],"annotations":[{"x":689.81,"text":"spot"}]},{"id":"price_vs_time","title":"Option value against time to expiry (spot unchanged)","type":"line","x":{"label":"Calendar days to expiry","type":"number","unit":"days"},"y":{"label":"Value per share","unit":"currency","currency":"USD"},"series":[{"name":"BSM value","kind":"calculated","x":[30,29.5,29,28.5,28,27.5,27,26.5,26,25.5,25,24.5,24,23.5,23,22.5,22,21.5,21,20.5,20,19.5,19,18.5,18,17.5,17,16.5,16,15.5,15,14.5,14,13.5,13,12.5,12,11.5,11,10.5,10,9.5,9,8.5,8,7.5,7,6.5,6,5.5,5,4.5,4,3.5,3,2.5,2,1.5,1,0.5],"y":[14.61720193184874,14.484616442649326,14.351064559876932,14.216521185127704,14.08096011401517,13.944353966721508,13.806674112838266,13.667890589913725,13.5279720150495,13.386885488809185,13.244596490602419,13.101068764605202,12.956264195146048,12.810142670346238,12.662661932628225,12.51377741451796,12.363442057928694,12.211606114851293,12.058216927057401,11.903218682048532,11.74655214204546,11.588154342283644,11.427958254259636,11.265892408813727,11.10188047304149,10.935840773921598,10.767685760223685,10.597321392632807,10.424646450025307,10.24955173736214,10.071919177589677,9.891620766085737,9.708517361334316,9.52245727933996,9.33327465138666,9.140787494545634,8.944795431021078,8.745076974913331,8.541386281679365,8.333449224221908,8.120958616836504,7.903568349295142,7.680886110749327,7.452464265551839,7.217788272699352,6.976261788784257,6.727187213996444,6.469739851993836,6.202932917691896,5.925569088810732,5.636171678258336,5.332883854698821,5.01331566373193,4.674301428240028,4.311493549311933,3.9186334924555126,3.4861170069952436,2.9977798621892475,2.422115321736669,1.6778453335567178]}]},{"id":"theta_vs_time","title":"Theta against time to expiry (spot unchanged)","type":"line","x":{"label":"Calendar days to expiry","type":"number","unit":"days"},"y":{"label":"Theta (per calendar day)","unit":"currency","currency":"USD"},"series":[{"name":"Theta","kind":"calculated","x":[30,29.5,29,28.5,28,27.5,27,26.5,26,25.5,25,24.5,24,23.5,23,22.5,22,21.5,21,20.5,20,19.5,19,18.5,18,17.5,17,16.5,16,15.5,15,14.5,14,13.5,13,12.5,12,11.5,11,10.5,10,9.5,9,8.5,8,7.5,7,6.5,6,5.5,5,4.5,4,3.5,3,2.5,2,1.5,1,0.5],"y":[-0.26422079013187305,-0.2661291835776736,-0.2680867115065747,-0.2700955199735127,-0.2721578885799983,-0.2742762413521257,-0.27645315872151266,-0.2786913907438117,-0.2809938717087652,-0.28336373631830747,-0.28580433763556645,-0.2883192670385119,-0.29091237644833473,-0.29358780314551647,-0.29634999753730684,-0.299203754300619,-0.3021542473962275,-0.3052070695361564,-0.30836827678946127,-0.3116444391361989,-0.31504269793031003,-0.3185708314157394,-0.32223732966454416,-0.32605148058137606,-0.33002346895901447,-0.3341644909919886,-0.33848688718253467,-0.3430042972351579,-0.3477318413726242,-0.35268633357037654,-0.3578865335696641,-0.36335344628927024,-0.369110679544961,-0.3751848739893701,-0.3816062231616469,-0.3884091068520891,-0.3956328681671226,-0.40332277448657294,-0.41153121606034077,-0.4203192149723663,-0.42975834415352065,-0.4399331949899098,-0.4509445890552542,-0.4629138145838448,-0.47598829794466274,-0.4903493223712444,-0.506222728852555,-0.5238940640567294,-0.5437305385408564,-0.5662137371311906,-0.5919899144613752,-0.6219502646546942,-0.6573648561571329,-0.7001185382647371,-0.7531554237698274,-0.8213920149246091,-0.9138230242988828,-1.04924343512532,-1.2763392102749014,-1.7884986872430548]}]},{"id":"delta_vs_time","title":"Delta and gamma against time to expiry (spot unchanged)","type":"line","x":{"label":"Calendar days to expiry","type":"number","unit":"days"},"y":{"label":"Delta"},"series":[{"name":"Delta","kind":"calculated","x":[30,29.5,29,28.5,28,27.5,27,26.5,26,25.5,25,24.5,24,23.5,23,22.5,22,21.5,21,20.5,20,19.5,19,18.5,18,17.5,17,16.5,16,15.5,15,14.5,14,13.5,13,12.5,12,11.5,11,10.5,10,9.5,9,8.5,8,7.5,7,6.5,6,5.5,5,4.5,4,3.5,3,2.5,2,1.5,1,0.5],"y":[0.5341578623978147,0.5338354123628232,0.5335098725480365,0.5331811543096856,0.5328491647160813,0.5325138062538664,0.5321749765080647,0.531832567813033,0.5314864668710344,0.5311365543347103,0.5307827043492138,0.5304247840491707,0.5300626530049377,0.5296961626118157,0.5293251554149214,0.5289494643612996,0.5285689119695341,0.5281833094055459,0.5277924554514005,0.5273961353517185,0.5269941195196102,0.5265861620808389,0.5261719992310205,0.5257513473759404,0.5253239010192815,0.5248893303549647,0.5244472785125289,0.5239973583930949,0.5235391490198422,0.5230721913098078,0.5225959831521263,0.5221099736501527,0.5216135563493086,0.5211060612263344,0.5205867451552149,0.5200547804852668,0.5195092412603887,0.5189490864648179,0.5183731394846073,0.5177800627028293,0.5171683257662497,0.5165361655199354,0.515881534822963,0.5152020363041526,0.5144948353815936,0.513756544202893,0.5129830639619368,0.5121693662439146,0.5113091826803897,0.5103945525058677,0.5094151420774025,0.5083571831634804,0.5072017420928924,0.5059217430423352,0.5044764957229173,0.5028007353758165,0.5007800054005747,0.4981855891908662,0.49445268786745006,0.48745405744422593]}]}],"diagnostics":[{"name":"Put-call parity (BSM)","statistic":0,"pvalue":null,"conclusion":"C − P − (S·e^(−qT) − K·e^(−rT)) = 0.00e+00","passed":true},{"name":"Put-call parity (European tree)","statistic":3.460698394519568e-11,"pvalue":null,"conclusion":"The European tree satisfies parity within 3.46e-11.","passed":true},{"name":"Tree convergence to BSM","statistic":0.0036247306658889755,"pvalue":null,"conclusion":"European tree − BSM = -0.00362 with 500 steps (tolerance 0.3449).","passed":true},{"name":"Monte Carlo vs BSM","statistic":-1.200777516568678,"pvalue":null,"conclusion":"BSM lies inside the 95 % interval of the simulation (z-score reported; 1 in 20 seeds falls outside by chance).","passed":true},{"name":"American ≥ European","statistic":0,"pvalue":null,"conclusion":"The American value is at least the European value.","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.","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."],"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**Cox-Ross-Rubinstein tree** with $n$ = 500 steps: $u = e^{\\sigma\\sqrt{\\Delta t}}$, $d = 1/u$, $p = \\frac{e^{(r-q)\\Delta t} - d}{u - d}$;\nbackward induction $V = e^{-r\\Delta t}[pV_u + (1-p)V_d]$, and for the American option $V = \\max(V, \\text{exercise value})$ at every node.\nThe early-exercise premium is the American tree minus the European tree with the same steps. Discrete dividends use the escrowed model\n(tree on $S - PV(\\text{dividends})$, the present value of the remaining dividends added back at each node for the exercise test).\nTree Greeks are central finite differences (spot ±1 %, volatility ±1 point, rate ±1 bp, time −1 day).\n\n**Monte Carlo** (European): $S_T = S e^{(r-q-\\sigma^2/2)T + \\sigma\\sqrt{T}Z}$, antithetic pairs $(Z, -Z)$, and the discounted terminal price as\ncontrol variate, $\\hat V = \\bar Y - \\hat\\beta(\\bar X - S e^{-qT})$. The standard error is the sample standard deviation of the adjusted pair\naverages over $\\sqrt{\\text{pairs}}$; the interval is $\\pm 1.96$ standard errors. Seed 12345.","provenance":{"data":[{"symbol":"SPY","provider":"FMP","retrievedAt":"2026-11-20T23:36:07+00:00","start":"2026-06-29","end":"2026-11-20","observations":103,"frequency":"1d","adjusted":"split_div","currency":null}],"spec":{"symbol":"SPY","mode":"price","option_type":"call","style":"european","strike":690,"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":null,"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","dayCount":"ACT/365","discreteDividendModel":null},"seed":12345,"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:36:07+00:00","durationMs":4751,"reproduce":"from vqlab.options import bsm_price, bsm_greeks, crr_price, mc_price\nS, K, T, r, q, sigma = 689.81, 690.0, 30/365, 0.04, 0.0, 0.1720796239427206\nprint(bsm_price(S, K, T, r, q, sigma, \"call\"), bsm_greeks(S, K, T, r, q, sigma, \"call\"))\nprint(crr_price(689.81, K, T, r, q, sigma, \"call\", american=False, steps=500, dividends=[]))\nprint(mc_price(S, K, T, r, q, sigma, \"call\", n=100000, seed=12345))"}}}}2