tastyworks-pnl icon indicating copy to clipboard operation
tastyworks-pnl copied to clipboard

Special Dividend

Open flanello opened this issue 1 year ago • 0 comments

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,

flanello avatar Apr 23 '23 12:04 flanello