What each portfolio owns beyond cash, with cost base and value
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/positions" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/positions", { 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/positions", 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”Responses
Section titled “Responses”OK
object
object
object
Most decimals its prices carry (four, more for coins below a cent)
Common, preferred, etf, fund, adr, warrant, bond, index, crypto…
Its logo, a path on this API (an image)
On offer now: an active, tradable listing with a price (always true in lists)
Its logo’s colour (#rrggbb) for washes, lines and borders, never text; null without one
Digital assets: the last price in US dollars, shown beside the price in the account’s currency; null for others
Prices in the investment’s currency; bonds per 100 of face value
object
When the price is from
Live: minutes old; delayed: the usual 15–20 minute delay while the exchange trades; close: the exchange is shut or the price is from before today’s open
object
Accrued interest today per 100 of face value
Yield: rate a year, length and smallest amount
object
object
object
object
object
object
Example
{ "positions": [ { "investment": { "accent": "#f7931a", "quote": { "freshness": "live" }, "bond": { "couponRate": "4.50" }, "term": { "rate": "4.60" } }, "costBase": { "amount": "1250.00", "currency": "AUD" }, "value": { "amount": "1250.00", "currency": "AUD" }, "gain": { "amount": "1250.00", "currency": "AUD" }, "valueInAccountCurrency": { "amount": "1250.00", "currency": "AUD" }, "gainInAccountCurrency": { "amount": "1250.00", "currency": "AUD" } } ]}