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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
tickerstringThe stock ticker symbol (e.g. AAPL, MSFT).
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Financial Datasets | $0.02 por llamada | JSON |
Financial Datasets | $0.02 por llamada | JSON |
Financial Datasets | $0.02 por llamada | JSON |
Financial Datasets | $0.02 por llamada | JSON |
Financial Datasets | $0.02 por llamada | JSON |
Financial Datasets | $0.02 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.02 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
No se requieren parámetros. Opcionales: ticker (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Financial Datasets Get Stock Price Snapshot funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Financial Datasets por separado.