stock-holdings / #103
- userId
-
Jo Haag-Mayer @jo_haag-mayer
- stockId
- stocks/53
- quantity
- 461.9778
- costBasis
- 6014.57
- purchasedAt
Component variants
Medium
#103
#103
Small
stock-holdings/103 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/103" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/103"
);
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/103"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/103"
)
stock_holding = res.json() {
"id": 103,
"userId": 54,
"stockId": 53,
"quantity": 461.9778,
"costBasis": 6014.57,
"purchasedAt": "2025-09-19T02:49:41.760Z"
}