You can go to
https://bminer.ca, enter your READ ONLY keys from the exchanges you're using. In the view by currency page or view by wallet there is an export to CSV available.
Would you need to do that thru one API call let me know, I can surely implement that quickly for you.