calculate_put_call_parity
Derive the fair call or put price using put-call parity, or detect arbitrage opportunities by providing known option prices.
Instructions
Put-call parity: derive the fair call or put price, or detect arbitrage. Provide whichever option price you know; leave the other at -1 to solve it. C - P = S - K×e^(-r×t).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | ||
| years | Yes | ||
| strike | Yes | ||
| put_price | No | ||
| call_price | No | ||
| annual_rate | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |