Not to mention PDT requirement is $25K and more like $30K if you want to get a good buffer zone. You can also trade it via FIX. They open sourced their API here:
https://github.com/InteractiveBrokers/tws-api
Although (I had a 404), I think it's actually: https://github.com/InteractiveBrokers/tws-api-public
Indeed the PDT requirement is a pain...