This simple NodeJS application demonstrates how to use the CryptoTax API for creating tax reports.
For using API you need API token. To get API token please reaching out at contact@cryptotax.io for more details, or visit the CryptoTax.io website.
First, the script creates a tax report calculation request using the /requestReportCalculation
API endpoint. Then, it polls the /checkResult
API endpoint until the tax report is ready for download. The URL to download the report will we printed to the console.
You can find all details about this demo in file create_report_demo.js
.
Please consult the CryptoTax API documentation for more information.
- NodeJS
- Clone the Git repository
- Copy the file
.env.template
and rename it to.env
- Replace
<YOUR_CRYPTOTAX_API_TOKEN>
in the.env
file with your individual CryptoTax API token - Run
npm install
command - Run
npm run create_report_demo
to execute the demo application for creating tax report - Wait until the script finishes. Watch the log console for status updates.
- The URL to download the PDF report will be printed to the console.
=========================================================================================
This simple NodeJS application demonstrates how to use the CryptoTax CSV API for converting files that was imported from exchanges.
For using API you need API token. To get API token please reaching out at contact@cryptotax.io for more details, or visit the CryptoTax.io website.
First, the script creates a file process request using the /convertTransactions
API endpoint. Then, it polls the /convertTransactions/{{requestId}}
API endpoint until the file is processed and result is ready for download. The transactions that were converted from exchange file we printed to the console.
You can find all details about this demo in file upload_exchnage_file_demo.js
.
Please consult the CryptoTax CSV API documentation for more information.
- NodeJS
- Clone the Git repository
- Copy the file
.env.template
and rename it to.env
- Replace
<YOUR_CRYPTOTAX_API_TOKEN>
in the.env
file with your individual CryptoTax API token - Run
npm install
command - Run
npm run upload_exchnage_file_demo
to execute the demo application for processing exchange file - Wait until the script finishes. Watch the log console for status updates.
- The URL to download the list of transactions will be printed to the console.