stock-holdings / #209
- userId
-
Lazaro Rath @lazaro.rath42
- stockId
- stocks/90
- quantity
- 243.9542
- costBasis
- 1608.08
- purchasedAt
Component variants
Medium
#209
#209
Small
stock-holdings/209 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/209" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/209"
);
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/209"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/209"
)
stock_holding = res.json() {
"id": 209,
"userId": 102,
"stockId": 90,
"quantity": 243.9542,
"costBasis": 1608.08,
"purchasedAt": "2025-03-28T06:45:46.971Z"
}