example-data.com

stocks / #27

symbol
MRK
name
Merck & Co. Inc.
exchange
NYSE
sector
Health Care
marketCap
14513729204691
price
3970.08
priceChangePercent24h
9.43
volume24h
22319382
createdAt

Component variants

Related

Referenced by

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

res = requests.get(
    "https://example-data.com/api/v1/stocks/27"
)
stock = res.json()
{
  "id": 27,
  "symbol": "MRK",
  "name": "Merck & Co. Inc.",
  "exchange": "NYSE",
  "sector": "Health Care",
  "marketCap": 14513729204691,
  "price": 3970.08,
  "priceChangePercent24h": 9.43,
  "volume24h": 22319382,
  "createdAt": "2024-07-07T12:01:15.549Z"
}
Draftbit