Skip to main content

Example of a hedge strategy for a Mexican buyer of corn

Corn: collar + OTC swap · Exchange rate: USD/MXN forward · FZ2009B

1 The problem

A Mexican buyer of corn usually looks for a hedge strategy that protects him/her against possible price increases in the future.

Remember the process of acquiring the corn. The buyer buys from a supplier (national or international). The final price in MXN is made of:

  • Corn price (the reference price). It is usually defined with a corn futures contract from the CME (CBOT). The futures price reflects the price of corn at the CME delivery points in Illinois.
  • Basis. The extra amount the buyer pays to the supplier above the reference price: freight to the plant, logistics, import costs, quality and local supply and demand. The futures price does not include the local basis; the basis is added on top.
  • Exchange rate. The reference price is in US cents per bushel (¢/bu), so the peso cost also changes with the USD/MXN exchange rate.

\[ \text{Price paid in Mexico (MXN/t)} = \text{Futures price} \times \text{conversion} \times \text{USD/MXN} + \text{Basis} \]

What can we hedge with the CME? The corn price (corn futures and options) and the exchange rate (peso futures). The corn price can also be hedged over the counter (OTC) with a bank, for example with a commodity swap. The basis cannot be hedged with CME contracts.

Today is November 18, 2026. The exchange rate is about 18.59 pesos per USD.

Let’s go through a classical hedging strategy for a Mexican buyer. First we protect the corn price with three legs:

  • Leg 1: a long call (CME option on a corn future).
  • Leg 2: a short put (CME option on a corn future). Legs 1 and 2 together form a collar.
  • Leg 3: a commodity swap with a bank (OTC) for the same month.

Then we put the corn legs together (half of the purchase hedged with the collar and half with the swap), and finally we add a fourth leg to protect the exchange rate:

  • Leg 4: a USD/MXN forward with a bank (OTC) to buy the dollars needed for the purchase.

2 The collar strategy

A buyer collar has 2 legs:

  • 1 long call (buy a call) with strike price \(K_1\): it sets a ceiling on the price.
  • 1 short put (sell a put) with strike price \(K_2\): the premium received pays for part of the call, but it sets a floor: below \(K_2\) the buyer no longer benefits from lower prices.

\(K_2 < K_1\), and the underlying of both options is a corn future.

2.1 Which future?

Imagine I want to fix the price with my supplier in May 2027. My supplier and I agree that the May future (ZCK27) is the reference for the corn price.

For the options I need an underlying future whose options expire after the date I buy the corn, so that I am covered all the time from today until that date. Options on the May future expire on April 23, 2027, before I buy the corn in mid-May. Options on the July future (ZCN27) expire on June 25, 2027, after my purchase. So I use options on the July future, and I close (sell or buy back) both options on the day I buy the corn from my supplier.

NoteTwo different futures, two different roles
  • ZCK27 (May) is the reference for the price I pay my supplier. I do not trade it.
  • ZCN27 (July) is the underlying of my options. It determines the premiums and the payoffs.

2.2 Market data today (November 2026)

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

# Market today (Nov 2026), in US cents per bushel (¢/bu)
may_today  = 440.0   # ZCK27: reference for the supplier price
july_today = 450.0   # ZCN27: underlying of the options
spread     = july_today - may_today   # July - May spread (10 ¢/bu)

# Leg 1: long call on ZCN27
K1, prem_call = 460.0, 5.0    # strike and premium paid
# Leg 2: short put on ZCN27
K2, prem_put  = 430.0, 4.0    # strike and premium received
net_premium   = prem_call - prem_put   # paid (+)
# Leg 3: OTC swap on the May future (one settlement, on the pricing day)
K_swap        = may_today              # fair fixed price = May future today
# Mix used when we put the legs together
w_collar, w_swap = 0.5, 0.5            # share of the purchase hedged with each

# Exchange rate (Nov 18, 2026)
fx_today = 18.59                       # MXN per USD (spot)
r_mxn    = 0.0625                      # Banxico target rate since Nov 6, 2026
r_usd    = 0.04                        # USD rate: course assumption (same as the hedging desk app)
days_fx  = 175                         # Nov 18, 2026 -> May 12, 2027
F_fx     = fx_today * np.exp((r_mxn - r_usd) * days_fx / 365)   # forward USD/MXN

print(f"Spread July - May today: {spread:.0f} ¢/bu")
print(f"Call strike K1 = {K1:.0f}  (+{K1/july_today-1:.1%} vs July)  premium paid     = {prem_call:.2f} ¢/bu")
print(f"Put  strike K2 = {K2:.0f}  ({K2/july_today-1:.1%} vs July)  premium received = {prem_put:.2f} ¢/bu")
print(f"Net premium paid = {net_premium:.2f} ¢/bu")
print(f"Swap fixed price K = {K_swap:.2f} ¢/bu (no premium)")
print(f"USD/MXN spot = {fx_today:.4f} · 175-day forward = {F_fx:.4f}")
Spread July - May today: 10 ¢/bu
Call strike K1 = 460  (+2.2% vs July)  premium paid     = 5.00 ¢/bu
Put  strike K2 = 430  (-4.4% vs July)  premium received = 4.00 ¢/bu
Net premium paid = 1.00 ¢/bu
Swap fixed price K = 440.00 ¢/bu (no premium)
USD/MXN spot = 18.5900 · 175-day forward = 18.7916
  • Today (November 2026) the May future price is 440 ¢/bu and the July future price is 450 ¢/bu.
  • For the call I select a strike price \(K_1 = 460\) (about 2.2 % above the July futures price), with a premium (cost) of 5 ¢/bu.
  • For the put I select a strike price \(K_2 = 430\) (about 4.4 % below the July futures price), and I receive a premium of 4 ¢/bu.
  • Net premium paid = 5 − 4 = 1 ¢/bu. Selling the put pays for most of the call.
