how do you create a query on zpool?
By using the information here:
http://zpool.ca/site/apiSomeone posted a Powershell script several pages back on how to query this every 5 minutes and save it to a CSV file. I then took it and graphed it in Google sheets. I'll probably look at doing something in Python eventually.
Fee is 2% for the pool, but prices fluctuate on the exchanges and it takes time to mature the coins so the price you mine at might be different than the price it sells at. Crackfoo has said that he pays the fees to payout coins.