stock-holdings / #100
- userId
-
Samson Stroman @samson_stroman
- stockId
- stocks/22
- quantity
- 288.3983
- costBasis
- 2834.71
- purchasedAt
Component variants
Medium
#100
#100
Small
stock-holdings/100 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/100" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/100"
);
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/100"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/100"
)
stock_holding = res.json() {
"id": 100,
"userId": 52,
"stockId": 22,
"quantity": 288.3983,
"costBasis": 2834.71,
"purchasedAt": "2026-01-26T09:11:06.271Z"
}