How to pull historical dates for option quote chain data particularly in Henry Hub and WTI using Cod

I am trying to understand how to pull option quote chain data using code book. I am interested in pulling the quote chain as of historical dates, for example as of 12/30/2022 what the option quote chain is. I am particularly interested in Henry Hub and WTI. Can you please provide me with a example of how to do this?

Best Answer