stock-holdings / #138
- userId
-
Virginie O'Connell @virginie.oconnell55
- stockId
- stocks/21
- quantity
- 860.9298
- costBasis
- 1754.1
- purchasedAt
Component variants
Medium
#138
#138
Small
stock-holdings/138 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/138" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/138"
);
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/138"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/138"
)
stock_holding = res.json() {
"id": 138,
"userId": 70,
"stockId": 21,
"quantity": 860.9298,
"costBasis": 1754.1,
"purchasedAt": "2025-08-01T22:59:57.874Z"
}