Major market indices (view only), the person's country first, with delayed levels
GET
/v1/markets/indices
curl "https://api.staging.idealx.com/v1/markets/indices" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/markets/indices", { 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/markets/indices", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, timeout=30,)res.raise_for_status()data = res.json()Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
indices
required
Array<object>
object
id
required
string
name
required
string
country
required
ISO 3166-1 alpha-2 (EU for a euro-area index)
string
value
required
The latest level, decimal
string
change
required
Change since the previous close, decimal
string | null
changePct
required
Percentage change, two decimals
string | null
currency
required
string
at
required
When the level is from (delayed)
string | null
open
required
Whether its exchange is trading now
boolean
Example
{ "indices": [ { "id": "INDEX:SPX", "value": "6650.25" } ]}Not signed in
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
details
object
key
additional properties
Example
{ "error": { "code": "validation_failed" }}