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.
- ราคา
- $0.01USD / คำขอ
- Method
- POST
- การตอบกลับ
- Async JSON
- พารามิเตอร์
- 0 จำเป็น · 0 ไม่บังคับ
Playground
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
API README
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.
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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. การยืนยันตัวตน
ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
3. พารามิเตอร์
ยังไม่มีการเผยแพร่ schema ของพารามิเตอร์สำหรับ API นี้
4. การตอบกลับ
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
APIs ที่เกี่ยวข้อง
| API | ราคา | การตอบกลับ |
|---|---|---|
Nasdaq Market IndicesAPI นี้ Nasdaq | $0.01 ต่อการเรียก | Async JSON |
Nasdaq | $0.01 ต่อการเรียก | Async JSON |
Nasdaq | $0.01 ต่อการเรียก | Async JSON |
Nasdaq | $0.01 ต่อการเรียก | Async JSON |
Nasdaq | $0.01 ต่อการเรียก | Async JSON |
Nasdaq | $0.01 ต่อการเรียก | Async JSON |
คำถาม
คำถามที่พบบ่อย
ฉันจะใช้ Nasdaq Market Indices API ได้อย่างไร?
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/nasdaq/market-indices โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
Nasdaq Market Indices API ราคาเท่าไร?
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
Nasdaq Market Indices API รับพารามิเตอร์อะไรบ้าง?
Nasdaq Market Indices ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า
Nasdaq Market Indices API ส่งคืนอะไร?
ผลลัพธ์ JSON จุดเชื่อมต่อนี้ทำงานแบบอะซิงโครนัส ดังนั้นการตอบกลับจะบอกวิธีดึงผลลัพธ์ที่เสร็จแล้ว README บนหน้านี้มีตัวอย่างการตอบกลับ
ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Nasdaq ไหม?
ไม่จำเป็น Nasdaq Market Indices ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Nasdaq API แยกต่างหาก