ImportantSimplifications in this example
  1. On the day I buy the corn the options still have about 6 weeks to expiry, so their market value includes some time value. Here we use only the intrinsic value (payoff). The hedging desk app adds the time value with a model.
  2. We assume the July – May spread stays at 10 ¢/bu. With the same % change in both futures the result would be almost the same (for example 480.7 instead of 480).
  3. The swap has no bank spread here (its fixed price equals today’s May future). A real bank adds its margin inside the fixed price.
  4. We ignore brokerage fees and the cost of the margin required for the short put, and we leave the basis and the exchange rate aside (they are the same with or without the hedge).

3 Leg 1: the long call

3.1 Scenario 1 · the price goes up

Time passes and we are in May 2027, close to the expiration of the May future, when I fix the price with my supplier.

The market price increases to 470 ¢/bu (the May future converges to the price at the CME delivery points; my supplier will add the basis). The May future increased from 440 to 470, which is about 6.8 %. With the July – May spread constant, the July future is around 480 ¢/bu.

  • I pay 470 ¢/bu (+ basis) to the supplier that day.
  • On the same day I close (sell) the call. Its payoff is

\[ \text{Payoff}_{call} = \max(0,\; F_{July} - K_1) = \max(0,\; 480 - 460) = 20 \text{ ¢/bu} \]

  • The net payoff of the call is

\[ \text{Net payoff}_{call} = \text{Payoff} - \text{premium paid} = 20 - 5 = 15 \text{ ¢/bu} \]

3.2 Scenario 2 · the price falls below the put strike

Now imagine the May future falls to 400 ¢/bu in May 2027 (−9.1 %). The July future is then around 410 ¢/bu.

\[ \text{Payoff}_{call} = \max(0,\; 410 - 460) = 0 \qquad \text{Net payoff}_{call} = 0 - 5 = -5 \text{ ¢/bu} \]

The call expires worthless (out of the money): I lose only the premium I paid. This is the most a long call can lose.

Show the Python code
def call_payoff(F, K):  return np.maximum(0.0, F - K)
def put_payoff(F, K):   return np.maximum(0.0, K - F)

def legs(may_price):
    """Payoffs in ¢/bu on the pricing day for a given May futures price."""
    july = may_price + spread
    call = call_payoff(july, K1)            # long call: we receive
    put  = -put_payoff(july, K2) + 0.0      # short put: we pay
    return dict(may=may_price, july=july,
                call=call, call_net=call - prem_call,
                put=put,  put_net=put + prem_put,
                collar=call + put, collar_net=call + put - net_premium,
                swap=may_price - K_swap)

scen = pd.DataFrame([legs(470.0), legs(440.0), legs(425.0), legs(400.0)],
                    index=["1 · Up (470)", "No change (440)", "Between strikes (425)", "2 · Below put strike (400)"])
scen.round(2)
may july call call_net put put_net collar collar_net swap
1 · Up (470) 470.0 480.0 20.0 15.0 0.0 4.0 20.0 19.0 30.0
No change (440) 440.0 450.0 0.0 -5.0 0.0 4.0 0.0 -1.0 0.0
Between strikes (425) 425.0 435.0 0.0 -5.0 0.0 4.0 0.0 -1.0 -15.0
2 · Below put strike (400) 400.0 410.0 0.0 -5.0 -20.0 -16.0 -20.0 -21.0 -40.0

3.3 Call payoff and net payoff

Show the Python code
F = np.linspace(380, 520, 281)
fig, ax = plt.subplots(figsize=(8, 4.2))
ax.plot(F, call_payoff(F, K1), lw=2.2, color="#164bad", label="Payoff")
ax.plot(F, call_payoff(F, K1) - prem_call, lw=2.2, ls="--", color="#00846d", label="Net payoff (− premium 5)")
ax.axhline(0, color="black", lw=0.8)
ax.axvline(K1, color="grey", lw=0.8, ls=":")
ax.annotate("K1 = 460", (K1, 30), ha="center", color="grey")
for f_, lab in [(480, "Up: +15"), (410, "Down: −5")]:
    y = call_payoff(f_, K1) - prem_call
    ax.plot(f_, y, "o", color="#00846d"); ax.annotate(lab, (f_, y), textcoords="offset points", xytext=(10, -14), ha="left")
ax.set_xlabel("July futures price on the pricing day (¢/bu)")
ax.set_ylabel("¢/bu")
ax.legend(loc="upper left", frameon=False)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 1: Long call 460 on the July future: payoff and net payoff on the pricing day (¢/bu)

Break-even of the call: \(K_1 + \text{premium} = 465\) ¢/bu on the July future.

4 Leg 2: the short put

When I sell a put I receive the premium today, but I take the obligation: if the price falls below \(K_2\), I have to pay the difference. On the pricing day I close the position by buying back the put.

4.1 Scenario 1 · the price goes up

July future around 480 ¢/bu, above the put strike of 430:

\[ \text{Payoff}_{short\ put} = -\max(0,\; K_2 - F_{July}) = -\max(0,\; 430 - 480) = 0 \]

\[ \text{Net payoff}_{short\ put} = 0 + 4 = +4 \text{ ¢/bu} \]

The put expires worthless and I keep the premium I received.

4.2 Scenario 2 · the price falls below the put strike

