Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Financial Datasets Get Stock Price Snapshot

เอกสาร API
https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot

Get the real-time price snapshot for a stock, including the current price, day change, and day change percent.

ราคา
$0.02USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
The stock ticker symbol (e.g. AAPL, MSFT).
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Financial Datasets Get Stock Price Snapshot API

Returns the latest price snapshot for one stock: the current price, the change since the previous close, and the time of the quote. It needs a stock ticker symbol such as AAPL.

Use cases

  • Show a live quote for a ticker on a dashboard or watchlist.
  • Check how far a stock has moved today before running a trade alert.
  • Add the current price to a portfolio value calculation.
  • Compare today's percent move across several tickers by calling the API once per ticker.

Request

curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker": "AAPL"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
tickerstringNoThe stock ticker symbol (e.g. AAPL, MSFT).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "snapshot": {
    "day_change": -13.93,
    "day_change_percent": -4.04,
    "price": 330.7,
    "ticker": "AAPL",
    "time": "2026-11-03T00:37:12Z",
    "time_milliseconds": 1793666232299
  }
}

Response fields

FieldMeaning
snapshot.tickerThe stock ticker symbol the snapshot is for.
snapshot.priceThe current stock price in the response, for example 330.7.
snapshot.day_changeThe price change for the day. A negative value means the stock is down.
snapshot.day_change_percentThe day change as a percent. The example value -4.04 matches a drop of about 4 percent.
snapshot.timeThe quote time as an ISO 8601 timestamp in UTC, for example 2026-11-03T00:37:12Z.
snapshot.time_millisecondsThe same quote time as a Unix timestamp in milliseconds.

Notes

Pricing

$0.02 per successful call. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Financial Datasets$0.02 ต่อการเรียกJSON
Financial Datasets$0.02 ต่อการเรียกJSON
Financial Datasets$0.02 ต่อการเรียกJSON
Financial Datasets$0.02 ต่อการเรียกJSON
Financial Datasets$0.02 ต่อการเรียกJSON
Financial Datasets$0.02 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Financial Datasets Get Stock Price Snapshot API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Financial Datasets Get Stock Price Snapshot API ราคาเท่าไร?

$0.02 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Financial Datasets Get Stock Price Snapshot API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: ticker (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Financial Datasets Get Stock Price Snapshot API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Financial Datasets ไหม?

ไม่จำเป็น Financial Datasets Get Stock Price Snapshot ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Financial Datasets API แยกต่างหาก