stock-holdings / #232
- userId
-
Jennifer Hoeger @jennifer.hoeger
- stockId
- stocks/66
- quantity
- 276.0032
- costBasis
- 4060.85
- purchasedAt
Component variants
Medium
#232
#232
Small
stock-holdings/232 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/232" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/232"
);
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/232"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/232"
)
stock_holding = res.json() {
"id": 232,
"userId": 119,
"stockId": 66,
"quantity": 276.0032,
"costBasis": 4060.85,
"purchasedAt": "2024-12-06T14:21:16.073Z"
}