July future around 410 ¢/bu, below the put strike of 430:

\[ \text{Payoff}_{short\ put} = -\max(0,\; 430 - 410) = -20 \text{ ¢/bu} \]

\[ \text{Net payoff}_{short\ put} = -20 + 4 = -16 \text{ ¢/bu} \]

I have to buy back the put for about 20 ¢/bu. Every cent the price falls below 430 is a cent I pay on the put. Note that a short put has a large potential loss (down to a price of zero), and the broker asks for margin for this position.

Show the Python code
fig, ax = plt.subplots(figsize=(8, 4.2))
ax.plot(F, -put_payoff(F, K2), lw=2.2, color="#164bad", label="Payoff")
ax.plot(F, -put_payoff(F, K2) + prem_put, lw=2.2, ls="--", color="#00846d", label="Net payoff (+ premium 4)")
ax.axhline(0, color="black", lw=0.8)
ax.axvline(K2, color="grey", lw=0.8, ls=":")
ax.annotate("K2 = 430", (K2, 12), ha="center", color="grey")
for f_, lab in [(480, "Up: +4"), (410, "Down: −16")]:
    y = -put_payoff(f_, K2) + prem_put
    ax.plot(f_, y, "o", color="#00846d"); ax.annotate(lab, (f_, y), textcoords="offset points", xytext=(10, -14), ha="left")
ax.set_xlabel("July futures price on the pricing day (¢/bu)")
ax.set_ylabel("¢/bu")
ax.set_ylim(-55, 15)
ax.legend(loc="lower right", frameon=False)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 2: Short put 430 on the July future: payoff and net payoff on the pricing day (¢/bu)

Break-even of the short put: \(K_2 - \text{premium} = 426\) ¢/bu on the July future.

5 The collar: both legs together

5.1 Payoffs of the collar

Table 1: Net payoff of each leg and of the collar (¢/bu)
Scenario (May / July on the pricing day) Call net Short put net Collar net payoff
1 · Up (470 / 480) +15 +4 +19
No change (440 / 450) −5 +4 −1
Between strikes (425 / 435) −5 +4 −1
2 · Below put strike (400 / 410) −5 −16 −21

Between the two strikes neither option pays, and the collar only costs the net premium of 1 ¢/bu.

Show the Python code
collar = call_payoff(F, K1) - put_payoff(F, K2)
fig, ax = plt.subplots(figsize=(8, 4.2))
ax.plot(F, call_payoff(F, K1) - prem_call, lw=1, color="#164bad", alpha=0.45, label="Call net (leg 1)")
ax.plot(F, -put_payoff(F, K2) + prem_put, lw=1, color="#c27c0e", alpha=0.6, label="Short put net (leg 2)")
ax.plot(F, collar, lw=2.2, color="#0b2e59", label="Collar payoff")
ax.plot(F, collar - net_premium, lw=2.2, ls="--", color="#00846d", label="Collar net payoff (− net premium 1)")
ax.axhline(0, color="black", lw=0.8)
for k, lab in [(K2, "K2 = 430"), (K1, "K1 = 460")]:
    ax.axvline(k, color="grey", lw=0.8, ls=":"); ax.annotate(lab, (k, 40), ha="center", color="grey")
for f_, lab in [(480, "Up: +19"), (410, "Down: −21")]:
    y = call_payoff(f_, K1) - put_payoff(f_, K2) - net_premium
    ax.plot(f_, y, "o", color="#00846d"); ax.annotate(lab, (f_, y), textcoords="offset points", xytext=(10, -14), ha="left")
ax.set_xlabel("July futures price on the pricing day (¢/bu)")
ax.set_ylabel("¢/bu")
ax.legend(loc="upper left", frameon=False, fontsize=9)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 3: Buyer collar (long call 460 + short put 430): payoff and net payoff (¢/bu)

5.2 Effective cost for the buyer

The buyer always pays the supplier the market price (May future + basis). The options generate a separate cash flow that is subtracted:

\[ \text{Effective price} = \text{May price paid to the supplier} - \text{collar net payoff} \quad (+ \text{basis}) \]

  • Scenario 1 (up): \(470 - 19 = 451\) ¢/bu. Without the hedge I would pay 470.
  • Scenario 2 (below the put strike): \(400 - (-21) = 421\) ¢/bu. Without the hedge I would pay only 400: the short put takes away the savings below the floor.

The collar keeps my price inside a band:

\[ \text{Ceiling} \approx K_1 - \text{spread} + \text{net premium} = 460 - 10 + 1 = 451 \text{ ¢/bu} \]

\[ \text{Floor} \approx K_2 - \text{spread} + \text{net premium} = 430 - 10 + 1 = 421 \text{ ¢/bu} \]

Between the floor and the ceiling I pay the market price plus the net premium (for example 441 if the May price stays at 440).

Show the Python code
may = np.linspace(370, 510, 281)
july = may + spread
eff = may - (call_payoff(july, K1) - put_payoff(july, K2) - net_premium)
ceiling = K1 - spread + net_premium
floor_  = K2 - spread + net_premium
fig, ax = plt.subplots(figsize=(8, 4.6))
ax.plot(may, may, lw=2, ls="--", color="#586478", label="Unhedged (pays the May price)")
ax.plot(may, eff, lw=2.4, color="#164bad", label="With collar")
ax.axhline(ceiling, color="#d62828", lw=0.8, ls=":"); ax.annotate(f"Ceiling ≈ {ceiling:.0f}", (372, ceiling + 2), color="#d62828")
ax.axhline(floor_,  color="#d62828", lw=0.8, ls=":"); ax.annotate(f"Floor ≈ {floor_:.0f}", (372, floor_ - 8), color="#d62828")
for m, lab in [(470, "Up: 451 vs 470"), (400, "Down: 421 vs 400"), (440, "No change: 441")]:
    y = m - (call_payoff(m + spread, K1) - put_payoff(m + spread, K2) - net_premium)
    ax.plot(m, y, "o", color="#164bad"); ax.annotate(lab, (m, y), textcoords="offset points", xytext=(0, 10), ha="center", fontsize=9)
