Skip to main content
After you submit a Crypto Tax P&L job, send the JSON tradebook to the upload URL in data.url using HTTP PUT. The URL includes its authorization in the query string. Use the complete URL as returned. The upload body is the workbook itself.
Set UPLOAD_URL to the data.url from Submit Job. Save your workbook as crypto_tradebook.json before running the command.

Prepare the tradebook

Download the tradebook JSON schema and sample tradebook. The sample contains spot and futures trades for FY 2025-26. Use the tradebook field reference for sheet names, column order, dates, and INR values. This endpoint accepts input=tradebook.

Sample inputs

These samples completed the production submit, upload, poll, and download workflow for financial_year=FY 2025-26 with JSON output. Save either download as crypto_tradebook.json to use the upload command on this page. Both samples include the required sheets and tables, with empty arrays for unused rows. The Excel source files contain total trade values in price_inr. These JSON samples divide each total by its quantity to provide the required per-unit price. The spot sample uses USDT for the source’s blank price_currency cells and leaves unused sent-currency fields null. The futures sample has no last-traded prices. Its production response returns zero for the open positions’ last_traded_price and unrealized_pnl. Supply last-traded prices to value those positions. After the upload completes, poll the job. Download the output only when its status is succeeded.