stock-holdings / #6
- userId
-
Cayla Farrell @cayla_farrell
- stockId
- stocks/89
- quantity
- 557.5123
- costBasis
- 2791.37
- purchasedAt
Component variants
Medium
#6
#6
Small
stock-holdings/6 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/6" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/6"
);
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/6"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/6"
)
stock_holding = res.json() {
"id": 6,
"userId": 4,
"stockId": 89,
"quantity": 557.5123,
"costBasis": 2791.37,
"purchasedAt": "2026-03-23T15:08:37.709Z"
}