ax.set_xlabel("May futures price on the pricing day (¢/bu)")
ax.set_ylabel("Effective price (¢/bu)")
ax.legend(loc="upper left", frameon=False)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 4: Effective price paid by the buyer vs May price on the pricing day (¢/bu, before basis)

5.3 Summary of the scenarios

Show the Python code
rows = []
for m in [370, 400, 421, 425, 440, 451, 470, 500]:
    r = legs(float(m))
    rows.append({"May price (paid to supplier)": m, "July price": r["july"],
                 "Call net": r["call_net"], "Short put net": r["put_net"],
                 "Collar net payoff": r["collar_net"],
                 "Effective price": m - r["collar_net"],
                 "Saving vs unhedged": r["collar_net"]})
(pd.DataFrame(rows).set_index("May price (paid to supplier)") + 0.0).round(2)
Table 2: Price paid to the supplier, collar net payoff and effective price (¢/bu, before basis)
July price Call net Short put net Collar net payoff Effective price Saving vs unhedged
May price (paid to supplier)
370 380.0 -5.0 -46.0 -51.0 421.0 -51.0
400 410.0 -5.0 -16.0 -21.0 421.0 -21.0
421 431.0 -5.0 4.0 -1.0 422.0 -1.0
425 435.0 -5.0 4.0 -1.0 426.0 -1.0
440 450.0 -5.0 4.0 -1.0 441.0 -1.0
451 461.0 -4.0 4.0 0.0 451.0 0.0
470 480.0 15.0 4.0 19.0 451.0 19.0
500 510.0 45.0 4.0 49.0 451.0 49.0

6 Leg 3: the commodity swap (OTC)

6.1 What a swap is

A commodity swap is a contract over the counter (OTC) with a bank. Today the buyer and the bank agree a fixed price \(K_S\) for a quantity of corn and a settlement date. On that date only the difference is paid:

\[ \text{Swap settlement} = \text{Quantity} \times (\text{Floating price} - K_S) \]

  • If the floating price is above \(K_S\), the bank pays the buyer.
  • If it is below \(K_S\), the buyer pays the bank.

The buyer still buys the corn from the supplier at the market price. The swap only adds a cash settlement with the bank, and the two together fix the cost at \(K_S\):

\[ \text{Effective price} = \text{Market price} - (\text{Market price} - K_S) = K_S \quad (+ \text{basis}) \]

6.2 Swap terms in our example

Because the swap is OTC, we can tailor it to our purchase:

  • Floating price: the May future (ZCK27), the same reference as the supplier price. No July future and no July – May spread risk.
  • Settlement date: the day I fix the price with my supplier in May 2027 (only one month).
  • Quantity: exactly the tonnes I want to hedge, with no whole contracts.
  • Fixed price: \(K_S\) = 440 ¢/bu, the May futures price today. At that price the swap is worth zero when it is signed, so no premium is paid.
NoteWhat the buyer gives in exchange
  • Counterparty risk: if the bank defaults, the hedge is lost.
  • Collateral: the bank usually asks for collateral or a credit line (the hedging desk app assumes 5 % of the notional). If the price falls, the bank can ask for more.
  • No upside: if corn falls, the buyer pays the bank and gives up the lower price.
  • Hard to unwind: cancelling an OTC contract early must be negotiated with the bank.

6.3 Scenario 1 · the price goes up

In May 2027 the May future is at 470 ¢/bu:

\[ \text{Swap settlement} = 470 - 440 = +30 \text{ ¢/bu} \quad \text{(the bank pays me)} \]

I pay the supplier 470 and receive 30 from the bank: effective price \(470 - 30 = 440\) ¢/bu.

6.4 Scenario 2 · the price falls below the put strike

The May future falls to 400 ¢/bu:

\[ \text{Swap settlement} = 400 - 440 = -40 \text{ ¢/bu} \quad \text{(I pay the bank)} \]

I pay the supplier 400 and pay 40 to the bank: effective price \(400 + 40 = 440\) ¢/bu. The swap took away the whole fall in the price.

Since there is no premium, the payoff and the net payoff of the swap are the same.

Show the Python code
may_x = np.linspace(370, 510, 281)
fig, ax = plt.subplots(figsize=(8, 4.2))
ax.plot(may_x, may_x - K_swap, lw=2.2, color="#00846d", label="Swap settlement = payoff = net payoff")
ax.axhline(0, color="black", lw=0.8)
ax.axvline(K_swap, color="grey", lw=0.8, ls=":")
ax.annotate("K_S = 440", (K_swap, 55), ha="center", color="grey")
for m, lab in [(470, "Up: +30 (bank pays)"), (400, "Down: −40 (buyer pays)")]:
    ax.plot(m, m - K_swap, "o", color="#00846d")
    ax.annotate(lab, (m, m - K_swap), textcoords="offset points", xytext=(10, -14), ha="left")
ax.set_xlabel("May futures price on the pricing day (¢/bu)")
ax.set_ylabel("¢/bu")
ax.legend(loc="upper left", frameon=False)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 5: Swap with fixed price 440 on the May future: settlement on the pricing day (¢/bu). Payoff = net payoff (no premium).

