stock-holdings / #142
- userId
-
Florencio Mohr @florencio_mohr
- stockId
- stocks/96
- quantity
- 98.4755
- costBasis
- 3563.6
- purchasedAt
Component variants
Medium
#142
#142
Small
stock-holdings/142 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/142" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/142"
);
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/142"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/142"
)
stock_holding = res.json() {
"id": 142,
"userId": 71,
"stockId": 96,
"quantity": 98.4755,
"costBasis": 3563.6,
"purchasedAt": "2025-01-23T04:15:04.024Z"
}