Endpoints
Get Historical
GET
Get Historical
Get Historical
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request GET \
--url https://psxdata-api.fastapicloud.dev/stocks/{symbol}/historicalimport requests
url = "https://psxdata-api.fastapicloud.dev/stocks/{symbol}/historical"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://psxdata-api.fastapicloud.dev/stocks/{symbol}/historical', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"date": "<string>",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume": 123,
"is_anomaly": true
}
],
"meta": {
"timestamp": "<string>",
"cached": true,
"count": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?
curl --request GET \
--url https://psxdata-api.fastapicloud.dev/stocks/{symbol}/historicalimport requests
url = "https://psxdata-api.fastapicloud.dev/stocks/{symbol}/historical"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://psxdata-api.fastapicloud.dev/stocks/{symbol}/historical', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"date": "<string>",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume": 123,
"is_anomaly": true
}
],
"meta": {
"timestamp": "<string>",
"cached": true,
"count": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}