Compare it with the collar: the swap pays from the first cent above 440 (no premium, but no limit on the downside), while the collar pays only above 460 on the July future and lets the price float between the strikes.

7 Putting the legs together: 50 % collar + 50 % swap

7.1 Why not 100 % of each?

If the buyer hedges 100 % with the collar and 100 % with the swap, the hedges add up to 200 % of the purchase: half of the position would no longer protect a purchase, it would be a bet on the corn price. So the buyer splits the volume:

  • 50 % of the purchase with the swap: a known cost for the half of the corn the buyer surely needs.
  • 50 % with the collar: protection against a rise, while keeping part of a fall (down to the put strike).

Per bushel of the whole purchase, the net payoff of the strategy is

\[ \text{Net payoff} = 0.5 \times \text{Collar net payoff} + 0.5 \times \text{Swap settlement} \]

\[ \text{Effective price} = \text{May price} - \text{Net payoff} = 0.5 \times \text{Collar price} + 0.5 \times 440 \]

7.2 The scenarios

Table 3: Net payoff of each leg (weighted by its share of the purchase) and of the whole strategy (¢/bu of purchase)
Scenario (May / July on the pricing day) Collar net (50 %) Swap (50 %) Strategy net payoff Effective price
1 · Up (470 / 480) 0.5 × 19 = +9.5 0.5 × 30 = +15 +24.5 470 − 24.5 = 445.5
No change (440 / 450) 0.5 × (−1) = −0.5 0.5 × 0 = 0 −0.5 440.5
2 · Below put strike (400 / 410) 0.5 × (−21) = −10.5 0.5 × (−40) = −20 −30.5 400 + 30.5 = 430.5

The combined strategy keeps the price in a narrower band than the collar alone:

\[ \text{Ceiling} = 0.5 \times 451 + 0.5 \times 440 = 445.5 \qquad \text{Floor} = 0.5 \times 421 + 0.5 \times 440 = 430.5 \text{ ¢/bu} \]

Show the Python code
july_x = may_x + spread
collar_net_x = call_payoff(july_x, K1) - put_payoff(july_x, K2) - net_premium
swap_x = may_x - K_swap
total_x = w_collar * collar_net_x + w_swap * swap_x
fig, ax = plt.subplots(figsize=(8, 4.4))
ax.plot(may_x, w_collar * collar_net_x, lw=1.4, color="#164bad", alpha=0.7, label="50 % collar (net)")
ax.plot(may_x, w_swap * swap_x, lw=1.4, color="#00846d", alpha=0.8, label="50 % swap")
ax.plot(may_x, total_x, lw=2.6, color="#0b2e59", label="Strategy net payoff")
ax.axhline(0, color="black", lw=0.8)
for m in (470, 400):
    y = w_collar * legs(m)["collar_net"] + w_swap * legs(m)["swap"]
    ax.plot(m, y, "o", color="#0b2e59")
    ax.annotate(f"{'Up' if m > 440 else 'Down'}: {y:+.1f}", (m, y), textcoords="offset points", xytext=(10, -14), ha="left")
ax.set_xlabel("May futures price on the pricing day (¢/bu)")
ax.set_ylabel("¢/bu of purchase")
ax.legend(loc="upper left", frameon=False, fontsize=9)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 6: Net payoff on the pricing day of each part (weighted by its share of the purchase) and of the whole strategy (¢/bu of purchase)

7.3 Effective cost of the three alternatives

Show the Python code
eff_collar = may_x - collar_net_x
eff_swap = may_x - swap_x
eff_mix = may_x - total_x
fig, ax = plt.subplots(figsize=(8, 4.8))
ax.plot(may_x, may_x, lw=2, ls="--", color="#586478", label="Unhedged")
ax.plot(may_x, eff_collar, lw=2, color="#164bad", label="100 % collar")
ax.plot(may_x, eff_swap, lw=2, color="#00846d", label="100 % swap")
ax.plot(may_x, eff_mix, lw=2.8, color="#d62828", label="50 % collar + 50 % swap")
for m in (400, 440, 470):
    y = m - (w_collar * legs(m)["collar_net"] + w_swap * legs(m)["swap"])
    ax.plot(m, y, "o", color="#d62828")
    ax.annotate(f"{y:.1f}", (m, y), textcoords="offset points", xytext=(4, -16), ha="left", color="#d62828", fontsize=9)
ax.set_xlabel("May futures price on the pricing day (¢/bu)")
ax.set_ylabel("Effective price (¢/bu)")
ax.legend(loc="upper left", frameon=False)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 7: Effective price paid by the buyer vs May price on the pricing day (¢/bu, before basis)
Show the Python code
rows = []
for m in [370, 400, 421, 440, 451, 470, 500]:
    r = legs(float(m))
    rows.append({"May price": m,
                 "Unhedged": m,
                 "100 % collar": m - r["collar_net"],
                 "100 % swap": m - r["swap"],
                 "50 % collar + 50 % swap": m - (w_collar * r["collar_net"] + w_swap * r["swap"])})
(pd.DataFrame(rows).set_index("May price") + 0.0).round(2)
Table 4: Effective price (¢/bu, before basis) of each alternative
Unhedged 100 % collar 100 % swap 50 % collar + 50 % swap
May price
370 370.0 421.0 440.0 430.5
400 400.0 421.0 440.0 430.5
421 421.0 422.0 440.0 431.0
440 440.0 441.0 440.0 440.5
451 451.0 451.0 440.0 445.5
470 470.0 451.0 440.0 445.5
500 500.0 451.0 440.0 445.5

