example-data.com

stocks / #24

symbol
COST
name
Costco Wholesale Corporation
exchange
NASDAQ
sector
Consumer Staples
marketCap
4218236097365
price
2652.73
priceChangePercent24h
14.86
volume24h
246413343
createdAt

Component variants

Related

Referenced by

curl -sS \
  "https://example-data.com/api/v1/stocks/24" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/stocks/24"
);
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/24"
);
const stock = (await res.json()) as Stock;
import requests

res = requests.get(
    "https://example-data.com/api/v1/stocks/24"
)
stock = res.json()
{
  "id": 24,
  "symbol": "COST",
  "name": "Costco Wholesale Corporation",
  "exchange": "NASDAQ",
  "sector": "Consumer Staples",
  "marketCap": 4218236097365,
  "price": 2652.73,
  "priceChangePercent24h": 14.86,
  "volume24h": 246413343,
  "createdAt": "2024-11-14T20:29:08.043Z"
}
Draftbit