example-data.com

stocks / #10

symbol
JNJ
name
Johnson & Johnson
exchange
NYSE
sector
Health Care
marketCap
17058646682368
price
2510.64
priceChangePercent24h
-4.74
volume24h
473301500
createdAt

Component variants

Related

Referenced by

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

res = requests.get(
    "https://example-data.com/api/v1/stocks/10"
)
stock = res.json()
{
  "id": 10,
  "symbol": "JNJ",
  "name": "Johnson & Johnson",
  "exchange": "NYSE",
  "sector": "Health Care",
  "marketCap": 17058646682368,
  "price": 2510.64,
  "priceChangePercent24h": -4.74,
  "volume24h": 473301500,
  "createdAt": "2024-08-04T07:31:35.578Z"
}
Draftbit