Is it possible to calculate the putt call ratio in pi?

You can see the open interest of puts and calls, you will have to calculate the PCR manually.

Then, is it possible to write code for computing it in tradescript? if its not possible using tradescript, how about getting it done using the pi-to-ami bridge?