stock-holdings / #51
- userId
-
Jensen Bashirian @jensen_bashirian
- stockId
- stocks/78
- quantity
- 640.9844
- costBasis
- 461.43
- purchasedAt
Component variants
Medium
#51
#51
Small
stock-holdings/51 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/51" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/51"
);
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/51"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/51"
)
stock_holding = res.json() {
"id": 51,
"userId": 29,
"stockId": 78,
"quantity": 640.9844,
"costBasis": 461.43,
"purchasedAt": "2025-09-16T12:09:36.630Z"
}