Skip to main content
Lets assume you want to filter for stocks that have a marketcap of at least $1billion and whose call volume is at least twice its put volume. You want to filter for a certain call to put volume ratio. For custom ratios and comparing of fields (call_volume > put_volume) the stock screener comes with a builtin formula language that allows for all of this. You can retrieve the grammar from the following endpoint:
It has a few fields. grammar, notes and examples. fields are all the fields that are available to be used. This works very well with agents. You could prompt your agent with the link to the dsl and tell it that you are interested in filtering for stocks that have a marketcap of at least $1billion and whose call volume is at least twice its put volume and with the help of the grammar it could create the correct formula.
Another interesting starting point could be to filter for tickers who have had growing options volume over a 4 day time span:
What we are essentially filtering for is for where over a 4 day trading time span each day has more options volume than the previous day. Next let’s learn how to compare options activity
Last modified on October 7, 2026