API
Open the Bitstamp API page by navigating to your account page and selecting API Access under the Security section.
Click New API Key and enable permissions for only account balance and user transactions.
Click Generate Key.
Click Activate.
Confirm the API key via the verification email.
Copy your API key, API secret, and Bitstamp user ID to TokenTax.
CSV
Then click on Export and click on the green Export All button to save the CSV file.
Upload your CSV file to TokenTax.