example-data.com

stocks / #8

symbol
BRK.B
name
Berkshire Hathaway Inc.
exchange
NYSE
sector
Financials
marketCap
7273818187340
price
1002.33
priceChangePercent24h
-13.59
volume24h
277010281
createdAt

Component variants

Related

Referenced by

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

res = requests.get(
    "https://example-data.com/api/v1/stocks/8"
)
stock = res.json()
{
  "id": 8,
  "symbol": "BRK.B",
  "name": "Berkshire Hathaway Inc.",
  "exchange": "NYSE",
  "sector": "Financials",
  "marketCap": 7273818187340,
  "price": 1002.33,
  "priceChangePercent24h": -13.59,
  "volume24h": 277010281,
  "createdAt": "2024-08-04T15:40:08.400Z"
}
Draftbit