Merck & Co. Inc.
- symbol
- MRK
- name
- Merck & Co. Inc.
- exchange
- NYSE
- sector
- Health Care
- marketCap
- 14513729204691
- price
- 3970.08
- priceChangePercent24h
- 9.43
- volume24h
- 22319382
- createdAt
Overview
stocks / #27
Merck & Co. Inc.
#27
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stocks/27" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stocks/27" ); 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/27"
);
const stock = (await res.json()) as Stock; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stocks/27"
)
stock = res.json() Response
{
"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"
}