stock-holdings / #97
- userId
-
Hermina West @hermina.west3
- stockId
- stocks/79
- quantity
- 901.1844
- costBasis
- 89.74
- purchasedAt
Component variants
Medium
#97
#97
Small
stock-holdings/97 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/97" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/97"
);
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/97"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/97"
)
stock_holding = res.json() {
"id": 97,
"userId": 51,
"stockId": 79,
"quantity": 901.1844,
"costBasis": 89.74,
"purchasedAt": "2024-09-03T09:41:00.580Z"
}