How do I use setFilter on option objects to grab only the nearest OTM option?

 

Right now I'm using

self.optionsymbol1.SetFilter(+1, +2, timedelta(37), timedelta(60))

I want options with the nearest OTM strike between 37 and 60 days old.

Could anyone kindly assist?

Author