midpoint.py

Created by juliette-1

Created on June 22, 2025

1.16 KB


Midpoint = cest la moyenne des prix des calls (short et long) et des puts 
(short et long) et donc des premiums 
On prend le midpoint des call pour C et le midpoint des put pour P. 
Call-put parity formule 
C-P= Sexp(-qT)-Kexp(-rT)
avec :
  C = prix du call
  P = prix du put
  S = prix actuel de lindice 
ATTENTION : Pour le prix actuel de lindice en fonction de si on est 
At the money : K=S
In the money : Call : K<S ; Put : K>S
Out of the money : Call : K>S ; Put : K<S 
  K = strike
  r = taux sans risque (ici 5.5%)
  q = rendement dividende (souvent 0 sauf si lindice verse des dividendes)
  T = durée jusquà maturité (en année)

Si C  P < reste 
-  Le combo call-put est undervalued 
-  Long call
-  Short put 
-  Sell the index 
-  Win with arbitrage 
Si C  P > reste 
-  Le combo call-put est overvalued 
-  Short call
-  Long put 
-  Buy the index 
-  Win with arbitrage 
Calculer le profit gagner suite à larbitrage 
-  Avec midpoint 
(S  Ke^-rT)  (C-P)
-  Avec bid/ask 
On remplace par les valeurs de long call et short put 

La formule de la put-call parity avec dividende
On trouve le dividend yield q qui annulerait larbitrage

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.