Shares, ETFs, bonds and digital assets you can buy
curl "https://api.staging.idealx.com/v1/investments" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/investments", { 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/investments", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, timeout=30,)res.raise_for_status()data = res.json()Searched, filtered, sorted and paged on the server (D140). With currency, each price is also shown in it at today’s middle rate (an estimate), and price and market cap sort in it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”A kind of the brokerage catalog instead of assetClass and types: all, shares, funds (ETFs and listed funds), bonds or digital (every security type of it)
A kind of the brokerage catalog instead of assetClass and types: all, shares, funds (ETFs and listed funds), bonds or digital (every security type of it)
Only listings traded in this currency
Only listings traded in this currency
Show this country’s exchanges first (ISO 3166-1 alpha-2): an order only, nothing is left out
Show this country’s exchanges first (ISO 3166-1 alpha-2): an order only, nothing is left out
Show listings in this currency first: an order only
Show listings in this currency first: an order only
A market’s MIC (XNYS), CRYPTO or OTC
A market’s MIC (XNYS), CRYPTO or OTC
Security types, comma-separated (common, etf, fund, preferred, adr, warrant, bond, index, crypto…); default: common shares, ETFs and coins
Security types, comma-separated (common, etf, fund, preferred, adr, warrant, bond, index, crypto…); default: common shares, ETFs and coins
Rank: digital assets by market rank, unranked last (the default when listing digital assets); relevance: closest matches to q first, then the preference (the default with preferCountry or preferCurrency)
Rank: digital assets by market rank, unranked last (the default when listing digital assets); relevance: closest matches to q first, then the preference (the default with preferCountry or preferCurrency)
Digital assets of this category only
Digital assets of this category only
Only listings on this country’s exchanges (ISO 3166-1 alpha-2)
Only listings on this country’s exchanges (ISO 3166-1 alpha-2)
True: only listings that moved today (a previous close and a change)
True: only listings that moved today (a previous close and a change)
Only listings priced at least this, in currency when given (else their own), e.g. 1.00
Only listings priced at least this, in currency when given (else their own), e.g. 1.00
Responses
Section titled “Responses”OK
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
Prices in the asked currency at today’s middle rate; an estimate
object
object
Digital assets: cryptocurrency, stablecoin, tokenized_stock…
Digital assets: rank by market capitalisation; null when unranked
Digital assets: market capitalisation in US dollars (reference)
Digital assets: traded in the last 24 hours, in US dollars (reference)
Digital assets: change over seven days in percent (reference)
How many match, across all pages
Example
{ "investments": [ { "accent": "#f7931a", "quote": { "freshness": "live" }, "bond": { "couponRate": "4.50" }, "term": { "rate": "4.60" }, "marketCap": { "amount": "1250.00", "currency": "AUD" }, "category": "cryptocurrency" } ]}