stocks / #2
- symbol
- MSFT
- name
- Microsoft Corporation
- exchange
- NASDAQ
- sector
- Technology
- marketCap
- 1023003487444
- price
- 758.62
- priceChangePercent24h
- -12.41
- volume24h
- 265154672
- createdAt
Component variants
Medium
Microsoft Corporation
#2
Small
stocks/2 Related
Referenced by
curl -sS \
"https://example-data.com/api/v1/stocks/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stocks/2"
);
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/2"
);
const stock = (await res.json()) as Stock;import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/2"
)
stock = res.json() {
"id": 2,
"symbol": "MSFT",
"name": "Microsoft Corporation",
"exchange": "NASDAQ",
"sector": "Technology",
"marketCap": 1023003487444,
"price": 758.62,
"priceChangePercent24h": -12.41,
"volume24h": 265154672,
"createdAt": "2025-08-03T10:41:55.359Z"
}