Reading the table:

  • Unhedged: full exposure, from 370 to 500.
  • Collar: a band of 421 – 451; small premium; keeps the savings down to the put strike.
  • Swap: always 440; no premium, but no benefit if corn falls.
  • 50/50 mix: a narrower band of 430.5 – 445.5. It is a common choice for a committee: certainty for half of the volume and some flexibility for the other half.

8 From ¢/bu to pesos

To see the size of the hedge, convert the result to MXN for a real purchase. One standard corn contract (ZC) is 5,000 bu = 127.01 t, and 1 ¢/bu equals about 0.3937 USD per metric tonne.

tonnes   = 8_800                     # purchase volume
usdmxn   = fx_today                  # exchange rate (kept constant in this section)
t_per_lot = 5000 * 56 * 0.45359237 / 1000          # 127.006 t per contract
lots     = int(np.floor(tonnes / t_per_lot))       # whole contracts: 69
bushels  = lots * 5000
mxn_per_cent = bushels * 0.01 * usdmxn              # MXN for 1 ¢/bu on the hedged volume

print(f"Contracts: {lots}  ({lots*t_per_lot:,.1f} t, {lots*t_per_lot/tonnes:.2%} of the purchase)")
print(f"1 ¢/bu on the hedged volume = {mxn_per_cent:,.0f} MXN")
print(f"Net premium paid today      = {net_premium*mxn_per_cent:,.0f} MXN")
print(f"Scenario 1 (up):    collar net payoff = {19*mxn_per_cent:,.0f} MXN")
print(f"Scenario 2 (down):  collar net payoff = {-21*mxn_per_cent:,.0f} MXN")

# Mix: half of the volume with the collar (whole contracts), half with the swap (exact tonnes)
lots_half    = int(np.floor(tonnes * w_collar / t_per_lot))   # 34 contracts
swap_tonnes  = tonnes * w_swap                                 # 4,400 t
cents_to_usd_per_t = 1000 / (56 * 0.45359237) / 100            # 1 ¢/bu = 0.3937 USD/t
mxn_cent_collar = lots_half * 5000 * 0.01 * usdmxn
mxn_cent_swap   = swap_tonnes * cents_to_usd_per_t * usdmxn
print()
print(f"50/50 mix: collar on {lots_half} contracts ({lots_half*t_per_lot:,.1f} t) + swap on {swap_tonnes:,.0f} t")
for name, m in [("Scenario 1 (up)", 470.0), ("Scenario 2 (down)", 400.0)]:
    r = legs(m)
    c = r["collar_net"] * mxn_cent_collar
    w = r["swap"] * mxn_cent_swap
    print(f"{name:18s}: collar {c:>13,.0f} MXN + swap {w:>13,.0f} MXN = {c + w:>13,.0f} MXN")
Contracts: 69  (8,763.4 t, 99.58% of the purchase)
1 ¢/bu on the hedged volume = 64,136 MXN
Net premium paid today      = 64,136 MXN
Scenario 1 (up):    collar net payoff = 1,218,574 MXN
Scenario 2 (down):  collar net payoff = -1,346,846 MXN

50/50 mix: collar on 34 contracts (4,318.2 t) + swap on 4,400 t
Scenario 1 (up)   : collar       600,457 MXN + swap       966,050 MXN =     1,566,507 MXN
Scenario 2 (down) : collar      -663,663 MXN + swap    -1,288,067 MXN =    -1,951,730 MXN

The swap covers exactly 4,400 t, while the collar can only cover whole contracts (34 contracts = 4,318 t). This is one practical advantage of the OTC swap.

9 Leg 4: hedging the exchange rate

9.1 The exposure

The corn price is in US dollars. On the pricing day (May 12, 2027) GAQSA needs dollars to pay the supplier, so its cost in pesos is

\[ \text{Cost in MXN} = \text{USD needed} \times \text{USD/MXN on May 12} \quad (+ \text{basis in MXN}) \]

If the peso depreciates (more pesos per dollar), the corn becomes more expensive in pesos even if the corn price does not move. None of the corn legs protects against this.

9.2 How many dollars do I need?

This is the key question of an FX hedge for a commodity buyer: the dollar amount depends on the corn price. But the corn legs already fixed most of it. The dollars GAQSA needs on May 12 are the effective price of the 3-leg strategy (supplier invoice minus the dollar settlements of the options and the swap):

\[ \text{USD needed} = \text{Tonnes} \times \text{Effective price (¢/bu)} \times 0.3937 \;\tfrac{\text{USD/t}}{\text{¢/bu}} \]

cents_to_usd_t = 1000 / (56 * 0.45359237) / 100     # 1 ¢/bu = 0.3937 USD per metric tonne

def usd_needed(may_price, hedged=True):
    """USD GAQSA needs on the pricing day for the whole purchase."""
    r = legs(float(may_price))
    eff = may_price - (w_collar * r["collar_net"] + w_swap * r["swap"]) if hedged else may_price
    return tonnes * eff * cents_to_usd_t

for m in [400, 440, 470]:
    print(f"May price {m}: unhedged corn needs {usd_needed(m, False):>12,.0f} USD · "
          f"with the 3 corn legs {usd_needed(m):>12,.0f} USD")
