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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
tickerstringThe stock ticker symbol (e.g. AAPL, MSFT).
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Financial Datasets | $0.02 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.02 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: ticker (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Financial Datasets Get Stock Price Snapshot działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Financial Datasets.