The annual pack for a tax year: performance, the statement for the year, and the tax year
GET
/v1/accounts/{id}/reports/annual
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/annual" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/annual", { 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/annual", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, timeout=30,)res.raise_for_status()data = res.json()Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”year
integer
Responses
Section titled “Responses”OK
Media typeapplication/json
object
label
required
string
from
required
string
to
required
string
statement
required
object
currency
required
string
accountName
required
string
from
required
string
to
required
string
portfolios
required
Array<object>
object
id
required
string
name
required
string
lines
required
Array<object>
object
instrumentId
required
string
symbol
required
string
name
required
string
isCash
required
boolean
opening
required
string
closing
required
string
reconciled
required
boolean
movements
required
Array<object>
object
at
required
string
kind
required
string
description
required
string
units
required
string
balance
required
string
closingValue
required
Value on the last day of the year; null when no value was recorded then
string | null
currency
required
string
Example generated
{ "label": "example", "from": "example", "to": "example", "statement": { "currency": "example", "accountName": "example", "from": "example", "to": "example", "portfolios": [ { "id": "example", "name": "example", "lines": [ { "instrumentId": "example", "symbol": "example", "name": "example", "isCash": true, "opening": "example", "closing": "example", "reconciled": true, "movements": [ { "at": "example", "kind": "example", "description": "example", "units": "example", "balance": "example" } ] } ] } ] }, "closingValue": "example", "currency": "example"}