stock-holdings / #168
- userId
-
Phyllis Hyatt @phyllis_hyatt83
- stockId
- stocks/1
- quantity
- 300.9458
- costBasis
- 2504.2
- purchasedAt
Component variants
Medium
#168
#168
Small
stock-holdings/168 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/168" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/168"
);
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/168"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/168"
)
stock_holding = res.json() {
"id": 168,
"userId": 84,
"stockId": 1,
"quantity": 300.9458,
"costBasis": 2504.2,
"purchasedAt": "2024-08-25T05:50:49.493Z"
}