US stock historical prices
financialdatasets.pricesGet split-adjusted historical price bars for a US stock ticker over a date range
- Price
- $0.02/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- 15 de set. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/financialdatasets.prices?ticker=AAPL&end_date=2026-09-14&interval=day&start_date=2026-09-01PreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
cursor | string | Opcional | opaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them | |
ticker | string | Obrigatório | US stock ticker. If availability is uncertain, call financialdatasets.prices.tickers first | AAPL |
end_date | string | Obrigatório | YYYY-MM-DD | 2026-09-14 |
interval | string | Obrigatório | day | week | month | year | day |
start_date | string | Obrigatório | YYYY-MM-DD | 2026-09-01 |
- Parâmetros de consulta
cursorstringOpcionalopaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them
tickerstringObrigatórioUS stock ticker. If availability is uncertain, call financialdatasets.prices.tickers first
Exemplo:
AAPLend_datestringObrigatórioYYYY-MM-DD
Exemplo:
2026-09-14intervalstringObrigatórioday | week | month | year
Exemplo:
daystart_datestringObrigatórioYYYY-MM-DD
Exemplo:
2026-09-01
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/financialdatasets.prices?ticker=AAPL&end_date=2026-09-14&interval=day&start_date=2026-09-01' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/financialdatasets.prices?ticker=AAPL&end_date=2026-09-14&interval=day&start_date=2026-09-01",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/financialdatasets.prices?ticker=AAPL&end_date=2026-09-14&interval=day&start_date=2026-09-01", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.02/success, incluindo a taxa de serviço.