Thanks for the reply.? I am thinking about how to decouple the combo, get the margin of smaller pieces and aggregate them together.? Should I always split into calls and puts and stocks and add them together?? or split into long positions and short positions and take the maximum?? I cannot sort my head clear how should the "splitting" logic work so that I can implement them.?
Also,? is it possible to access the margin report programatically?? I know with flex query it is possible to get it with api, but i am not sure if it's possible with margin report.?