stocks / #1
- symbol
- AAPL
- name
- Apple Inc.
- exchange
- NASDAQ
- sector
- Technology
- marketCap
- 7226659649002
- price
- 2589.12
- priceChangePercent24h
- 8.12
- volume24h
- 297600310
- createdAt
Component variants
Medium
Apple Inc.
#1
Small
stocks/1 Related
Referenced by
curl -sS \
"https://example-data.com/api/v1/stocks/1" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stocks/1"
);
const stock = await res.json();import type { Stock } from "https://example-data.com/types/stocks.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/stocks/1"
);
const stock = (await res.json()) as Stock;import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/1"
)
stock = res.json() {
"id": 1,
"symbol": "AAPL",
"name": "Apple Inc.",
"exchange": "NASDAQ",
"sector": "Technology",
"marketCap": 7226659649002,
"price": 2589.12,
"priceChangePercent24h": 8.12,
"volume24h": 297600310,
"createdAt": "2025-04-21T22:02:47.230Z"
}