stock-holdings / #210
- userId
-
Lazaro Rath @lazaro.rath42
- stockId
- stocks/45
- quantity
- 730.106
- costBasis
- 5420.41
- purchasedAt
Component variants
Medium
#210
#210
Small
stock-holdings/210 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/210" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/210"
);
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/210"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/210"
)
stock_holding = res.json() {
"id": 210,
"userId": 102,
"stockId": 45,
"quantity": 730.106,
"costBasis": 5420.41,
"purchasedAt": "2025-10-27T19:44:57.698Z"
}