Legging, in options trading, is the practice of building or unwinding a multi-part position one component at a time. Legging in means opening each leg of a spread, straddle or similar strategy with a separate order, and legging out means closing them separately. The alternative is to send all the parts together as a combination order priced as a package.
Traders leg when they hope to improve on the package price, for example by buying one option first and selling the other after the market has moved in their favour, or when quotes for the combined option spread are poor. The danger, often called legging risk, is that the market moves the wrong way between fills. The trader is then left with a worse net price or with a single unhedged option whose risk is far greater than that of the intended position. It is a form of execution risk, and may raise margin temporarily.