Summarise a tax year.
GET
/api/expenses/tax-summary
const url = 'https://api.tradr.cloud/api/expenses/tax-summary?year=1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tradr.cloud/api/expenses/tax-summary?year=1'Authed. Realised P&L (split short- and long-term), tracked expenses by category, and wash-sale or superficial-loss flags for the user’s jurisdiction. Deliberately reports no single net taxable figure: fees are already inside realised P&L, and combining the numbers correctly depends on rules Tradr does not model.
This is a reporting aid, not tax advice, and it is not a filing.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”year
required
integer
Responses
Section titled “Responses”The summary for the year.
Media typeapplication/json
object
displayCurrency
string
flags
Wash sales (US) or superficial losses (CA), with the counterparty positions.
object
jurisdiction
string
realisedPnl
object
trackedExpenses
object
year
integer
Example
{ "jurisdiction": "US"}Missing or invalid year.