first of all I need that code to be completed for the volume of the puts. Second, I need the entire script to be able to read the futures and/or index options market. And thirdly, I would like to add to the total sum of that range that I have available to the script. that calculates the total sum of all the volume of calls, and total volume of puts, of the entire [login to view URL] seems reasonable to me. Another condition that I would like to put on the script is exactly the same but for open interest.
The final idea is to be able to have a volumetric histogram of the options market, both in calls and puts, of the volume traded on the day on the expiratios that I choose, and another histogram exactly the same but of the open interest.I also want the script to be able to tell me which is the strike with the most traded volume in calls and the strike with the most traded volume in puts. And the same for open interest.