tickerstring
The stock ticker symbol (e.g. AAPL, MSFT).
https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshotGet the real-time price snapshot for a stock, including the current price, day change, and day change percent.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | No | The stock ticker symbol (e.g. AAPL, MSFT). |
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
}
}
| Field | Meaning |
|---|---|
snapshot.ticker | The stock ticker symbol the snapshot is for. |
snapshot.price | The current stock price in the response, for example 330.7. |
snapshot.day_change | The price change for the day. A negative value means the stock is down. |
snapshot.day_change_percent | The day change as a percent. The example value -4.04 matches a drop of about 4 percent. |
snapshot.time | The quote time as an ISO 8601 timestamp in UTC, for example 2026-11-03T00:37:12Z. |
snapshot.time_milliseconds | The same quote time as a Unix timestamp in milliseconds. |
ticker parameter. Use the exchange symbol, such as AAPL or MSFT.ticker parameter is marked optional in the schema, but the request needs it to return a snapshot for a stock.$0.02 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
tickerstringThe stock ticker symbol (e.g. AAPL, MSFT).
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.02 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: ticker (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Financial Datasets Get Stock Price Snapshot SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Financial Datasets API access के लिए आवेदन करने की आवश्यकता नहीं है।