Berkshire Hathaway Inc.
- symbol
- BRK.B
- name
- Berkshire Hathaway Inc.
- exchange
- NYSE
- sector
- Financials
- marketCap
- 7273818187340
- price
- 1002.33
- priceChangePercent24h
- -13.59
- volume24h
- 277010281
- createdAt
Overview
stocks / #8
Berkshire Hathaway Inc.
#8
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks/8" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stocks/8" ); const stock = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/stocks.d.ts https://example-data.com/types/stocks.d.ts
import type { Stock } from "./types/stocks";
const res = await fetch(
"https://example-data.com/api/v1/stocks/8"
);
const stock = (await res.json()) as Stock; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/8"
)
stock = res.json() Response
{
"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"
}