Script for grabbing historical data from ToS. Uses xdotool to simulate mouseclicks and keying in date information. Geared towards getting historical option data in CSV format for quantitative analysis.
Navigate to the option chain view on ThinkorSwim and use OnDemand. Set the date to your start date manually, and save a test return to the folder you want to save the data to.
Currently works on Linux only. xdotool is required for this utility. Tested on Debian 10.7.0.
Format code with single tab spacing and write clear pull requests.
Thanks to Jordan Sissel and the ThinkorSwim team.