stock-holdings / #37
- userId
-
Antoinette Greenfelder @antoinette_greenfelder61
- stockId
- stocks/34
- quantity
- 292.1805
- costBasis
- 3165.5
- purchasedAt
Component variants
Medium
#37
#37
Small
stock-holdings/37 Related
curl -sS \
"https://example-data.com/api/v1/stock-holdings/37" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/37"
);
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/37"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/37"
)
stock_holding = res.json() {
"id": 37,
"userId": 22,
"stockId": 34,
"quantity": 292.1805,
"costBasis": 3165.5,
"purchasedAt": "2026-01-05T09:19:54.999Z"
}