stock-holdings / #24
- userId
-
Casimir Smitham @casimir_smitham35
- stockId
- stocks/36
- quantity
- 617.4015
- costBasis
- 3015.92
- purchasedAt
Component variants
Medium
#24
#24
Small
stock-holdings/24 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/24" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/24"
);
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/24"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/24"
)
stock_holding = res.json() {
"id": 24,
"userId": 16,
"stockId": 36,
"quantity": 617.4015,
"costBasis": 3015.92,
"purchasedAt": "2025-10-27T22:05:41.347Z"
}