Until this week, if you put an iron condor on my options desk and pressed the Greeks key, you got sixteen numbers: delta, theta, vega and gamma for every leg. The number I needed wasn't there. Which way does the whole trade lean?
Why the net is the whole point
In a spread, the legs fight each other on purpose. One leg wants the stock up and the other wants it down. So the number you care about is the net: how much the position moves when the stock moves a dollar, and how much it makes or loses per day.
A list of legs leaves you doing that math in your head, live, with money on the line. It's a grocery receipt that lists every item and never prints a total.
The second bug, found by reading the code
While reading that code, my coding assistant found a second problem. The Greeks key sorted the legs into a put side and a call side. On my usual trades, plain two-leg spreads, that sorting happened to work, so it looked fine.
A butterfly has a middle leg with two contracts. A straddle has both sides at one strike. Those rows came out wrong.
It was caught by reading the code, before I ever pressed that key on a butterfly. The other way to find a bug like that costs money.
The fix: one list
Two changes, with the checks written first (11 of them, all failing on the old code):
- The Greeks key now reads the exact list of legs the desk sends to the broker, with the same lots and the same direction. There is no second copy.
- It adds them up, per share and per position. Sold legs flip their sign before they go in the total.
Here is a simplified version of the sum. It shows the idea and isn't the desk's code:
def net_greeks(legs, lots): """legs: the same list the order is built from. Each leg has an action, a ratio (2 for a butterfly's middle leg) and its Greeks per share.""" per_share = {"delta": 0.0, "theta": 0.0, "vega": 0.0, "gamma": 0.0} for leg in legs: sign = -1 if leg["action"] == "SELL" else 1 for g in per_share: per_share[g] += sign * leg["ratio"] * leg[g] per_position = {g: v * 100 * lots for g, v in per_share.items()} return per_share, per_position The butterfly's middle leg is now one line, SELL 2, and it counts twice in the total.
What it printed, live in the sandbox
SPY, December 31 expiration, captured November 19, 2026, 10:24 to 10:25 ET. One lot each, per position:
| Trade | Legs | Net delta | Theta per day |
|---|---|---|---|
| Put credit spread | sold 701P, bought 696P | +2.51 | +0.50 |
| Iron condor | 670/680P, 770/780C | -3.22 | +4.83 |
| Butterfly | 727P / 732P x2 / 737P | +0.06 | +0.31 |
The put credit spread makes about two and a half dollars if SPY goes up a dollar. The iron condor leans a hair bearish, and its vega is -24: if implied volatility jumps one point, it's down about twenty-four dollars. The butterfly is basically flat.
My coding assistant redid every one of those totals by hand from the leg lines. Flip the sold legs, add them up. They all match.
Two clocks on one screen
This one I didn't expect. When I pressed the key live, the quotes on my desk were a few seconds old and the Greeks were about two minutes old. Same screen, same trade, two different clocks.
So every leg line now prints when its Greeks were made. When the legs came in at different times, the desk prints one more line: the oldest leg it used, and how old it was.
What's still missing
The portfolio view still doesn't total gamma. Rho isn't on my desk anywhere yet; the desk doesn't even ask the data feed for it.
The thing to steal
If your tool shows you numbers about a trade, make sure it reads the same data it sends. One list, never two copies. And print how old every number is.
I keep a free one-page checklist of every check from my channel, and this one is on it: https://docs.google.com/forms/d/e/1FAIpQLSeTR4fRmq3iSv9BrDqCU-imTfgdlz_mcP1FLwl4JnRPGPRxOw/viewform?usp=pp_url&entry.1357287784=dd014
Sandbox only. Not investment advice.