print(f"Range with the 3 corn legs: {usd_needed(370):,.0f} to {usd_needed(510):,.0f} USD")
May price 400: unhedged corn needs    1,385,763 USD · with the 3 corn legs    1,491,427 USD
May price 440: unhedged corn needs    1,524,339 USD · with the 3 corn legs    1,526,071 USD
May price 470: unhedged corn needs    1,628,271 USD · with the 3 corn legs    1,543,393 USD
Range with the 3 corn legs: 1,491,427 to 1,543,393 USD
  • Without the corn hedge, the dollars needed move from about 1.39 to 1.63 million USD between our scenarios.
  • With the 3 corn legs they stay between about 1.49 and 1.54 million USD, whatever the corn price.

So GAQSA can buy USD 1,500,000 forward with confidence: it is close to the minimum it will need, so it never buys many more dollars than it uses.

TipHedge the commodity first, then the currency

When the commodity price is hedged, the dollar amount becomes almost known, and the FX hedge can be sized with confidence. Hedging the currency of an unhedged commodity purchase means guessing the dollar amount.

9.3 The instrument: a USD/MXN forward

A forward is an OTC contract with a bank: today GAQSA agrees to buy USD 1,500,000 on May 12, 2027 at a fixed exchange rate \(F\). No premium is paid. On May 12 GAQSA receives the dollars and pays \(1{,}500{,}000 \times F\) pesos, whatever the spot rate is that day.

The forward rate is not the spot rate. It reflects the interest rate difference between the two currencies (covered interest parity):

\[ F = S_0 \times e^{(r_{MXN} - r_{USD})\,T} = 18.59 \times e^{(6.25\% - 4.00\%) \times 175/365} \approx 18.79 \text{ MXN/USD} \]

  • \(S_0 = 18.59\): spot on November 18, 2026.
  • \(r_{MXN} = 6.25\%\): Banxico target rate since November 6, 2026.
  • \(r_{USD} = 4.00\%\): USD rate assumed in the course (the same as the hedging desk app).
  • \(T = 175/365\): from November 18, 2026 to May 12, 2027.

The peso pays a higher interest rate, so the forward is above the spot: GAQSA locks about 0.20 pesos per dollar more than today. This is not a fee; it is the interest difference. A real bank quotes from its own curves (TIIE and SOFR) and adds a small spread.

Comparing the forward with the swap:

Corn swap (Leg 3) USD/MXN forward (Leg 4)
Underlying Corn (May future) Dollars
What is fixed Corn price: 440 ¢/bu Exchange rate: about 18.79 MXN/USD
Settlement Cash difference Delivery of the dollars (or cash difference)
Premium None None
Main risks Counterparty, collateral, no benefit if corn falls Counterparty, credit line, no benefit if the peso appreciates

9.4 Payoff of the forward

Measured against buying the dollars at the spot rate on May 12, the forward pays

\[ \text{Payoff}_{forward} = \text{USD amount} \times (S_{May\,12} - F) \]

9.4.1 Scenario 1 · the peso depreciates

On May 12 the exchange rate is 20.45 (+10 % vs today):

\[ \text{Payoff} = 1{,}500{,}000 \times (20.45 - 18.79) \approx +2.5 \text{ million MXN} \]

GAQSA buys the dollars at 18.79 instead of 20.45.

9.4.2 Scenario 2 · the peso appreciates

On May 12 the exchange rate is 17.66 (−5 % vs today):

\[ \text{Payoff} = 1{,}500{,}000 \times (17.66 - 18.79) \approx -1.7 \text{ million MXN} \]

GAQSA must still pay 18.79 per dollar, even though the market rate is 17.66. Like the swap, the forward gives up the benefit of a favourable move.

Show the Python code
usd_fwd = 1_500_000
S = np.linspace(16.5, 21.5, 201)
fig, ax = plt.subplots(figsize=(8, 4.2))
ax.plot(S, usd_fwd * (S - F_fx) / 1e6, lw=2.2, color="#7b2cbf", label="Forward payoff = net payoff")
ax.axhline(0, color="black", lw=0.8)
ax.axvline(F_fx, color="grey", lw=0.8, ls=":")
ax.annotate(f"F ≈ {F_fx:.2f}", (F_fx, 3.2), ha="center", color="grey")
for s_, lab in [(fx_today * 1.10, "Peso depreciates (+10%)"), (fx_today * 0.95, "Peso appreciates (−5%)")]:
    y = usd_fwd * (s_ - F_fx) / 1e6
    ax.plot(s_, y, "o", color="#7b2cbf")
    ax.annotate(f"{lab}: {y:+.2f} M", (s_, y), textcoords="offset points", xytext=(10, -14), ha="left")
ax.set_xlim(16.4, 23.2)
ax.set_xlabel("USD/MXN on May 12, 2027 (MXN per USD)")
ax.set_ylabel("Million MXN")
ax.legend(loc="upper left", frameon=False)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 8: USD/MXN forward to buy USD 1.5 million at about 18.79: payoff on May 12, 2027 (million MXN). Payoff = net payoff (no premium).

9.5 Other ways to hedge the exchange rate

  • CME Mexican peso futures (6M). Each contract is 500,000 MXN, quoted in USD per peso. To protect a purchase of dollars, GAQSA sells peso futures: if the peso falls, the short position gains. USD 1.5 million at 18.79 is about 28.2 million MXN, or 56 contracts. They are standardized (March, June, September, December), so GAQSA would use the June 2027 contract and close it on May 12, the same date issue we had with corn. They also need daily margin.
  • A USD call option (OTC). It sets a maximum exchange rate and keeps the benefit if the peso appreciates, but it costs a premium, like the call on corn.

10 Everything together: corn and exchange rate

With the four legs, the cost in pesos of the purchase (before basis) is

