example-data.com

stock-holdings / #112

userId
Mckenna Hegmann-Price @mckenna.hegmann-price77
stockId
stocks/55
quantity
201.652
costBasis
6404.51
purchasedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/stock-holdings/112" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/stock-holdings/112"
);
const stockHolding = await res.json();
import type { StockHolding } from "https://example-data.com/types/stock-holdings.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/stock-holdings/112"
);
const stockHolding = (await res.json()) as StockHolding;
import requests

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/112"
)
stock_holding = res.json()
{
  "id": 112,
  "userId": 62,
  "stockId": 55,
  "quantity": 201.652,
  "costBasis": 6404.51,
  "purchasedAt": "2025-11-24T03:17:14.688Z"
}
Draftbit