example-data.com
Menu
Browse docs and collections

Overview

stocks / #85

Zemlak, Stanton and Jast Corp.

symbol
MHRB
name
Zemlak, Stanton and Jast Corp.
exchange
HKEX
sector
Communication Services
marketCap
1177854080095
price
969.22
priceChangePercent24h
10.84
volume24h
42079588
createdAt

Component variants

Related

Referenced by

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/stocks/85" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/stocks/85"
);
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/85"
);
const stock = (await res.json()) as Stock;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/stocks/85"
)
stock = res.json()

Response

{
  "id": 85,
  "symbol": "MHRB",
  "name": "Zemlak, Stanton and Jast Corp.",
  "exchange": "HKEX",
  "sector": "Communication Services",
  "marketCap": 1177854080095,
  "price": 969.22,
  "priceChangePercent24h": 10.84,
  "volume24h": 42079588,
  "createdAt": "2024-06-28T19:17:56.580Z"
}