Endpoints
List Stocks
GET
/
stocks
List Stocks
curl --request GET \
--url https://psxdata-api.fastapicloud.dev/stocksimport requests
url = "https://psxdata-api.fastapicloud.dev/stocks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://psxdata-api.fastapicloud.dev/stocks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
"<string>"
],
"meta": {
"timestamp": "<string>",
"cached": true,
"count": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}⌘I
List Stocks
curl --request GET \
--url https://psxdata-api.fastapicloud.dev/stocksimport requests
url = "https://psxdata-api.fastapicloud.dev/stocks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://psxdata-api.fastapicloud.dev/stocks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
"<string>"
],
"meta": {
"timestamp": "<string>",
"cached": true,
"count": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}