stock-holdings / #120
- userId
-
Enos Hamill @enos_hamill
- stockId
- stocks/52
- quantity
- 597.5479
- costBasis
- 397.68
- purchasedAt
Component variants
Medium
#120
#120
Small
stock-holdings/120 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/120" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/120"
);
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/120"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/120"
)
stock_holding = res.json() {
"id": 120,
"userId": 65,
"stockId": 52,
"quantity": 597.5479,
"costBasis": 397.68,
"purchasedAt": "2026-01-29T06:25:43.873Z"
}