stock-holdings / #235
- userId
-
Jennifer Hoeger @jennifer.hoeger
- stockId
- stocks/31
- quantity
- 493.6698
- costBasis
- 4192.36
- purchasedAt
Component variants
Medium
#235
#235
Small
stock-holdings/235 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/235" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/235"
);
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/235"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/235"
)
stock_holding = res.json() {
"id": 235,
"userId": 119,
"stockId": 31,
"quantity": 493.6698,
"costBasis": 4192.36,
"purchasedAt": "2025-04-24T09:22:03.263Z"
}