stock-holdings / #25
- userId
-
Gavin Lowe @gavin_lowe
- stockId
- stocks/20
- quantity
- 630.1571
- costBasis
- 4281.46
- purchasedAt
Component variants
Medium
#25
#25
Small
stock-holdings/25 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/25" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/25"
);
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/25"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/25"
)
stock_holding = res.json() {
"id": 25,
"userId": 17,
"stockId": 20,
"quantity": 630.1571,
"costBasis": 4281.46,
"purchasedAt": "2024-12-01T21:58:49.201Z"
}