stock-holdings / #48
- userId
-
Jensen Bashirian @jensen_bashirian
- stockId
- stocks/6
- quantity
- 962.8141
- costBasis
- 6895.03
- purchasedAt
Component variants
Medium
#48
#48
Small
stock-holdings/48 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/48" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/48"
);
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/48"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/48"
)
stock_holding = res.json() {
"id": 48,
"userId": 29,
"stockId": 6,
"quantity": 962.8141,
"costBasis": 6895.03,
"purchasedAt": "2025-11-25T01:22:47.507Z"
}