stock-holdings / #236
- userId
-
Lennie Dickinson @lennie_dickinson8
- stockId
- stocks/59
- quantity
- 747.4043
- costBasis
- 40.28
- purchasedAt
Component variants
Medium
#236
#236
Small
stock-holdings/236 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/236" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/236"
);
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/236"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/236"
)
stock_holding = res.json() {
"id": 236,
"userId": 121,
"stockId": 59,
"quantity": 747.4043,
"costBasis": 40.28,
"purchasedAt": "2025-05-12T05:54:34.078Z"
}