Nasdaq Market Indices
https://api.sandbase.ai/v1/api/nasdaq/market-indicesCurrent values for the NASDAQ Composite index (COMP) including last price, net change, percentage change, volume, and daily high/low.
- Prezzo
- $0.01USD / chiamata
- Metodo
- POST
- Risposta
- JSON asincrono
- Parametri
- 0 obbligatori · 0 opzionali
Playground
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
README API
Nasdaq Market Indices
Returns the current quote for the NASDAQ Composite index (COMP), including last price, net change, percentage change, volume, and the day's high and low. The API takes no input.
Use cases
- Show the current NASDAQ Composite level and daily move on a market dashboard.
- Check whether the index is up or down today with
deltaIndicatorbefore running other market queries. - Log the index value and volume at set times to build your own intraday history.
- Compare the day's
highandlowagainstpreviousCloseto see how wide the trading range is.
Request
curl -X POST "https://api.sandbase.ai/v1/api/nasdaq/market-indices" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"data": [
{
"chartCloseTime": 1793635259000,
"chartOpenTime": 1793611800000,
"companyName": "NASDAQ Composite Index",
"datetime": "2026-11-02T17:16:01",
"deltaIndicator": "down",
"high": 25799.46,
"indexCharts": null,
"lastSalePrice": "25,164.32",
"low": 25145.95,
"netChange": "-272.68",
"percentageChange": "-1.07%",
"previousClose": "25,437"
}
],
"message": null,
"status": {
"bCodeMessage": null,
"developerMessage": null,
"rCode": 200
}
},
"status": "success"
}
Response fields
| Field | Meaning |
|---|---|
data.data[].symbol / data.data[].companyName | Ticker symbol of the index (COMP) and its full name. |
data.data[].lastSalePrice | Latest index value, as a string with thousands separators. |
data.data[].netChange / data.data[].percentageChange | Change from the previous close, as a signed number and as a percent string. Both are strings. |
data.data[].deltaIndicator | Direction of the move, for example down. |
data.data[].high / data.data[].low | Highest and lowest index values for the day. These are numbers. |
data.data[].previousClose | Index value at the previous close, as a string. |
data.data[].volume | Trading volume as a string with thousands separators. |
data.data[].datetime / data.data[].timeStamp | Time of the quote as an ISO-style datetime, and the same date in a short text form. |
data.data[].chartOpenTime / data.data[].chartCloseTime | Start and end of the chart window as 13-digit Unix timestamps, which look like milliseconds. |
Notes
- Send an empty JSON object
{}as the body. There are no parameters. - Price, change, previous close, and volume are formatted strings with commas. Remove the commas and the
%sign before you do math on them. indexChartsisnullin this response, anddata.data[]is a list that holds one item forCOMP.- For more detail on an index, call Nasdaq Index Detail.
Pricing
$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Invia la tua prima richiesta
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/nasdaq/market-indices" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autenticazione
Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
3. Parametri
Non è stato pubblicato alcuno schema dei parametri per questa API.
4. Risposta
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
API correlate
| API | Prezzo | Risposta |
|---|---|---|
Nasdaq Market IndicesQuesta API Nasdaq | $0.01 per chiamata | JSON asincrono |
Nasdaq | $0.01 per chiamata | JSON asincrono |
Nasdaq | $0.01 per chiamata | JSON asincrono |
Nasdaq | $0.01 per chiamata | JSON asincrono |
Nasdaq | $0.01 per chiamata | JSON asincrono |
Nasdaq | $0.01 per chiamata | JSON asincrono |
Domande
FAQ
Come uso l'API Nasdaq Market Indices?
Invia una richiesta POST a https://api.sandbase.ai/v1/api/nasdaq/market-indices con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
Quanto costa l'API Nasdaq Market Indices?
$0.01 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Quali parametri accetta l'API Nasdaq Market Indices?
Nasdaq Market Indices non accetta parametri di input; invia un body JSON vuoto.
Cosa restituisce l'API Nasdaq Market Indices?
Un risultato JSON. Questo endpoint viene eseguito in modo asincrono, quindi la risposta indica come recuperare il risultato completato. Il README di questa pagina include una risposta di esempio.
Mi serve un account sviluppatore o una chiave API Nasdaq?
No. Nasdaq Market Indices funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Nasdaq.
