Can someone comment on how taxes are handled when automated trades are made like this? It's something that seems wholly absent from the cost calculations.
Author here. Personally, I just don't. I tried doing it but it was too complicated. So I end up just hiring a tax accountant specializing in crypto, send them all the data I have, and pay a few $k. In case something goes wrong, it's their fault and they take the risk.