\[ \text{Cost in MXN} = \underbrace{\text{USD needed}}_{\text{fixed by the corn legs}} \times S_{May\,12} \;-\; \underbrace{1{,}500{,}000 \times (S_{May\,12} - F)}_{\text{forward payoff}} \]

Show the Python code
def cost_mxn(may_price, fx, corn_hedge=True, fx_hedge=True):
    usd = usd_needed(may_price, hedged=corn_hedge)
    fwd = usd_fwd * (fx - F_fx) if fx_hedge else 0.0
    return (usd * fx - fwd) / 1e6

fx_cases = {"Peso −5% (17.66)": fx_today * 0.95, "No change (18.59)": fx_today, "Peso +10% (20.45)": fx_today * 1.10}
rows = []
for m, mlab in [(400, "Corn down (400)"), (440, "Corn no change (440)"), (470, "Corn up (470)")]:
    for flab, fx in fx_cases.items():
        rows.append({"Corn": mlab, "USD/MXN": flab,
                     "No hedge": cost_mxn(m, fx, False, False),
                     "Corn legs only": cost_mxn(m, fx, True, False),
                     "Corn legs + FX forward": cost_mxn(m, fx, True, True)})
tab = pd.DataFrame(rows).set_index(["Corn", "USD/MXN"]).round(2)
tab
Table 5: Cost of the purchase in million MXN (before basis) for 9 combined scenarios
No hedge Corn legs only Corn legs + FX forward
Corn USD/MXN
Corn down (400) Peso −5% (17.66) 24.47 26.34 28.04
No change (18.59) 25.76 27.73 28.03
Peso +10% (20.45) 28.34 30.50 28.01
Corn no change (440) Peso −5% (17.66) 26.92 26.95 28.65
No change (18.59) 28.34 28.37 28.67
Peso +10% (20.45) 31.17 31.21 28.72
Corn up (470) Peso −5% (17.66) 28.76 27.26 28.95
No change (18.59) 30.27 28.69 28.99
Peso +10% (20.45) 33.30 31.56 29.07
Show the Python code
alts = ["No hedge", "Corn legs only", "Corn legs + FX forward"]
lo = [tab[a].min() for a in alts]; hi = [tab[a].max() for a in alts]
fig, ax = plt.subplots(figsize=(8, 3.6))
colors = ["#586478", "#164bad", "#d62828"]
for i, a in enumerate(alts):
    ax.plot([lo[i], hi[i]], [i, i], lw=10, color=colors[i], solid_capstyle="butt", alpha=0.85)
    ax.annotate(f"{lo[i]:.1f} – {hi[i]:.1f} M  (range {hi[i]-lo[i]:.1f} M)", (hi[i], i),
                textcoords="offset points", xytext=(8, -4), fontsize=9)
ax.set_yticks(range(3)); ax.set_yticklabels(alts)
ax.set_xlabel("Cost of the purchase (million MXN, before basis)")
ax.set_xlim(min(lo) - 1, max(hi) + 6)
ax.grid(axis="x", alpha=0.3)
plt.tight_layout(); plt.show()
Figure 9: Range of the cost in million MXN across the 9 scenarios (min to max) for each alternative
Show the Python code
fig, ax = plt.subplots(figsize=(8, 4.4))
ax.plot(S, [cost_mxn(470, x, False, False) for x in S], lw=2, ls="--", color="#586478", label="No hedge")
ax.plot(S, [cost_mxn(470, x, True, False) for x in S], lw=2, color="#164bad", label="Corn legs only")
ax.plot(S, [cost_mxn(470, x, True, True) for x in S], lw=2.6, color="#d62828", label="Corn legs + FX forward")
ax.axvline(F_fx, color="grey", lw=0.8, ls=":")
ax.set_xlabel("USD/MXN on May 12, 2027")
ax.set_ylabel("Cost (million MXN)")
ax.legend(loc="upper left", frameon=False)
ax.grid(alpha=0.3)
plt.tight_layout(); plt.show()
Figure 10: Corn up to 470 ¢/bu: cost in million MXN vs USD/MXN on May 12

How to read the results:

  • No hedge: the cost depends on both corn and the peso; in a bad case (corn up and peso weak) both effects add up.
  • Corn legs only: the corn price is under control, but the cost still moves almost one-for-one with the exchange rate.
  • Corn legs + forward: the cost stays in a narrow range. What remains is the small part of the dollar amount not covered by the forward (because the corn legs leave a band of 430.5 – 445.5 ¢/bu), plus the basis, which no instrument here covers.

11 Questions for discussion

  1. Why do we use options on the July future if the supplier price is linked to the May future? What risk remains because of this (hint: the July – May spread)?
  2. What happens to the ceiling and the floor if the spread widens from 10 to 20 ¢/bu?
  3. Compare this collar with buying only the call: what is the ceiling, and what happens if the price falls to 400?
  4. The short put requires margin. What happens to the buyer’s cash if the price falls a lot before May?
  5. Why does the swap use the May future as its floating price, while the options use the July future? Which risk disappears in the swap leg?
  6. What would happen to the effective price if the bank asked for a fixed price of 443 instead of 440?
  7. Why is hedging 100 % with the collar and 100 % with the swap a bad idea?
  8. Why is the USD/MXN forward rate above the spot rate? What would happen to it if Banxico cut its rate to 5.75 %?
  9. Why is it easier to size the FX hedge after hedging the corn price?
  10. With the CME peso futures, which contract month would you use, and what problem appears with the dates?
  11. Which risks are still not covered with the four legs? (basis, volume, counterparty)