Hello,

I get the following error while trying to roll out a shot put to back month using PutCalendarSpread:

Error executing margin models: Unable to create group for orders: [2,3]

Step to reproduce:

Step 1: Sell put in front month

Step 2: Roll out put to back month using PutCalendarSpread (buy back front month put, sell back month put)

I attched a sample project to reproduce the error.

I would appreciate any help or tips - thank you in advance for your help!

 

I tried to set a brokerage model, but that did not help.

I did a bit of digging and I think the error is raised because this method returns False?

 

Attached test case is based on