tastyworks-pnl
tastyworks-pnl copied to clipboard
Special Dividend
Hello, the script does not work in the (rare) case of a special dividend which leads to a change in the options strike prices.
The lines in the log are:
05/19/2022 1:02 PM,Receive Deliver,Special Dividend,JD,Sell,Open,1,07/01/2022,60.76,P,,0.00,1177,Special dividend: Open 1.0 JD 220701P00060760, 05/19/2022 1:02 PM,Receive Deliver,Special Dividend,JD,Buy,Close,1,07/01/2022,62,P,,0.00,-1177,Special dividend: Close 1.0 JD 220701P00062000,