stock-holdings / #82
- userId
-
Lamar Wilkinson @lamar_wilkinson43
- stockId
- stocks/42
- quantity
- 64.2866
- costBasis
- 369.4
- purchasedAt
Component variants
Medium
#82
#82
Small
stock-holdings/82 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/82" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/82"
);
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/82"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/82"
)
stock_holding = res.json() {
"id": 82,
"userId": 43,
"stockId": 42,
"quantity": 64.2866,
"costBasis": 369.4,
"purchasedAt": "2024-11-07T14:56:38.213Z"
}