stock-holdings / #194
- userId
-
Matilde Beahan @matilde_beahan
- stockId
- stocks/97
- quantity
- 824.2337
- costBasis
- 1585.38
- purchasedAt
Component variants
Medium
#194
#194
Small
stock-holdings/194 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/194" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/194"
);
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/194"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/194"
)
stock_holding = res.json() {
"id": 194,
"userId": 96,
"stockId": 97,
"quantity": 824.2337,
"costBasis": 1585.38,
"purchasedAt": "2024-10-11T00:33:35.631Z"
}