stock-holdings / #42
- userId
-
Melvina Reilly @melvina_reilly83
- stockId
- stocks/70
- quantity
- 741.1043
- costBasis
- 2845.15
- purchasedAt
Component variants
Medium
#42
#42
Small
stock-holdings/42 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/42" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/42"
);
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/42"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/42"
)
stock_holding = res.json() {
"id": 42,
"userId": 26,
"stockId": 70,
"quantity": 741.1043,
"costBasis": 2845.15,
"purchasedAt": "2025-07-06T17:52:15.670Z"
}