The tax year in the account's country: sales lot by lot, and income; ?format=csv
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/tax" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/tax", { headers: { Authorization: `Bearer ${process.env.IDEALX_API_KEY}` },});if (!res.ok) throw new Error((await res.json()).error.code);const data = await res.json();import osimport requests
res = requests.get( "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/tax", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, timeout=30,)res.raise_for_status()data = res.json()Year is the year the tax year ends in (Australia 2026: 1 July 2025 to 30 June 2026). Default: the last full tax year.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The tax year
object
The day after the tax year ends
How the country works gains out (D175)
object
object
Sold after the country’s holding period (12 months in Australia). Shown only; no discount is applied. False where the country has none
Long term under the country’s holding period; null where it has none (D175)
What the sale was matched with: a lot (oldest first), or under the UK rules a buy the same day, a buy in the next 30 days, or the pool at average cost
What was paid, including the transaction fee
object
What the sale brought in, less the transaction fee
object
object
In the account’s currency: cost at the rate when bought, proceeds at the rate when sold. Null when not recorded
object
object
object
object
object
object
object
object
Fees paid in the year, with any tax on them (D109)
object
object
Example
{ "estimated": true, "capitalGains": { "method": "fifo" }, "sales": [ { "matching": "lot" } ]}