In the stock market, hedging takes place through the purchase or sale of financial instruments that offset the risks of an existing position. For example, an investor who owns a portfolio of stocks may purchase put options on the same stocks, which will provide protection against a decline in their value. Similarly, a futures contract can be used to lock in a price for a future purchase or sale of an asset, protecting against the possibility of price fluctuations.